Skip to contentSkip to conversation

i2c: Support for Netlogic XLR/XLS on-chip I2C controller.

PATCH Superseded Ganesan Ramalingam 1 participant 1 message Jul 19, 2011

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 i2c: Support for Netlogic XLR/XLS on-chip I2C controller.

platform.c : add i2c platform device
i2c-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
index e4b399f..6431fd3 100644
@@ -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
index 646068e..4ac63f5 100644
@@ -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
index e6cf294..14e7a76 100644
@@ -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