ramips: use gpio-keys-polled instead of gpio-buttons
[openwrt.git] / target / linux / ar71xx / patches-3.2 / 010-MIPS-ath79-add-AR933X-specific-GPIO-initialization.patch
1 From e39670cd076caecfa75f5d97803a275dbd1ec4ab Mon Sep 17 00:00:00 2001
2 From: Gabor Juhos <juhosg@openwrt.org>
3 Date: Mon, 20 Jun 2011 21:26:07 +0200
4 Subject: [PATCH 10/27] MIPS: ath79: add AR933X specific GPIO initialization
5
6 Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
7 Cc: linux-mips@linux-mips.org
8 Cc: Kathy Giori <kgiori@qca.qualcomm.com>
9 Cc: "Luis R. Rodriguez" <rodrigue@qca.qualcomm.com>
10 Patchwork: https://patchwork.linux-mips.org/patch/2524/
11 Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
12 ---
13 arch/mips/ath79/gpio.c | 2 ++
14 arch/mips/include/asm/mach-ath79/ar71xx_regs.h | 1 +
15 2 files changed, 3 insertions(+), 0 deletions(-)
16
17 --- a/arch/mips/ath79/gpio.c
18 +++ b/arch/mips/ath79/gpio.c
19 @@ -153,6 +153,8 @@ void __init ath79_gpio_init(void)
20 ath79_gpio_count = AR724X_GPIO_COUNT;
21 else if (soc_is_ar913x())
22 ath79_gpio_count = AR913X_GPIO_COUNT;
23 + else if (soc_is_ar933x())
24 + ath79_gpio_count = AR933X_GPIO_COUNT;
25 else
26 BUG();
27
28 --- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
29 +++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
30 @@ -298,5 +298,6 @@
31 #define AR71XX_GPIO_COUNT 16
32 #define AR724X_GPIO_COUNT 18
33 #define AR913X_GPIO_COUNT 22
34 +#define AR933X_GPIO_COUNT 30
35
36 #endif /* __ASM_MACH_AR71XX_REGS_H */
This page took 0.039646 seconds and 5 git commands to generate.