enhance the custom i2c-gpio driver (supports 4 buses from now on), update kernel...
[openwrt/openwrt.git] / target / linux / adm5120 / patches-2.6.22 / 300-i2c_gpio_custom.patch
1 --- linux-2.6.22.4.orig/drivers/i2c/busses/Kconfig 2007-08-21 06:33:06.000000000 +0200
2 +++ linux-2.6.22.4/drivers/i2c/busses/Kconfig 2007-10-09 12:53:13.000000000 +0200
3 @@ -125,6 +125,17 @@
4 This is a very simple bitbanging I2C driver utilizing the
5 arch-neutral GPIO API to control the SCL and SDA lines.
6
7 +config I2C_GPIO_CUSTOM
8 + tristate "Custom GPIO-based I2C driver"
9 + depends on GENERIC_GPIO
10 + select I2C_GPIO
11 + help
12 + This is an I2C driver to register 1 to 4 custom I2C buses using
13 + GPIO lines.
14 +
15 + This support is also available as a module. If so, the module
16 + will be called i2c-gpio-custom.
17 +
18 config I2C_HYDRA
19 tristate "CHRP Apple Hydra Mac I/O I2C interface"
20 depends on PCI && PPC_CHRP && EXPERIMENTAL
21 --- linux-2.6.22.4.orig/drivers/i2c/busses/Makefile 2007-08-21 06:33:06.000000000 +0200
22 +++ linux-2.6.22.4/drivers/i2c/busses/Makefile 2007-10-09 12:07:45.000000000 +0200
23 @@ -13,6 +13,7 @@
24 obj-$(CONFIG_I2C_BLACKFIN_TWI) += i2c-bfin-twi.o
25 obj-$(CONFIG_I2C_ELEKTOR) += i2c-elektor.o
26 obj-$(CONFIG_I2C_GPIO) += i2c-gpio.o
27 +obj-$(CONFIG_I2C_GPIO_CUSTOM) += i2c-gpio-custom.o
28 obj-$(CONFIG_I2C_HYDRA) += i2c-hydra.o
29 obj-$(CONFIG_I2C_I801) += i2c-i801.o
30 obj-$(CONFIG_I2C_I810) += i2c-i810.o