From: Wolfgang Denk Date: Thu, 14 Aug 2008 01:20:20 +0200 Subject: [U-Boot] [RFC] setting pio modes for IDE devices In-Reply-To: <48A35533.1010901@harris.com> References: <48A35533.1010901@harris.com> Message-ID: <20080813232020.1BCC6248CD@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 "Steven A. Falco", In message <48A35533.1010901@harris.com> you wrote: > The following patch adds the ability to call-out from the ide_ident > routine to a board-specific routine to set the PIO mode of an attached > device. > > This feature is controlled by the preprocessor variable CONFIG_TUNE_CFA. What does CFA mean? > cmd_ide.c is modified to use the "drive identify information" read from the > device to compute a pio mode in the range 0 to 6. This is then passed > to a board-specific routine, ide_set_piomode, to set the mode in > hardware. > > Two other files are touched: file ata.h, to include word 163, which is the > "advanced CF parameters", and file ide.h, to add a prototype for the > board-specific routine (again controlled by the CONFIG_TUNE_CFA > variable). Is there a specific reason for using #ifdef's instead of a weak function? 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 Conceptual integrity in turn dictates that the design must proceed from one mind, or from a very small number of agreeing resonant minds. - Frederick Brooks Jr., "The Mythical Man Month"