[U-Boot] [PATCH] 7/12 Multiadapter/multibus I2C, drivers part 4

Wolfgang Denk wd at denx.de
Wed Feb 18 22:56:50 CET 2009


Dear ksi at koi8.net,

In message <Pine.LNX.4.64ksi.0902181054310.5002 at home-gw.koi8.net> you wrote:
> 
> You are multiplying entities. i2c_init() is invoked as a part of system
> bootup process in libXXX/board.c anyways. There is no need for any global
> variables, even non-writable for proposed code to initialize adapters.

Please keep in mind that (even if  it  should  be  different  at  the
moment),  I2C  should  only  be  initialized  when needed, i. e. when
U-Boot is running any code that needs to access the I2C bus, but  not
always after each reset on all systems that have I2C enabled.

This is a mandatory requirement for a rewrite.

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
Accident: A condition in which presence of mind is good, but  absence
of body is better.


More information about the U-Boot mailing list