ar71xx: Add support for AP147-010 reference board
[openwrt/openwrt.git] / target / linux / ar71xx / patches-4.1 / 502-MIPS-ath79-export-ath79_gpio_base.patch
1 --- a/arch/mips/ath79/gpio.c
2 +++ b/arch/mips/ath79/gpio.c
3 @@ -25,7 +25,9 @@
4 #include <asm/mach-ath79/ath79.h>
5 #include "common.h"
6
7 -static void __iomem *ath79_gpio_base;
8 +void __iomem *ath79_gpio_base;
9 +EXPORT_SYMBOL_GPL(ath79_gpio_base);
10 +
11 static unsigned long ath79_gpio_count;
12 static DEFINE_SPINLOCK(ath79_gpio_lock);
13
14 --- a/arch/mips/include/asm/mach-ath79/ath79.h
15 +++ b/arch/mips/include/asm/mach-ath79/ath79.h
16 @@ -116,6 +116,7 @@ static inline int soc_is_qca955x(void)
17 }
18
19 extern void __iomem *ath79_ddr_base;
20 +extern void __iomem *ath79_gpio_base;
21 extern void __iomem *ath79_pll_base;
22 extern void __iomem *ath79_reset_base;
23