[U-Boot-Users] [Patch 5/5] Add DataFlash support for AT91SAM9261EK board

Wolfgang Denk wd at denx.de
Wed Jan 25 12:22:05 CET 2006


Dear Nicolas,

in message <KAEELLICOFHDAEPIACDEKEPOCFAA.nicolas.lacressonniere at rfo.atmel.com> you wrote:
> 
> Our board does not use any parallel flash part... So if I enable
> CFG_CMD_FLASH flag, I need to add an unnecessary flash.c file in
> board/at91sam9261ek directory in order to have access to low-level flash
> functions (flash_init...) So do I have to create such a file with empty
> functions? Or can we create another set of command? What do you think is
> best?

You don;t need a file flash.c in your board directory; there are many
boards without such a file - for example all  boards  using  the  CFI
flash driver. It does not matter where the function flash_init() gets
implemented - and you will need some function like that, too.

The question if we want to have special commands  for  dataflash  was
discussed a long time ago when the first board added support for such
devices.  By  then  it  was  decided that the standard flash commands
(protect, erase, cp, flinfo) shall be used  for  dataflash,  too,  so
that  the  behaviour  is completely transparent for the user. I still
think that was a good decision.

> > Also, I don't  see  any  need  for  a  "dflc  init"  command  -  such
> > initialization  should be done when needed and without needing manual
> > user interaction.
> OK, I will remove it.

Just rename this code into  flash_init()  and  one  of  the  problems
mentioned above just disappears...

> > And "dflc info" is  supposed  to  be  part of  the
> > "flinfo" output on your hardware.
> See first part...

See above. Please support the standard flinfo command.

> > * Add addr2ram verification in do_mem_cp function.
> > I also reject the patch because I think that such "verification" is a
> > bad thing.
> OK, I will remove it.

Thanks.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The perversity of nature is nowhere better demonstrated by  the  fact
that,  when  exposed to the same atmosphere, bread becomes hard while
crackers become soft.




More information about the U-Boot mailing list