2bbb197d6903f1a4575eb6d5d146d38fe46274ee
[openwrt/svn-archive/archive.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,40 @@
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 device"
9 + depends on GENERIC_GPIO
10 + select I2C_GPIO
11 + help
12 + This is an I2C driver to register a custom i2c-gpio device.
13 +
14 + This support is also available as a module. If so, the module
15 + will be called i2c-gpio-dev.
16 +
17 +config I2C_GPIO_CUSTOM_SDA
18 + int "Custom GPIO pin for SDA"
19 + depends on I2C_GPIO_CUSTOM
20 + default "0"
21 + help
22 + Enter the GPIO pin number used for the SDA signal. This value can
23 + also be specified with a module parameter.
24 +
25 +config I2C_GPIO_CUSTOM_SCL
26 + int "Custom GPIO pin for SCL"
27 + depends on I2C_GPIO_CUSTOM
28 + default "1"
29 + help
30 + Enter the GPIO pin number used for the SCL signal. This value can
31 + also be specified with a module parameter.
32 +
33 +config I2C_GPIO_CUSTOM_DEVICE_ID
34 + int "Custom GPIO device id"
35 + depends on I2C_GPIO_CUSTOM
36 + default "0"
37 + help
38 + Enter the number used for the device id of the custom i2c-gpio device.
39 + This value can also be specified with a module parameter.
40 +
41 config I2C_HYDRA
42 tristate "CHRP Apple Hydra Mac I/O I2C interface"
43 depends on PCI && PPC_CHRP && EXPERIMENTAL
44 --- linux-2.6.22.4.orig/drivers/i2c/busses/Makefile 2007-08-21 06:33:06.000000000 +0200
45 +++ linux-2.6.22.4/drivers/i2c/busses/Makefile 2007-10-09 12:07:45.000000000 +0200
46 @@ -13,6 +13,7 @@
47 obj-$(CONFIG_I2C_BLACKFIN_TWI) += i2c-bfin-twi.o
48 obj-$(CONFIG_I2C_ELEKTOR) += i2c-elektor.o
49 obj-$(CONFIG_I2C_GPIO) += i2c-gpio.o
50 +obj-$(CONFIG_I2C_GPIO_CUSTOM) += i2c-gpio-custom.o
51 obj-$(CONFIG_I2C_HYDRA) += i2c-hydra.o
52 obj-$(CONFIG_I2C_I801) += i2c-i801.o
53 obj-$(CONFIG_I2C_I810) += i2c-i810.o