i2c: Support for Netlogic XLR/XLS on-chip I2C controller.
Subsystems (2)
PATCH v2 1/1 i2c: Support for Netlogic XLR/XLS on-chip I2C controller.
platform.c : add i2c platform devicei2c-xlr.c : algorithm and i2c adaptor for Netlogic I2C controller Kconfig/Makefile: add CONFIG_I2C_XLR option
Changes since v1:
- Use master_xfer in place of smbus_xfer
- Fixes for the comments from Ben Dooks and Mark Brown
--- arch/mips/configs/nlm_xlr_defconfig | 4 + arch/mips/netlogic/xlr/platform.c | 52 ++++++ drivers/i2c/busses/Kconfig | 11 ++ drivers/i2c/busses/Makefile | 1 + drivers/i2c/busses/i2c-xlr.c | 303 +++++++++++++++++++++++++++++++++++ 5 files changed, 371 insertions(+), 0 deletions(-) create mode 100644 drivers/i2c/busses/i2c-xlr.c
arch/mips/configs/nlm_xlr_defconfig +4 -0
@@ -365,6 +365,10 @@ CONFIG_SERIAL_8250_RSA=y CONFIG_HW_RANDOM=y CONFIG_HW_RANDOM_TIMERIOMEM=m CONFIG_RAW_DRIVER=m +CONFIG_I2C=y +CONFIG_I2C_XLR=y +CONFIG_RTC_CLASS=y +CONFIG_RTC_DRV_DS1374=y # CONFIG_HWMON is not set # CONFIG_VGA_CONSOLE is not set # CONFIG_HID_SUPPORT is not set
arch/mips/netlogic/xlr/platform.c +52 -0
69 lines not on this page · raw message
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 · 1 line
1.7.4.1