From: Wolfgang Denk Date: Tue, 13 Nov 2012 08:48:15 +0100 Subject: [U-Boot] [PATCH 2/2] WIP: tegra: i2c: Enable new CONFIG_SYS_I2C framework In-Reply-To: <50A1E780.4090807@denx.de> References: <1351618133-14909-1-git-send-email-sjg@chromium.org> <1351618133-14909-2-git-send-email-sjg@chromium.org> <50905561.90602@wwwdotorg.org> <5090BE73.6050501@denx.de> <509146C5.8020301@wwwdotorg.org> <509150E4.2050206@wwwdotorg.org> <509227DF.9070107@denx.de> <5092AB68.6080801@wwwdotorg.org> <509B556A.1050808@denx.de> <509BE63F.8030701@wwwdotorg.org> <50A1E780.4090807@denx.de> Message-ID: <20121113074815.158C62002E1@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Heiko, In message <50A1E780.4090807@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