aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/etrax/patches-2.6.29/500-i2c_gvc.patch
diff options
context:
space:
mode:
authorClaudio Mignanti <c.mignanti@gmail.com>2009-04-19 15:36:30 +0000
committerClaudio Mignanti <c.mignanti@gmail.com>2009-04-19 15:36:30 +0000
commit437de7d88cd6f9eea3ce0d9d9c7c52cb4e98fee6 (patch)
tree4d35f1aef023598b2343ac2b9251bd1aefa26faf /target/linux/etrax/patches-2.6.29/500-i2c_gvc.patch
parentdccac6b2b8b1d7271bea63d6e4792c083a4bff0c (diff)
downloadmaster-187ad058-437de7d88cd6f9eea3ce0d9d9c7c52cb4e98fee6.tar.gz
master-187ad058-437de7d88cd6f9eea3ce0d9d9c7c52cb4e98fee6.tar.bz2
master-187ad058-437de7d88cd6f9eea3ce0d9d9c7c52cb4e98fee6.zip
etrax: dump to 2.6.29
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15260 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/etrax/patches-2.6.29/500-i2c_gvc.patch')
-rw-r--r--target/linux/etrax/patches-2.6.29/500-i2c_gvc.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/target/linux/etrax/patches-2.6.29/500-i2c_gvc.patch b/target/linux/etrax/patches-2.6.29/500-i2c_gvc.patch
new file mode 100644
index 0000000000..7eed8b2a71
--- /dev/null
+++ b/target/linux/etrax/patches-2.6.29/500-i2c_gvc.patch
@@ -0,0 +1,45 @@
+Index: linux-2.6.25.20/arch/cris/arch-v10/drivers/Kconfig
+===================================================================
+--- linux-2.6.25.20.orig/arch/cris/arch-v10/drivers/Kconfig 2009-02-09 09:30:40.000000000 +0100
++++ linux-2.6.25.20/arch/cris/arch-v10/drivers/Kconfig 2009-02-09 21:23:12.000000000 +0100
+@@ -450,11 +450,18 @@
+ i2c_arg = I2C_READARG(STA013_READ_ADDR, reg);
+ val = ioctl(fd, _IO(ETRAXI2C_IOCTYPE, I2C_READREG), i2c_arg);
+
++config ETRAX_I2C_GVC
++ bool "I2C GVC support"
++ depends on ETRAX_ARCH_V10 && !ETRAX_I2C
++ select ETRAX_I2C_USES_PB_NOT_PB_I2C
++ help
++ Enables an I2C driver with Geert Vancompernolle improvement.
++
+ # this is true for most products since PB-I2C seems to be somewhat
+ # flawed..
+ config ETRAX_I2C_USES_PB_NOT_PB_I2C
+ bool "I2C uses PB not PB-I2C"
+- depends on ETRAX_I2C
++ depends on ETRAX_I2C || ETRAX_I2C_GVC
+ help
+ Select whether to use the special I2C mode in the PB I/O register or
+ not. This option needs to be selected in order to use some drivers
+@@ -478,7 +485,7 @@
+
+ config ETRAX_I2C_EEPROM
+ bool "I2C EEPROM (non-volatile RAM) support"
+- depends on ETRAX_I2C
++ depends on ETRAX_I2C || ETRAX_I2C_GVC
+ help
+ Enables I2C EEPROM (non-volatile RAM) on PB0 and PB1 using the I2C
+ driver. Select size option: Probed, 2k, 8k, 16k.
+Index: linux-2.6.25.20/arch/cris/arch-v10/drivers/Makefile
+===================================================================
+--- linux-2.6.25.20.orig/arch/cris/arch-v10/drivers/Makefile 2009-02-09 09:30:41.000000000 +0100
++++ linux-2.6.25.20/arch/cris/arch-v10/drivers/Makefile 2009-02-09 09:35:39.000000000 +0100
+@@ -4,6 +4,7 @@
+
+ obj-$(CONFIG_ETRAX_AXISFLASHMAP) += axisflashmap.o
+ obj-$(CONFIG_ETRAX_I2C) += i2c.o
++obj-$(CONFIG_ETRAX_I2C_GVC) += i2c_gvc.o
+ obj-$(CONFIG_ETRAX_I2C_EEPROM) += eeprom.o
+ obj-$(CONFIG_ETRAX_GPIO) += gpio.o
+ obj-$(CONFIG_ETRAX_DS1302) += ds1302.o