diff options
Diffstat (limited to 'arch/mips/include/asm/mach-ath79/ath79.h')
-rw-r--r-- | arch/mips/include/asm/mach-ath79/ath79.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ath79/ath79.h b/arch/mips/include/asm/mach-ath79/ath79.h index 6d0c6c9d5622..4f248c3d7b23 100644 --- a/arch/mips/include/asm/mach-ath79/ath79.h +++ b/arch/mips/include/asm/mach-ath79/ath79.h | |||
@@ -29,6 +29,9 @@ enum ath79_soc_type { | |||
29 | ATH79_SOC_AR9132, | 29 | ATH79_SOC_AR9132, |
30 | ATH79_SOC_AR9330, | 30 | ATH79_SOC_AR9330, |
31 | ATH79_SOC_AR9331, | 31 | ATH79_SOC_AR9331, |
32 | ATH79_SOC_AR9341, | ||
33 | ATH79_SOC_AR9342, | ||
34 | ATH79_SOC_AR9344, | ||
32 | }; | 35 | }; |
33 | 36 | ||
34 | extern enum ath79_soc_type ath79_soc; | 37 | extern enum ath79_soc_type ath79_soc; |
@@ -75,6 +78,26 @@ static inline int soc_is_ar933x(void) | |||
75 | ath79_soc == ATH79_SOC_AR9331); | 78 | ath79_soc == ATH79_SOC_AR9331); |
76 | } | 79 | } |
77 | 80 | ||
81 | static inline int soc_is_ar9341(void) | ||
82 | { | ||
83 | return (ath79_soc == ATH79_SOC_AR9341); | ||
84 | } | ||
85 | |||
86 | static inline int soc_is_ar9342(void) | ||
87 | { | ||
88 | return (ath79_soc == ATH79_SOC_AR9342); | ||
89 | } | ||
90 | |||
91 | static inline int soc_is_ar9344(void) | ||
92 | { | ||
93 | return (ath79_soc == ATH79_SOC_AR9344); | ||
94 | } | ||
95 | |||
96 | static inline int soc_is_ar934x(void) | ||
97 | { | ||
98 | return soc_is_ar9341() || soc_is_ar9342() || soc_is_ar9344(); | ||
99 | } | ||
100 | |||
78 | extern void __iomem *ath79_ddr_base; | 101 | extern void __iomem *ath79_ddr_base; |
79 | extern void __iomem *ath79_pll_base; | 102 | extern void __iomem *ath79_pll_base; |
80 | extern void __iomem *ath79_reset_base; | 103 | extern void __iomem *ath79_reset_base; |