edit pca9554.c
author谢修鑫 <xxx@rock-chips.com>
Tue, 25 May 2010 16:17:30 +0000 (16:17 +0000)
committer黄涛 <huangtao@rock-chips.com>
Mon, 21 Jun 2010 05:35:17 +0000 (13:35 +0800)
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/pca9554.c

index 04383183cf57c2be11b3c66dec976ce9b8abda8b..91baae369d7c4d2e7f6636bee641178b1d42a348 100644 (file)
@@ -230,19 +230,19 @@ config GPIO_UCB1400
          To compile this driver as a module, choose M here: the
          module will be called ucb1400_gpio.
 
-config GPIO_TCA6424
-       bool "TCA6424 extend GPIO"
+config GPIO_PCA9554
+       bool "GPIO EXPANDER PCA9554"
        depends on I2C
        help
-         Say yes here to access the TCA6424 extend GPIO 
+         Say yes here to access the PCA9554 GPIO EXPANDER
 
-config ARCH_EXTEND_GPIOS         
-       int
-       default 24 if GPIO_TCA6424
-       default 0
+config EXPANDED_GPIO_NUM  
+       int "setting the amount of expanded gpios"
+       default 8 if GPIO_PCA9554
+  default 0
        
-config EXTEND_GPIO_IRQ
-       int
-       default 3 if GPIO_TCA6424       
+config EXPANDED_GPIO_IRQ_NUM
+       int "setting the amount of expanded gpio irqs"
+       default 8 if GPIO_PCA9554       
        default 0       
 endif
index 00a532c9a1e294afcf6c6224d1b32e6bdda8068e..8fef4c219b7bc765fc8163e2b211bb44b26baadf 100644 (file)
@@ -19,3 +19,4 @@ obj-$(CONFIG_GPIO_XILINX)     += xilinx_gpio.o
 obj-$(CONFIG_GPIO_BT8XX)       += bt8xxgpio.o
 obj-$(CONFIG_GPIO_VR41XX)      += vr41xx_giu.o
 obj-$(CONFIG_GPIO_WM831X)      += wm831x-gpio.o
+obj-$(CONFIG_GPIO_PCA9554)     += pca9554.o
index e6813e2a003ff74cc0e2c5f38f4a153551714808..6ff0a260c4828073b532127f60ff87cb99626bf1 100644 (file)
@@ -100,7 +100,7 @@ struct pca9554_chip {
 };
 
 
-#if 1
+#if 0
 #define DBG(x...)      printk(KERN_INFO x)
 #else
 #define DBG(x...)
@@ -906,7 +906,7 @@ static int __devinit pca9554_probe(struct i2c_client *client,const struct i2c_de
 
        chip->client = client;
 
-       pca9554_test(chip);
+       //pca9554_test(chip);
 
        return 0;