IBM PPC 405 and I2C

Greg Hogan greg at
Sat Aug 2 20:50:01 CEST 2003

I am working with a powerpc 405 chip, which supports both master and slave
in the hardware.  The linux distribution is Montavista Hardhat.

1)  The i2c files i2c-algo-ibm_ocp.h, i2c-algo-ibm_ocp.c, and
i2c-adap-ibm_ocp.c were written by Montavista.  Unfortunately, they do not
support slave mode.  Has anyone outside Montavista added functionality to
this code?  Does Montavista provide updates often (it appears the code with
the Montavista distribution has significant modifications over what is
distributed with i2c, unfortunately I do not have the code available to me

2)  Has anyone successfully insmoded the i2c-algo_ibm_ocp and
i2c-adap-ibm_ocp modules together?  Insmod complains about recursive
includes (which is true, the files call on functions in the other file) when
loading either module.

3)  There have been several inquiries about using a host/bus in slave mode.
Has anyone done work on this since the postings?  Are their plans to
implement this at some point?  What would be required to add slave
functionality to the core i2c files?

Greg Hogan

More information about the lm-sensors mailing list