update for gpio
author沈睿汀 <srt@rock-chips.com>
Thu, 29 Apr 2010 09:19:35 +0000 (09:19 +0000)
committer黄涛 <huangtao@rock-chips.com>
Mon, 21 Jun 2010 05:34:48 +0000 (13:34 +0800)
arch/arm/Kconfig
arch/arm/mach-rk2818/include/mach/irqs.h
drivers/gpio/Kconfig

index ec57b095f1eece079a7893b91fd8944f655297a3..b252195a9708bb8002e50d88b935627f2b854ac6 100644 (file)
@@ -709,6 +709,7 @@ config ARCH_RK2818
        select COMMON_CLKDEV
         select GENERIC_TIME
         select GENERIC_CLOCKEVENTS
+        select ARCH_REQUIRE_GPIOLIB
        help
           Support for Rockchip RK2818 soc.
 
index d6b94df7bcd1ee38b40240c995d5e08daf8ac8c2..096bd203f7e15c2c7403f68379b569523ca6f173 100644 (file)
 #define IRQ_REG_PLEVEL               0xd8//IRQ System Priority Level Register
 
 
-#define NR_IRQS         (48)
+/*¶¨ÒåRK2818µÄ×î´óÖжÏÊýÄ¿¡£NR_AIC_IRQS±íʾRK2818µÄÖжϼĴæÆ÷Ö§³ÖµÄ×î´óÖжÏÊýÄ¿£¬
+CONFIG_RK28_GPIO_IRQ±íʾRK2818µÄGPIO¸´ÓõÄ×î´óÖжÏÊýÄ¿£¬CONFIG_EXTEND_GPIO_IRQ±íʾRK2818µÄ
+À©Õ¹IO¸´ÓõÄ×î´óÖжÏÊýÄ¿¡£*/
+#define NR_AIC_IRQS    48
+#define        NR_IRQS         (NR_AIC_IRQS + CONFIG_RK28_GPIO_IRQ + CONFIG_EXTEND_GPIO_IRQ)                                   
                                    
                                    
 /*irq number*/                                   
index 2ad0128c63c6995ab11fa7f3e2896bad968fe9f3..04383183cf57c2be11b3c66dec976ce9b8abda8b 100644 (file)
@@ -230,4 +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"
+       depends on I2C
+       help
+         Say yes here to access the TCA6424 extend GPIO 
+
+config ARCH_EXTEND_GPIOS         
+       int
+       default 24 if GPIO_TCA6424
+       default 0
+       
+config EXTEND_GPIO_IRQ
+       int
+       default 3 if GPIO_TCA6424       
+       default 0       
 endif