Skip to contentSkip to conversation

I2C via MTX-1 GPIO lines

PATCH Applied Florian Fainelli 2 participants 2 messages Mar 2, 2007 – Mar 3, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/7 I2C via MTX-1 GPIO lines

This patch adds support for an I2C bus using GPIO devices. It is preconfigured to use the MTX-1 GPIO lines dedicated to I2C.

drivers/i2c/busses/Kconfig +11 -0
diff -urN linux-2.6.19/drivers/i2c/busses/Kconfig linux-2.6.19.new/drivers/i2c/busses/Kconfig
@@ -84,6 +84,17 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called i2c-au1550.
 
+config I2C_AU1X00GPIO
+	tristate "Au1x00 i2c using GPIO pins"
+	depends on I2C
+	select I2C_ALGOBIT
+	help
+	  If you say yest to this option, support will be included for the
+	  Au1x00 GPIO interface.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called i2c-au1x00gpio.
+
 config I2C_ELEKTOR
 	tristate "Elektor ISA card"
 	depends on I2C && ISA && BROKEN_ON_SMP
drivers/i2c/busses/Makefile +1 -0
diff -urN linux-2.6.19/drivers/i2c/busses/Makefile linux-2.6.19.new/drivers/i2c/busses/Makefile
@@ -9,6 +9,7 @@
 obj-$(CONFIG_I2C_AMD756_S4882)	+= i2c-amd756-s4882.o
 obj-$(CONFIG_I2C_AMD8111)	+= i2c-amd8111.o
 obj-$(CONFIG_I2C_AU1550)	+= i2c-au1550.o
+obj-$(CONFIG_I2C_AU1X00GPIO)	+= i2c-au1x00gpio.o
 obj-$(CONFIG_I2C_ELEKTOR)	+= i2c-elektor.o
 obj-$(CONFIG_I2C_HYDRA)		+= i2c-hydra.o
 obj-$(CONFIG_I2C_I801)		+= i2c-i801.o
drivers/i2c/busses/i2c-au1x00gpio.c +406 -0

406 lines not on this page · raw message

include/linux/i2c-id.h +3 -0
diff -urN linux-2.6.19/include/linux/i2c-id.h linux-2.6.19.new/include/linux/i2c-id.h
@@ -231,6 +231,9 @@
 /* --- Au1550 PSC adapters adapters					*/
 #define I2C_HW_AU1550_PSC	0x1b0000
 
+/* --- Au1x00 i2c GPIO adapter						*/
+#define I2C_HW_B_AU1x00GPIO 0x1b
+
 /* --- SMBus only adapters						*/
 #define I2C_HW_SMBUS_PIIX4	0x040000
 #define I2C_HW_SMBUS_ALI15X3	0x040001