[U-Boot-Users] NAND flash implementation

Wolfgang Denk wd at denx.de
Mon Sep 4 21:09:43 CEST 2006


Dear Hans,

in message <OFDB2783A0.0E64E142-ONC12571DF.004AD8D6-C12571DF.0052CD21 at philips.com> you wrote:
> 
> The problem is that board_nand_init() is a void function and always 
> succeeds.  In our case
> we would like to check the profile in board_nand_init() and return an 
> error if no NAND
> exists.  Subsequently nand_init_chip() would not do a nand_scan() for a 
> failing board_nand_init().
> Attached is what a patch would look like.

Can you keep the information about what is attached where in a (board
specific) private data structure?

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
"How is this place run - is it an anarchy?"
"No, I wouldn't say so; it is not that well organised..."




More information about the U-Boot mailing list