i2c: Support for Netlogic XLR/XLS on-chip I2C controller.
PATCH v3 1/1 i2c: Support for Netlogic XLR/XLS on-chip I2C controller.
Add support for on chip I2C bus controller on Netlogic XLR/XLS family of MIPS64 SoCs. The changes are:
Kconfig/Makefile: add CONFIG_I2C_XLR option busses/i2c-xlr.c : driver for Netlogic XLR/XLS on-chip I2C controller
---
[Posting this again, comments and suggestions welcome]
Changes since v2:
- Remove platform related code changes to a different patch that will be submitted later thru linux-mips
Changes since v1:
- Use master_xfer in place of smbus_xfer
- Fixes for the comments from Ben Dooks and Mark Brown
drivers/i2c/busses/Kconfig | 11 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-xlr.c | 303 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 315 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/busses/i2c-xlr.c
drivers/i2c/busses/Kconfig +11 -0
@@ -309,6 +309,17 @@ config I2C_AU1550 This driver can also be built as a module. If so, the module will be called i2c-au1550. +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. + + Say yes to this option if you have a Netlogic XLR/XLS based + board and you need to access the I2C devices (typically the + RTC, sensors, EEPROM) connected to this interface. + config I2C_BLACKFIN_TWI tristate "Blackfin TWI I2C support" depends on BLACKFIN
drivers/i2c/busses/Makefile +1 -0
@@ -65,6 +65,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 +303 -0
303 lines not on this page · raw message
Signature · 7 lines
1.7.4.1 -- Jayachandran C. jayachandranc-oSioyQM9ZPnuBjGU1YDckgC/[email protected] (Netlogic Microsystems) [email protected] (The FreeBSD Project)