update for gpio

This commit is contained in:
沈睿汀
2010-04-29 09:19:35 +00:00
committed by 黄涛
parent 65d56d9355
commit 08700a4d62
3 changed files with 21 additions and 1 deletions

View 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.

View File

@@ -42,7 +42,11 @@
#define IRQ_REG_PLEVEL 0xd8//IRQ System Priority Level Register
#define NR_IRQS (48)
/*<2A><><EFBFBD><EFBFBD>RK2818<31><38><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD>Ŀ<EFBFBD><C4BF>NR_AIC_IRQS<51><53>ʾRK2818<31><38><EFBFBD>жϼĴ<CFBC><C4B4><EFBFBD>֧<EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><D0B6><EFBFBD>Ŀ<EFBFBD><C4BF>
CONFIG_RK28_GPIO_IRQ<EFBFBD><EFBFBD>ʾRK2818<EFBFBD><EFBFBD>GPIO<EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>CONFIG_EXTEND_GPIO_IRQ<EFBFBD><EFBFBD>ʾRK2818<EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>չIO<EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ж<EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>*/
#define NR_AIC_IRQS 48
#define NR_IRQS (NR_AIC_IRQS + CONFIG_RK28_GPIO_IRQ + CONFIG_EXTEND_GPIO_IRQ)
/*irq number*/

View 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