diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-12-14 20:47:24 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-12-14 20:47:24 +0000 |
commit | df79552a2b3d2409b9c1090a264cdd4a43cd42f0 (patch) | |
tree | 470b9e900e888a8a0caa3f85a75339aa46c54b18 /target/linux/ar71xx/files/arch | |
parent | f3906a190c6fef4797f4b412afe65dc6dead6c58 (diff) | |
download | master-187ad058-df79552a2b3d2409b9c1090a264cdd4a43cd42f0.tar.gz master-187ad058-df79552a2b3d2409b9c1090a264cdd4a43cd42f0.tar.bz2 master-187ad058-df79552a2b3d2409b9c1090a264cdd4a43cd42f0.zip |
ar71xx: fix gpio count for ar7241/ar7242
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29532 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c | 5 | ||||
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c b/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c index 517a136a43..eca3b5b76a 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c @@ -254,9 +254,12 @@ void __init ar71xx_gpio_init(void) break; case AR71XX_SOC_AR7240: + ar71xx_gpio_chip.ngpio = AR7240_GPIO_COUNT; + break; + case AR71XX_SOC_AR7241: case AR71XX_SOC_AR7242: - ar71xx_gpio_chip.ngpio = AR724X_GPIO_COUNT; + ar71xx_gpio_chip.ngpio = AR7241_GPIO_COUNT; break; case AR71XX_SOC_AR9130: diff --git a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h index d9c5e87f3f..6ff886134c 100644 --- a/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h +++ b/target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h @@ -466,7 +466,8 @@ static inline u32 ar71xx_usb_ctrl_rr(unsigned reg) #define AR724X_GPIO_FUNC_UART_EN BIT(1) #define AR724X_GPIO_FUNC_JTAG_DISABLE BIT(0) -#define AR724X_GPIO_COUNT 18 +#define AR7240_GPIO_COUNT 18 +#define AR7241_GPIO_COUNT 20 #define AR91XX_GPIO_FUNC_WMAC_LED_EN BIT(22) #define AR91XX_GPIO_FUNC_EXP_PORT_CS_EN BIT(21) |