From mboxrd@z Thu Jan 1 00:00:00 1970 From: Heiko Schocher Date: Thu, 29 Oct 2009 09:53:21 +0100 Subject: [U-Boot] Support for several I2C interfaces in the same board. In-Reply-To: References: Message-ID: <4AE95801.3030804@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 Hello javier, javier Martin wrote: > I read a discussion about this subject in the past but it didn't > arrive to a conclusion. What would be necessary for supporting two I2C > interfaces? Maybe an i2c command that supports changing active > interface or something similar? What do you mean with two I2C interfaces? If you mean 2 with one hardware interface (for example fsl_i2c.c) this is possible with actual code. Search for i2c_set_bus_num(), i2c_get_bus_num() ... If you need two different hardware interfaces, there is an approach, see: http://git.denx.de/?p=u-boot/u-boot-i2c.git;a=shortlog;h=refs/heads/multibus_v2 I ported (hopefully all) hardware i2c drivers to this new approach, but didn;t find the time to test this again from scratch, I just hold it in sync with mainline, and if I find time for testing it again and it works, I vote for including it in mainline ... But testers are welcome :-) bye Heiko -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany