All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ulf Samuelsson <ulf@atmel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] AT91 NAND om AT91SAM9260EK
Date: Sun, 11 Feb 2007 17:43:38 +0100	[thread overview]
Message-ID: <007601c74dfc$13ee7340$01c4af0a@Glamdring> (raw)
In-Reply-To: 47403.127.0.0.1.1171139473.squirrel@localhost

>>>
>>> But we agree that this *is* specific to a certain class of processors
>>> of the ARM family, right?
>>
>> No. You can add dataflash to any processor with an SPI
>> interface or even if you do not have an SPI interface you
>> can access the device using standard I/O pins.
>>
>> At the moment, inside U-Boot it is only used by AT91 processors
>> but that is really not the same thing.
>>
>
>
> Hello, i'm afraid to be wrong, but at45.c is used also by Blackfin version
> of uboot at blackfin.uclinux.org  to allow booting off Atmel Dataflash
> some of Blackfin boards. So at45.c is not a processor specific.
>

The at45.c contains the at45 commands and the spi driver.
For all other chips the spi driver seems to be
in the cpu/xxx directories.
That is why my patch merges the duplicated at45.c's
into a single file, but the splits the file into two parts,
one containing the at45 commands in driver/at45.c and
one containing the spi driver for the at91rm9200 in
cpu/arm920t/at91rm9200.

Any duplication causes by this is against code which is not
yet present in the current source tree, but only against code
Haavard wants to write.

Duplication of a few subroutines is not uncommon in U-boot
Looking through the Power PC directories and the NIOS/NIOS2
you easily find subroutines beeing duplicated?between different
architectures.

I do not see any "cpu/<vendor>" directories in U-Boot
and to split up the spi driver into multiple files just
because a few of the routines are duplicated will
make maintenance harder, and will muddle the reponsibility.

I do not understand who will be responsible for maintaining
the spi support for at91 chips if it is rewritten.

At least Wolfgang, which multiple times has said he wants
to have a single Makefile to edit should appreciate this.

Please realize that, while I am providing the patches, I am just taking what
the Atmel AT91 groups is delivering to the end customers.
The AT91 group is fed up with zero response
and has basically given up on trying to get patches approved.

I am in no way able to support fully testing significant modifications of 
these
patches and I belive that if this is done, there will be noone
accepting responsibility for that these patches actually
generate U-Boot binaries's which will actually work.

From what I have seen, the patches from the AT91 group fit closely into the 
current
way U-Boot is designed, and they should be reviewed by people that
actually study the patches so that an unbiased opinion is given.


Best regards, Ivan
>
>


Best Regards
Ulf Samuelsson

  reply	other threads:[~2007-02-11 16:43 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.12584.1171099992.16820.u-boot-users@lists.sourceforge.net>
2007-02-10 20:31 ` [U-Boot-Users] AT91 NAND om AT91SAM9260EK Ivan Kuten
2007-02-11 16:43   ` Ulf Samuelsson [this message]
2007-02-11 18:04     ` Haavard Skinnemoen
2007-02-11 19:42       ` Ulf Samuelsson
2007-02-11 20:23         ` Haavard Skinnemoen
2007-02-11 20:29           ` Ulf Samuelsson
2007-02-11 20:54             ` Haavard Skinnemoen
2007-02-11 21:10           ` Wolfgang Denk
2007-02-11 21:39             ` Ulf Samuelsson
2007-02-11 23:45               ` Wolfgang Denk
2007-02-12  0:26                 ` Ulf Samuelsson
2007-02-12 15:18                   ` Haavard Skinnemoen
2007-02-12 18:40                     ` Ulf Samuelsson
2007-02-12 19:36                       ` Stefan Roese
2007-02-12 19:37                       ` Haavard Skinnemoen
2007-02-12 20:05                         ` Ulf Samuelsson
2007-02-11 21:54       ` Ulf Samuelsson
2007-02-11 11:49 Michel Benoit
2007-02-11 16:20 ` Ulf Samuelsson
     [not found] <mailman.5069.1170973304.16820.u-boot-users@lists.sourceforge.net>
2007-02-08 22:57 ` Ivan Kuten
     [not found] <c88e466f0702050752t16c18251gcddf40a7ec95469@mail.gmail.com>
2007-02-07 23:17 ` Ulf Samuelsson
2007-02-08  6:06   ` Stefan Roese
2007-02-08  8:34     ` Michel Benoit
2007-02-08 19:25       ` Ulf Samuelsson
2007-02-08 20:58         ` Haavard Skinnemoen
2007-02-08 22:20           ` Ulf Samuelsson
2007-02-09 15:45             ` Haavard Skinnemoen
2007-02-09 19:11               ` Ulf Samuelsson
2007-02-09 19:54                 ` Haavard Skinnemoen
2007-02-09 19:39               ` Wolfgang Denk
2007-02-09 22:18                 ` Ulf Samuelsson
2007-02-09 22:58                   ` Haavard Skinnemoen
2007-02-09 23:20                     ` Ulf Samuelsson
2007-02-09 23:42                       ` Haavard Skinnemoen
2007-02-10  0:10                         ` Ulf Samuelsson
2007-02-10  1:18                       ` Wolfgang Denk
2007-02-10  9:05                         ` Ulf Samuelsson
2007-02-10  7:23                     ` Stefan Roese
2007-02-10  1:15                   ` Wolfgang Denk
2007-02-10  7:32                     ` Stefan Roese
2007-02-10  9:29                     ` Ulf Samuelsson
2007-02-10  1:53       ` Ken Watson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='007601c74dfc$13ee7340$01c4af0a@Glamdring' \
    --to=ulf@atmel.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.