[U-Boot] [RFC] setting pio modes for IDE devices

Wolfgang Denk wd at denx.de
Thu Aug 14 01:20:20 CEST 2008


Dear "Steven A. Falco",

In message <48A35533.1010901 at 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"



More information about the U-Boot mailing list