[ar71xx] initialize GPIO for the AR7240 SoC
authorGabor Juhos <juhosg@openwrt.org>
Wed, 1 Jul 2009 19:38:26 +0000 (19:38 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 1 Jul 2009 19:38:26 +0000 (19:38 +0000)
SVN-Revision: 16647

target/linux/ar71xx/files/arch/mips/ar71xx/gpio.c
target/linux/ar71xx/files/arch/mips/include/asm/mach-ar71xx/ar71xx.h

index a3d00aeedd3713a27f6b747cd7c07477eded53a0..c1990ad453a64ce2b180914aee1f2b11f55dd4e4 100644 (file)
@@ -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;
index 8a45a0c90e3cd5d2406eef5d0ef07f18bfa658e7..14e5fe3ddad34491c2997827a77b13c0035b1b1b 100644 (file)
@@ -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)