ar71xx: preset WLAN LED config on MZK-W300NH
[openwrt.git] / target / linux / ar71xx / patches-3.2 / 210-MIPS-ath79-fix-gpio-count-for-ar7241.patch
1 --- a/arch/mips/ath79/gpio.c
2 +++ b/arch/mips/ath79/gpio.c
3 @@ -188,8 +188,10 @@ void __init ath79_gpio_init(void)
4
5 if (soc_is_ar71xx())
6 ath79_gpio_count = AR71XX_GPIO_COUNT;
7 - else if (soc_is_ar724x())
8 - ath79_gpio_count = AR724X_GPIO_COUNT;
9 + else if (soc_is_ar7240())
10 + ath79_gpio_count = AR7240_GPIO_COUNT;
11 + else if (soc_is_ar7241() || soc_is_ar7242())
12 + ath79_gpio_count = AR7241_GPIO_COUNT;
13 else if (soc_is_ar913x())
14 ath79_gpio_count = AR913X_GPIO_COUNT;
15 else if (soc_is_ar933x())
16 --- a/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
17 +++ b/arch/mips/include/asm/mach-ath79/ar71xx_regs.h
18 @@ -428,7 +428,8 @@
19 #define AR71XX_GPIO_REG_FUNC 0x28
20
21 #define AR71XX_GPIO_COUNT 16
22 -#define AR724X_GPIO_COUNT 18
23 +#define AR7240_GPIO_COUNT 18
24 +#define AR7241_GPIO_COUNT 20
25 #define AR913X_GPIO_COUNT 22
26 #define AR933X_GPIO_COUNT 30
27 #define AR934X_GPIO_COUNT 23
This page took 0.046211 seconds and 5 git commands to generate.