ath79: Convert incorrect 5.10 and 5.15 patches
[openwrt/openwrt.git] / target / linux / ath79 / patches-5.10 / 0034-MIPS-ath79-ath9k-exports.patch
1 From: John Crispin <john@phrozen.org>
2 Subject: [PATCH] ath79: make ahb wifi work
3
4 Submitted-by: John Crispin <john@phrozen.org>
5 ---
6 arch/mips/ath79/common.c | 3 +++
7 mips/include/asm/mach-ath79/ath79.h | 1+
8 1 file changed, 4 insertions(+)
9
10 --- a/arch/mips/ath79/common.c
11 +++ b/arch/mips/ath79/common.c
12 @@ -31,11 +31,13 @@ EXPORT_SYMBOL_GPL(ath79_ddr_freq);
13
14 enum ath79_soc_type ath79_soc;
15 unsigned int ath79_soc_rev;
16 +EXPORT_SYMBOL_GPL(ath79_soc_rev);
17
18 void __iomem *ath79_pll_base;
19 void __iomem *ath79_reset_base;
20 EXPORT_SYMBOL_GPL(ath79_reset_base);
21 -static void __iomem *ath79_ddr_base;
22 +void __iomem *ath79_ddr_base;
23 +EXPORT_SYMBOL_GPL(ath79_ddr_base);
24 static void __iomem *ath79_ddr_wb_flush_base;
25 static void __iomem *ath79_ddr_pci_win_base;
26
27 --- a/arch/mips/include/asm/mach-ath79/ath79.h
28 +++ b/arch/mips/include/asm/mach-ath79/ath79.h
29 @@ -149,6 +149,7 @@ void ath79_ddr_wb_flush(unsigned int reg
30 void ath79_ddr_set_pci_windows(void);
31
32 extern void __iomem *ath79_pll_base;
33 +extern void __iomem *ath79_ddr_base;
34 extern void __iomem *ath79_reset_base;
35
36 static inline void ath79_pll_wr(unsigned reg, u32 val)