[U-Boot] Support for several I2C interfaces in the same board.

Heiko Schocher hs at denx.de
Thu Oct 29 09:53:21 CET 2009


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


More information about the U-Boot mailing list