[U-Boot] [PATCH 07/12 v2] ARM: OMAP3: Add memory and syslib common files, add NAND support

Scott Wood scottwood at freescale.com
Tue Oct 7 19:59:05 CEST 2008


Dirk Behme wrote:
>> Otherwise, either add something to the MTD API that the nand command can
>> call, or have your own board-specific command defined in the board file. 
>> Don't put platform-specific ifdefs in generic files.
> 
> Do you have any example how to extend MTD API

You'd need to add callbacks in the device structures; since this is a 
workaround for legacy support, and not something that is desireable in 
most cases, I'd go with the latter option of a board-specific command.

> and/or can link to 
> example where board-specific command is already used?

grep -rI U_BOOT_CMD board/

-Scott


More information about the U-Boot mailing list