i2c: adds support for i2c bus on Freescale CPM1/CPM2 controllers
Subsystems (2)
Jochen Friedrich
maintainerPATCH v2 1/1 i2c: adds support for i2c bus on Freescale CPM1/CPM2 controllers
This driver uses the port of 2.4 code from Vitaly Bordug <[email protected]> and the actual algorithm used by the i2c driver of the DBox code on cvs.tuxboc.org from Felix Domke ([email protected]) and Gillem ([email protected]) converted to an of_platform_driver. Tested on CPM1 (MPC823 on dbox2 hardware) and CPM2 (MPC8272).
--- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-cpm.c | 745 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 756 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/busses/i2c-cpm.c
Changes since last version:
- change bus-frequency -> clock-frequency to comply to OF standard.
drivers/i2c/busses/Kconfig +10 -0
@@ -350,6 +350,16 @@ config I2C_BLACKFIN_TWI_CLK_KHZ help The unit of the TWI clock is kHz. +config I2C_CPM + tristate "Freescale CPM1 or CPM2 (MPC8xx/826x)" + depends on (CPM1 || CPM2) && OF_I2C + help + This supports the use of the I2C interface on Freescale + processors with CPM1 or CPM2. + + This driver can also be built as a module. If so, the module + will be called i2c-cpm. + config I2C_DAVINCI tristate "DaVinci I2C driver" depends on ARCH_DAVINCI
drivers/i2c/busses/Makefile +1 -0
@@ -33,6 +33,7 @@ obj-$(CONFIG_I2C_ACORN) += i2c-acorn.o obj-$(CONFIG_I2C_AT91) += i2c-at91.o obj-$(CONFIG_I2C_AU1550) += i2c-au1550.o obj-$(CONFIG_I2C_BLACKFIN_TWI) += i2c-bfin-twi.o +obj-$(CONFIG_I2C_CPM) += i2c-cpm.o obj-$(CONFIG_I2C_DAVINCI) += i2c-davinci.o obj-$(CONFIG_I2C_ELEKTOR) += i2c-elektor.o obj-$(CONFIG_I2C_GPIO) += i2c-gpio.o
drivers/i2c/busses/i2c-cpm.c new file +745 -0
745 lines not on this page · raw message
Signature · 1 line
1.5.5.1
Jean Delvare
AppliedQuoted 15 lines · Jochen Friedrich
This driver uses the port of 2.4 code from Vitaly Bordug <[email protected]> and the actual algorithm used by the i2c driver of the DBox code on cvs.tuxboc.org from Felix Domke ([email protected]) and Gillem ([email protected]) converted to an
of_platform_driver. Tested on CPM1 (MPC823 on dbox2 hardware) and CPM2 (MPC8272).Signed-off-by Jochen Friedrich <[email protected]>--- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-cpm.c | 745 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 756 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/busses/i2c-cpm.c
Quoted 3 lines
Changes since last version:
- change bus-frequency -> clock-frequency to comply to OF standard.
Applied, thanks. And thanks a lot to Wolfram for the review :)
Signature · 1 line
Jean Delvare
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 16 lines · Jean Delvare
Quoted 15 lines · Jochen Friedrich
This driver uses the port of 2.4 code from Vitaly Bordug <[email protected]> and the actual algorithm used by the i2c driver of the DBox code on cvs.tuxboc.org from Felix Domke ([email protected]) and Gillem ([email protected]) converted to an
of_platform_driver. Tested on CPM1 (MPC823 on dbox2 hardware) and
CPM2 (MPC8272).Signed-off-by Jochen Friedrich <[email protected]>--- drivers/i2c/busses/Kconfig | 10 + drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-cpm.c | 745 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 756 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/busses/i2c-cpm.c
Quoted 5 lines
Quoted 3 lines
Changes since last version:
- change bus-frequency -> clock-frequency to comply to OF standard.Applied, thanks. And thanks a lot to Wolfram for the review :)
Oh, I almost forgot: Jochen, would you like to be the maintainer for this new driver? If you do, please send a patch adding yourself to MAINTAINERS. Having dedicated driver maintainers makes my subsystem maintainer's job easier.
Thanks,
Signature · 6 lines
Jean Delvare _______________________________________________ i2c mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/i2c