diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-10-10 14:14:34 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-10-10 14:14:34 +0000 |
commit | c7183451a877cb39a7be5c43d7ecd276f477e3ef (patch) | |
tree | 0b42e7ec93911e2e69650f900154d8c974f9ab2c /target/linux/adm5120/patches-2.6.22 | |
parent | 2413261e97ffaa8c28b22f385a182c8626cff5c9 (diff) | |
download | upstream-c7183451a877cb39a7be5c43d7ecd276f477e3ef.tar.gz upstream-c7183451a877cb39a7be5c43d7ecd276f477e3ef.tar.bz2 upstream-c7183451a877cb39a7be5c43d7ecd276f477e3ef.zip |
[adm5120] enhance the custom i2c-gpio driver (supports 4 buses from now on), update kernel configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9244 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.22')
-rw-r--r-- | target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch | 33 |
1 files changed, 5 insertions, 28 deletions
diff --git a/target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch b/target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch index 2bbb197d69..8c08b74037 100644 --- a/target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch +++ b/target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch @@ -1,42 +1,19 @@ --- linux-2.6.22.4.orig/drivers/i2c/busses/Kconfig 2007-08-21 06:33:06.000000000 +0200 +++ linux-2.6.22.4/drivers/i2c/busses/Kconfig 2007-10-09 12:53:13.000000000 +0200 -@@ -125,6 +125,40 @@ +@@ -125,6 +125,17 @@ This is a very simple bitbanging I2C driver utilizing the arch-neutral GPIO API to control the SCL and SDA lines. +config I2C_GPIO_CUSTOM -+ tristate "Custom GPIO-based I2C device" ++ tristate "Custom GPIO-based I2C driver" + depends on GENERIC_GPIO + select I2C_GPIO + help -+ This is an I2C driver to register a custom i2c-gpio device. ++ This is an I2C driver to register 1 to 4 custom I2C buses using ++ GPIO lines. + + This support is also available as a module. If so, the module -+ will be called i2c-gpio-dev. -+ -+config I2C_GPIO_CUSTOM_SDA -+ int "Custom GPIO pin for SDA" -+ depends on I2C_GPIO_CUSTOM -+ default "0" -+ help -+ Enter the GPIO pin number used for the SDA signal. This value can -+ also be specified with a module parameter. -+ -+config I2C_GPIO_CUSTOM_SCL -+ int "Custom GPIO pin for SCL" -+ depends on I2C_GPIO_CUSTOM -+ default "1" -+ help -+ Enter the GPIO pin number used for the SCL signal. This value can -+ also be specified with a module parameter. -+ -+config I2C_GPIO_CUSTOM_DEVICE_ID -+ int "Custom GPIO device id" -+ depends on I2C_GPIO_CUSTOM -+ default "0" -+ help -+ Enter the number used for the device id of the custom i2c-gpio device. -+ This value can also be specified with a module parameter. ++ will be called i2c-gpio-custom. + config I2C_HYDRA tristate "CHRP Apple Hydra Mac I/O I2C interface" |