From: Scott Wood Date: Tue, 2 Aug 2011 15:19:32 -0500 Subject: [U-Boot] [U-Boot, 3/9] nand: add a hw specific subcommand to the nand command. In-Reply-To: <1310810810-5322-4-git-send-email-hs@denx.de> References: <1310810810-5322-4-git-send-email-hs@denx.de> Message-ID: <20110802201932.GA8861@schlenkerla.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Sorry for the delay, didn't see this the first time around -- just noticed it in patchwork. On Sat, Jul 16, 2011 at 12:06:44AM -0000, Heiko Schocher wrote: > @@ -739,6 +743,10 @@ U_BOOT_CMD( > "nand env.oob set off|partition - set enviromnent offset\n" > "nand env.oob get - get environment offset" > #endif > +#ifdef CONFIG_CMD_NAND_HWFUNC > + "\n" > + "nand hwfunc " CONFIG_CMD_NAND_HWFUNC "\n" > +#endif Why not just define hardware-specific commands at whatever scope they makes sense (board code, controller driver, etc.), rather than add a generic hook here? -Scott