i2c: Support for Netlogic XLR/XLS I2C controller.
PATCH v4 1/1 i2c: Support for Netlogic XLR/XLS I2C controller.
From: Ganesan Ramalingam <ganesanr-oSioyQM9ZPnuBjGU1YDckgC/[email protected]>
Add support for the intergrated I2C controller on Netlogic XLR/XLS MIPS SoC.
The changes are to add a new file i2c/buses/i2c-xlr.c, containing the i2c bus implementation, and to update i2c/buses/{Kconfig,Makefile} to add the CONFIG_I2C_XLR option.
---
[
This takes care of the last set of comments from Wolfram. Changes from the last version are:
* Add checktime and timeout, and move timeout checking to after reading the status register
* Increase timeout so that we can count it with jiffies, the
* Re-arrange logic a bit so that the timeout checking is simpler
-JC.
]
drivers/i2c/busses/Kconfig | 10 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-xlr.c | 278 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 289 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/busses/i2c-xlr.c
drivers/i2c/busses/Kconfig +10 -0
@@ -681,6 +681,16 @@ config I2C_XILINX This driver can also be built as a module. If so, the module will be called xilinx_i2c. +config I2C_XLR + tristate "XLR I2C support" + depends on CPU_XLR + help + This driver enables support for the on-chip I2C interface of + the Netlogic XLR/XLS MIPS processors. + + This driver can also be built as a module. If so, the module + will be called i2c-xlr. + config I2C_EG20T tristate "Intel EG20T PCH/LAPIS Semicon IOH(ML7213/ML7223/ML7831) I2C" depends on PCI
drivers/i2c/busses/Makefile +1 -0
@@ -68,6 +68,7 @@ obj-$(CONFIG_I2C_TEGRA) += i2c-tegra.o obj-$(CONFIG_I2C_VERSATILE) += i2c-versatile.o obj-$(CONFIG_I2C_OCTEON) += i2c-octeon.o obj-$(CONFIG_I2C_XILINX) += i2c-xiic.o +obj-$(CONFIG_I2C_XLR) += i2c-xlr.o obj-$(CONFIG_I2C_EG20T) += i2c-eg20t.o # External I2C/SMBus adapter drivers
drivers/i2c/busses/i2c-xlr.c new file +278 -0
278 lines not on this page · raw message
Signature · 1 line
1.7.5.4
A message that is not in the archive (sent off-list or not yet received): 1327653937-4553-1-git-send-email-jayachandranc-oSioyQM9ZPnuBjGU1YDckgC/[email protected]
Wolfram Sang
Reviewed-byQuoted 11 lines · Jayachandran C.
From: Ganesan Ramalingam <ganesanr-oSioyQM9ZPnuBjGU1YDckgC/[email protected]>
Add support for the intergrated I2C controller on Netlogic XLR/XLS MIPS SoC.
The changes are to add a new file
i2c/buses/i2c-xlr.c, containing the i2c bus implementation, and to update i2c/buses/{Kconfig,Makefile} to add theCONFIG_I2C_XLRoption.
Thanks for this contribution!
Signature · 2 lines
Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ |