From: Wolfgang Denk Date: Thu, 04 Aug 2011 22:46:25 +0200 Subject: [U-Boot] [U-Boot, 3/9] nand: add a hw specific subcommand to the nand command. In-Reply-To: <4E3B0109.5070201@freescale.com> References: <1310810810-5322-4-git-send-email-hs@denx.de> <20110802201932.GA8861@schlenkerla.am.freescale.net> <4E38D94B.7020100@denx.de> <20110803105627.25ea58a7@schlenkerla.am.freescale.net> <4E3A30D7.3020104@denx.de> <4E3AF62B.8080605@freescale.com> <20110804201406.25EFD177A7AE@gemini.denx.de> <4E3B0109.5070201@freescale.com> Message-ID: <20110804204625.21A781208DCE@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Scott Wood, In message <4E3B0109.5070201@freescale.com> you wrote: > > How about some way of board/controller/etc. code plugging in commands to > "nand" without "hwfunc"? Could be a chained handler, or copying entries > into a command table, or some way of generalizing the stuff in > common/command.c to operate on multiple command lists. Though without I think a chained handler would be best. > some change to how linker scripts are managed, to be practical that last > option would need to avoid introducing a new section per subtable (maybe I didn't have time to actually think this to an end how to implement it etc. Proposals / patches welcome :-) > just filter out others when iterating). Would be nice to get tab > completion on subcommands. Indeed :-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Every revolutionary idea - in science, politics, art, or whatever - evokes three stages of reaction in a hearer: 1. It is completely impossible - don't waste my time. 2. It is possible, but it is not worth doing. 3. I said it was a good idea all along.