[U-Boot] [PATCH 2/2] WIP: tegra: i2c: Enable new CONFIG_SYS_I2C framework
Wolfgang Denk
wd at denx.de
Tue Nov 13 08:48:15 CET 2012
Dear Heiko,
In message <50A1E780.4090807 at denx.de> you wrote:
>
> > Equally, I think this model can work very well for manually coded board
> > files; the board file can directly instantiate all top-level I2C
> > adapters, and pass information to the I2C driver for those adapters
> > indicating which I2C devices are attached to the buses. Then, if one of
> > those devices happens to be an I2C bus mux, it can instantiate further
> > I2C buses, which in turn instantiate more devices based on the
> > parameters passed to the I2C bus mux driver.
>
> Yep, possible ... but another approach ...
Thanks for pointing this out.
Stephen, the old design principle [1] to initialize devices only when
they are needed within U-Boot itself still applies. We do not want to
initialize everything we can, but only what we really need ourself.
Quote:
Perfection is reached, not when there is no longer anything to add,
but when there is no longer anything to take away.
- Antoine de Saint-Exupery
[1] See bullet # 2 at
http://www.denx.de/wiki/view/U-Boot/DesignPrinciples#2_Keep_it_Fast
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
The more complex the mind, the greater the need for the simplicity of
play.
-- Kirk, "Shore Leave", stardate 3025.8
More information about the U-Boot
mailing list