[U-Boot] SATA/IDE/etc... init

Wolfgang Denk wd at denx.de
Thu Dec 11 11:12:57 CET 2008


Dear Mike Frysinger,

In message <200812110304.12784.vapier at gentoo.org> you wrote:
>
> the SATA/IDE/etc... layers seem to go against the u-boot policy when it comes
> to initialization.  in other words, if support for them is enabled, then they
> are unconditionally initialized in board code (see ide_init / sata_initialize
> in lib_*/board.c:board_init_r).  am i missing something or should these init
> functions be delayed until the sata/ide/whatever functions need them ?  or

Yes, you are right.

Blame this on me - this was inherited from the first implementation of
PCMCIA support on the MPC8xx, where I found it useful to see the state
when the sytem booted. I learned that leasson only later... Sorry.

> should they be made explicit like some commands where you first have to do
> "sata init" before you can access the device ?

Correct.

> this bugs me most because normally u-boot starts up nice & fast, but now that
> we've added SATA support, there's an annoying second or 3 pause while the disk
> is probed ...

Patches appreciated :-)

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
"I dislike companies that have a we-are-the-high-priests-of-hardware-
so-you'll-like-what-we-give-you attitude. I like commodity markets in
which iron-and-silicon hawkers know that they exist to  provide  fast
toys for software types like me to play with..."    - Eric S. Raymond


More information about the U-Boot mailing list