[i2c] design question: two I2C controllers on SoC

Markus Franke markus.franke at s2002.tu-chemnitz.de
Thu Jun 28 08:08:32 CEST 2007


Dear I2C developers/users,

I am working on an SoC which has two I2C Controllers in-built. Both 
controllers are accessible via memory mapped register sets.

Now I wrote an i2c adapter driver which can be either loaded to be 
working on I2C1 bus or I2C2 bus. (adjustable via module parameter) In 
the beginning I thought you can simply load the module twice - once for 
controller 1 and once for controller 2. But is this the right way of 
doing this? This means that I would have two modules. I am not sure 
whether this is a proper design.

Thanks for any help and clarification,

Regards,
Markus Franke



More information about the i2c mailing list