aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-07-01 19:38:26 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-07-01 19:38:26 +0000
commit17c84f1db9a2eaf152630310b1f49af2b0c0d5b3 (patch)
tree7477e24a37f088cbf723e87b14e18ac89d5e6a97 /target/linux/ar71xx
parentc524244c08749d826d4ba0c8b12cb0feb61779cd (diff)
downloadupstream-17c84f1db9a2eaf152630310b1f49af2b0c0d5b3.tar.gz
upstream-17c84f1db9a2eaf152630310b1f49af2b0c0d5b3.tar.bz2
upstream-17c84f1db9a2eaf152630310b1f49af2b0c0d5b3.zip
initialize GPIO for the AR7240 SoC
SVN-Revision: 16647
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c4
-rw-r--r--target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c b/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
index a3d00aeedd..c1990ad453 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
@@ -139,6 +139,10 @@ void __init ar71xx_gpio_init(void)
ar71xx_gpio_chip.ngpio = AR71XX_GPIO_COUNT;
break;
+ case AR71XX_SOC_AR7240:
+ ar71xx_gpio_chip.ngpio = AR724X_GPIO_COUNT;
+ break;
+
case AR71XX_SOC_AR9130:
case AR71XX_SOC_AR9132:
ar71xx_gpio_chip.ngpio = AR91XX_GPIO_COUNT;
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 8a45a0c90e..14e5fe3dda 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
@@ -238,6 +238,8 @@ static inline u32 ar71xx_usb_ctrl_rr(unsigned reg)
#define AR71XX_GPIO_COUNT 16
+#define AR724X_GPIO_COUNT 16
+
#define AR91XX_GPIO_FUNC_WMAC_LED_EN BIT(22)
#define AR91XX_GPIO_FUNC_EXP_PORT_CS_EN BIT(21)
#define AR91XX_GPIO_FUNC_I2S_REFCLKEN BIT(20)