[i2c] I2C Bus Driver needed?
Markus Franke
markus.franke at s2002.tu-chemnitz.de
Wed May 2 07:38:47 CEST 2007
Hi,
James Chapman wrote:
> My comment about you might not needing one is the very rare case where a
> SoC might have hardware support for interfacing to specific i2c device
> types. It might provide a memory-mapped register interface and handle
> i2c transactions with the hardware transparently. One example is a SoC
> that supports an external i2c nvram. It provides a register for the user
> to set a RAM offset and a register for reading/writing the data at that
> offset. Under the hood, the SoC handles all of the i2c transactions. In
> such cases, you don't need a bus driver or a chip driver or the kernel
> i2c core; you just need a custom driver for accessing the SoC's memory
> mapped registers.
I think my SoC offers the possibility to control everything in hardware.
I can access some memory mapped registers of the I2C controller.
So this means I can just omit dealing with i2c-core.c and just focus on
working with memory mapped registers without taking care about the I2C
core of linux? That means also that linux would not be aware of the I2C
device and the device won't show up in sysfs, right?
> The Au1xxx is a MIPS SoC. It has an i2c bus driver.
Thanks. I will also have a look at it.
Regards,
Markus
More information about the i2c
mailing list