Commit 799929d7048b3ec0086ed525ed7ccf6f2b8ecda6
Committed by
Eric Miao
1 parent
ecf89b8a91
Exists in
master
and in
39 other branches
ARM: pxa: reduce the scope of get_memclk_frequency_10khz()
Up to now, only pxa2xx pcmcia driver is using the API. No other device driver is using this API in PXA3xx or any other PXA silicons. Restrict the scope only on pxa2xx and remove the implementation of pxa3xx. So we can avoid oo much checking on cpuid after more pxa chips supported. Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com> Cc: Eric Miao <eric.y.miao@gmail.com> Signed-off-by: Eric Miao <eric.y.miao@gmail.com>
Showing 3 changed files with 1 additions and 21 deletions Side-by-side Diff
arch/arm/mach-pxa/generic.c
arch/arm/mach-pxa/generic.h
... | ... | @@ -54,11 +54,9 @@ |
54 | 54 | |
55 | 55 | #ifdef CONFIG_PXA3xx |
56 | 56 | extern unsigned pxa3xx_get_clk_frequency_khz(int); |
57 | -extern unsigned pxa3xx_get_memclk_frequency_10khz(void); | |
58 | 57 | extern void pxa3xx_clear_reset_status(unsigned int); |
59 | 58 | #else |
60 | 59 | #define pxa3xx_get_clk_frequency_khz(x) (0) |
61 | -#define pxa3xx_get_memclk_frequency_10khz() (0) | |
62 | 60 | static inline void pxa3xx_clear_reset_status(unsigned int mask) {} |
63 | 61 | #endif |
64 | 62 |
arch/arm/mach-pxa/pxa3xx.c
... | ... | @@ -98,23 +98,6 @@ |
98 | 98 | return CLK / 1000; |
99 | 99 | } |
100 | 100 | |
101 | -/* | |
102 | - * Return the current static memory controller clock frequency | |
103 | - * in units of 10kHz | |
104 | - */ | |
105 | -unsigned int pxa3xx_get_memclk_frequency_10khz(void) | |
106 | -{ | |
107 | - unsigned long acsr; | |
108 | - unsigned int smcfs, clk = 0; | |
109 | - | |
110 | - acsr = ACSR; | |
111 | - | |
112 | - smcfs = (acsr >> 23) & 0x7; | |
113 | - clk = (acsr & ACCR_D0CS) ? RO_CLK : smcfs_mult[smcfs] * BASE_CLK; | |
114 | - | |
115 | - return (clk / 10000); | |
116 | -} | |
117 | - | |
118 | 101 | void pxa3xx_clear_reset_status(unsigned int mask) |
119 | 102 | { |
120 | 103 | /* RESET_STATUS_* has a 1:1 mapping with ARSR */ |