From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Tue, 07 Oct 2008 12:59:05 -0500 Subject: [U-Boot] [PATCH 07/12 v2] ARM: OMAP3: Add memory and syslib common files, add NAND support In-Reply-To: <48EBA29B.7070602@googlemail.com> References: <48e5f6a5.0305560a.0a0e.ffffe071@mx.google.com> <20081003165203.GA11156@ld0162-tx32.am.freescale.net> <48EB2F0E.4090805@googlemail.com> <20081007172614.GA3438@loki.buserror.net> <48EBA29B.7070602@googlemail.com> Message-ID: <48EBA369.9080702@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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