fddacc6853fab7eb595809011213397c7a0c3f5e
[openwrt/staging/chunkeey.git] / target / linux / ath79 / patches-4.14 / 0034-MIPS-ath79-ath9k-exports.patch
1 Index: linux-4.14.42/arch/mips/ath79/common.c
2 ===================================================================
3 --- linux-4.14.42.orig/arch/mips/ath79/common.c
4 +++ linux-4.14.42/arch/mips/ath79/common.c
5 @@ -34,11 +34,13 @@ EXPORT_SYMBOL_GPL(ath79_ddr_freq);
6
7 enum ath79_soc_type ath79_soc;
8 unsigned int ath79_soc_rev;
9 +EXPORT_SYMBOL_GPL(ath79_soc_rev);
10
11 void __iomem *ath79_pll_base;
12 void __iomem *ath79_reset_base;
13 EXPORT_SYMBOL_GPL(ath79_reset_base);
14 -static void __iomem *ath79_ddr_base;
15 +void __iomem *ath79_ddr_base;
16 +EXPORT_SYMBOL_GPL(ath79_ddr_base);
17 static void __iomem *ath79_ddr_wb_flush_base;
18 static void __iomem *ath79_ddr_pci_win_base;
19
20 Index: linux-4.14.42/arch/mips/include/asm/mach-ath79/ath79.h
21 ===================================================================
22 --- linux-4.14.42.orig/arch/mips/include/asm/mach-ath79/ath79.h
23 +++ linux-4.14.42/arch/mips/include/asm/mach-ath79/ath79.h
24 @@ -152,6 +152,7 @@ void ath79_ddr_wb_flush(unsigned int reg
25 void ath79_ddr_set_pci_windows(void);
26
27 extern void __iomem *ath79_pll_base;
28 +extern void __iomem *ath79_ddr_base;
29 extern void __iomem *ath79_reset_base;
30
31 static inline void ath79_pll_wr(unsigned reg, u32 val)