[U-Boot] [PATCH] 0/12 Multiadapter/multibus I2C

Wolfgang Denk wd at denx.de
Mon Feb 16 22:13:17 CET 2009


Dear ksi at koi8.net,

In message <Pine.LNX.4.64ksi.0902142104100.6240 at home-gw.koi8.net> you wrote:
> 
> OK, please explain how that cur_adap_nr->hwadapnr gets assigned. Please also
> explain how can one invoke a function on other adapter than "current".
> Remember, i2c_init is quite often called BEFORE the code is relocated to RAM
> so you can NOT change "current" adapter.

We could assign an entry in the global data for it.

But then - how often will it bbe necessary to switch adapters before
relocation? What is I2C being used for? To read the SPD data for the
RAM init code. Which other adapter would be needed?


> Please also note that you will loose a capability of working with more than
> one adapter before the code is relocated to RAM.

I don't see this.


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
"Nobody will ever need more than 640k RAM!"       -- Bill Gates, 1981
"Windows 95 needs at least 8 MB RAM."             -- Bill Gates, 1996
"Nobody will ever need Windows 95."             -- logical conclusion


More information about the U-Boot mailing list