Skip to contentSkip to conversation

Support for IXP42x GPIO-based I2C (updated)

PATCH New Deepak Saxena 2 participants 2 messages May 19, 2005 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support for IXP42x GPIO-based I2C (updated)

Greg,

Following is an updated patch to add support for using the GPIO lines on an Intel IXP42x SOC for I2C. Changes since last patch include:

- Cleanups as per Jean Delvare's comments

- Rename functions as 42x instead of 425

- Change the comments at the top of the file to better reflect the purpose of this driver.

This code has been tested with the eeprom client driver and worked w/o any problems.

Tnx,
~Deepak

drivers/i2c/busses/Kconfig +11 -0
diff -Nru a/drivers/i2c/busses/Kconfig b/drivers/i2c/busses/Kconfig
@@ -144,6 +144,17 @@
 	  This support is also available as a module.  If so, the module 
 	  will be called i2c-ite.
 
+config I2C_IXP42X
+	tristate "IXP42x GPIO-Based I2C Interface"
+	depends on I2C && ARCH_IXP425
+	select I2C_ALGOBIT
+	help
+	  Say Y here if you have an Intel IXP42x(420,421,422,425) based 
+	  system and are using GPIO lines for an I2C bus.
+
+	  This support is also available as a module. If so, the module
+	  will be called i2c-ixp42x.
+
 config I2C_KEYWEST
 	tristate "Powermac Keywest I2C interface"
 	depends on I2C && PPC_PMAC
drivers/i2c/busses/Makefile +1 -0
diff -Nru a/drivers/i2c/busses/Makefile b/drivers/i2c/busses/Makefile
@@ -15,6 +15,7 @@
 obj-$(CONFIG_I2C_IOP3XX)	+= i2c-iop3xx.o
 obj-$(CONFIG_I2C_ISA)		+= i2c-isa.o
 obj-$(CONFIG_I2C_ITE)		+= i2c-ite.o
+obj-$(CONFIG_I2C_IXP42X)	+= i2c-ixp42x.o
 obj-$(CONFIG_I2C_KEYWEST)	+= i2c-keywest.o
 obj-$(CONFIG_I2C_NFORCE2)	+= i2c-nforce2.o
 obj-$(CONFIG_I2C_PHILIPSPAR)	+= i2c-philips-par.o
drivers/i2c/busses/i2c-ixp42x.c new file +180 -0

180 lines not on this page · raw message

Signature · 1 line
Deepak Saxena - dsaxena at plexity dot net - http://www.plexity.net/
Applied
#1 lore raw

PATCH 1/1 Support for IXP42x GPIO-based I2C (updated)

Quoted 8 lines · Deepak Saxena

Greg,

Following is an updated patch to add support for using the GPIO lines on an Intel IXP42x SOC for I2C. Changes since last patch include:

- Cleanups as per Jean Delvare's comments

Quoted 7 lines

- Rename functions as 42x instead of 425

- Change the comments at the top of the file to better reflect the purpose of this driver.

This code has been tested with the eeprom client driver and worked w/o any problems.

Applied, thanks.

greg k-h