]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
MIPS: ath79: add AR933X specific GPIO initialization
authorGabor Juhos <juhosg@openwrt.org>
Mon, 20 Jun 2011 19:26:07 +0000 (21:26 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Wed, 7 Dec 2011 22:02:46 +0000 (22:02 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Cc: Kathy Giori <kgiori@qca.qualcomm.com>
Cc: "Luis R. Rodriguez" <rodrigue@qca.qualcomm.com>
Patchwork: https://patchwork.linux-mips.org/patch/2524/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ath79/gpio.c
arch/mips/include/asm/mach-ath79/ar71xx_regs.h

index a0c426b82123ae2c8e67b20f082a8fecf09b9b48..a2f8ca630ed667bb49c2144129f2232c7c047fc1 100644 (file)
@@ -153,6 +153,8 @@ void __init ath79_gpio_init(void)
                ath79_gpio_count = AR724X_GPIO_COUNT;
        else if (soc_is_ar913x())
                ath79_gpio_count = AR913X_GPIO_COUNT;
+       else if (soc_is_ar933x())
+               ath79_gpio_count = AR933X_GPIO_COUNT;
        else
                BUG();
 
index 9c76185801d028bc5f17897d7837f978ee28c163..e65c10dd159bc0f59f333d99537eae6bf5668d78 100644 (file)
 #define AR71XX_GPIO_COUNT              16
 #define AR724X_GPIO_COUNT              18
 #define AR913X_GPIO_COUNT              22
+#define AR933X_GPIO_COUNT              30
 
 #endif /* __ASM_MACH_AR71XX_REGS_H */