Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit61045db

Browse files
JochenFriedrichJean Delvare
authored and
Jean Delvare
committed
i2c: Add support for I2C bus on Freescale CPM1/CPM2 controllers
This driver uses the port of 2.4 code from Vitaly Bordug<vitb@kernel.crashing.org> and the actual algorithm used by the i2cdriver of the DBox code on cvs.tuxboc.org from Felix Domke(tmbinc@gmx.net) and Gillem (htoa@gmx.net) converted to anof_platform_driver. Tested on CPM1 (MPC823 on dbox2 hardware) andCPM2 (MPC8272).Signed-off-by: Jochen Friedrich <jochen@scram.de>Tested-by: Wolfram Sang <w.sang@pengutronix.de>Signed-off-by: Jean Delvare <khali@linux-fr.org>
1 parent77e38bf commit61045db

File tree

3 files changed

+756
-0
lines changed

3 files changed

+756
-0
lines changed

‎drivers/i2c/busses/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,16 @@ config I2C_BLACKFIN_TWI_CLK_KHZ
299299
help
300300
The unit of the TWI clock is kHz.
301301

302+
config I2C_CPM
303+
tristate "Freescale CPM1 or CPM2 (MPC8xx/826x)"
304+
depends on (CPM1 || CPM2) && OF_I2C
305+
help
306+
This supports the use of the I2C interface on Freescale
307+
processors with CPM1 or CPM2.
308+
309+
This driver can also be built as a module. If so, the module
310+
will be called i2c-cpm.
311+
302312
config I2C_DAVINCI
303313
tristate "DaVinci I2C driver"
304314
depends on ARCH_DAVINCI

‎drivers/i2c/busses/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ obj-$(CONFIG_I2C_POWERMAC)+= i2c-powermac.o
2828
obj-$(CONFIG_I2C_AT91)+= i2c-at91.o
2929
obj-$(CONFIG_I2C_AU1550)+= i2c-au1550.o
3030
obj-$(CONFIG_I2C_BLACKFIN_TWI)+= i2c-bfin-twi.o
31+
obj-$(CONFIG_I2C_CPM)+= i2c-cpm.o
3132
obj-$(CONFIG_I2C_DAVINCI)+= i2c-davinci.o
3233
obj-$(CONFIG_I2C_GPIO)+= i2c-gpio.o
3334
obj-$(CONFIG_I2C_IBM_IIC)+= i2c-ibm_iic.o

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp