diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-10-09 19:23:22 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-10-09 19:23:22 +0000 |
commit | 199c2d1ca587fe11dce11747a77237c4dff7df72 (patch) | |
tree | 2dae4b4fe8dd063109cc4cef7dcd5263045a0a0a /target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch | |
parent | 6c533f0b92c7f57ab4764f80a6e1f20cc5c377ec (diff) | |
download | upstream-199c2d1ca587fe11dce11747a77237c4dff7df72.tar.gz upstream-199c2d1ca587fe11dce11747a77237c4dff7df72.tar.bz2 upstream-199c2d1ca587fe11dce11747a77237c4dff7df72.zip |
[adm5120] add custom GPIO-based I2C driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9218 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch | 53 |
1 files changed, 53 insertions, 0 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 new file mode 100644 index 0000000000..2bbb197d69 --- /dev/null +++ b/target/linux/adm5120/patches-2.6.22/300-i2c_gpio_custom.patch @@ -0,0 +1,53 @@ +--- 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 @@ + 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" ++ depends on GENERIC_GPIO ++ select I2C_GPIO ++ help ++ This is an I2C driver to register a custom i2c-gpio device. ++ ++ 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. ++ + config I2C_HYDRA + tristate "CHRP Apple Hydra Mac I/O I2C interface" + depends on PCI && PPC_CHRP && EXPERIMENTAL +--- linux-2.6.22.4.orig/drivers/i2c/busses/Makefile 2007-08-21 06:33:06.000000000 +0200 ++++ linux-2.6.22.4/drivers/i2c/busses/Makefile 2007-10-09 12:07:45.000000000 +0200 +@@ -13,6 +13,7 @@ + obj-$(CONFIG_I2C_BLACKFIN_TWI) += i2c-bfin-twi.o + obj-$(CONFIG_I2C_ELEKTOR) += i2c-elektor.o + obj-$(CONFIG_I2C_GPIO) += i2c-gpio.o ++obj-$(CONFIG_I2C_GPIO_CUSTOM) += i2c-gpio-custom.o + obj-$(CONFIG_I2C_HYDRA) += i2c-hydra.o + obj-$(CONFIG_I2C_I801) += i2c-i801.o + obj-$(CONFIG_I2C_I810) += i2c-i810.o |