[i2c] [lm-sensors] I2C for uCLinux on ARM926EJ (with AMBA bus)

Mark M. Hoffman mhoffman at lightlink.com
Wed Aug 2 13:43:05 CEST 2006


Hi:

* Drasko Draskovic <drasko.draskovic at gmail.com> [2006-08-02 10:30:34 +0200]:
> So, it looks like I'll have to investigate bus/adapter for ApI2c. As I
> understand, since AMBA is supported in kernel, if adapter part of i2c driver
> code is writen for ApI2c, than I2C on this architecture would be functional
> (if I for example use eeprom as a pripheral, which is already supposrtd chip
> by lm code). Is this right?

Yes.

> Also, I wanted to ask the question what about algos? Do I have to worry
> about that? I mean - is just writing adapter part enogh, so I can transmit
> and receive messages?

You will not have to add a file in the "algos" directory.  You'll probably
just implement a trivial little 'struct i2c_algorithm' like many of the
drivers in drivers/i2c/busses do.  E.g. take a look at i2c-sis96x.

> I am wondering -- how come that so popular architecture as ARM (adn AMBA
> ApI2c interface) is not already supported by lm code...

Two answers, you pick:

1) There's always a first.

2) Embedded guys rarely contribute their stuff back to main line.

Regards,

-- 
Mark M. Hoffman
mhoffman at lightlink.com




More information about the i2c mailing list