Forgot to make i2c driver depend on i2c bit banging algorithm
[openwrt.git] / target / linux / au1000-2.6 / patches / 010-au100_gpio_i2c.patch
index 52d7102..f4dee3c 100644 (file)
@@ -1,13 +1,14 @@
 diff -urN linux-2.6.19/drivers/i2c/busses/Kconfig linux-2.6.19.new/drivers/i2c/busses/Kconfig
 --- linux-2.6.19/drivers/i2c/busses/Kconfig    2006-11-29 22:57:37.000000000 +0100
 +++ linux-2.6.19.new/drivers/i2c/busses/Kconfig        2006-12-28 17:04:34.000000000 +0100
-@@ -84,6 +84,16 @@
+@@ -84,6 +84,17 @@
          This driver can also be built as a module.  If so, the module
          will be called i2c-au1550.
  
 +config I2C_AU1X00GPIO
 +      tristate "Au1x00 i2c using GPIO pins"
-+      depends on I2C && MIPS_MTX1
++      depends on I2C
++      select I2C_ALGOBIT
 +      help
 +        If you say yest to this option, support will be included for the
 +        Au1x00 GPIO interface.
@@ -454,3 +455,16 @@ diff -urN linux-2.6.19/drivers/i2c/busses/i2c-au1x00gpio.c linux-2.6.19.new/driv
 +      i2c_bit_au1x00gpio_exit();
 +}
 +#endif
+diff -urN linux-2.6.19/include/linux/i2c-id.h linux-2.6.19.new/include/linux/i2c-id.h
+--- linux-2.6.19/include/linux/i2c-id.h        2006-11-29 22:57:37.000000000 +0100
++++ linux-2.6.19.new/include/linux/i2c-id.h    2006-12-28 03:12:15.000000000 +0100
+@@ -231,6 +231,9 @@
+ /* --- Au1550 PSC adapters adapters                                   */
+ #define I2C_HW_AU1550_PSC     0x1b0000
++/* --- Au1x00 i2c GPIO adapter                                                */
++#define I2C_HW_B_AU1x00GPIO 0x1b
++
+ /* --- SMBus only adapters                                            */
+ #define I2C_HW_SMBUS_PIIX4    0x040000
+ #define I2C_HW_SMBUS_ALI15X3  0x040001
This page took 0.025953 seconds and 4 git commands to generate.