aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clkt2xxx_apll.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/clkt2xxx_apll.c')
-rw-r--r--arch/arm/mach-omap2/clkt2xxx_apll.c52
1 files changed, 0 insertions, 52 deletions
diff --git a/arch/arm/mach-omap2/clkt2xxx_apll.c b/arch/arm/mach-omap2/clkt2xxx_apll.c
index 76a958c6e5bc..25b1feed480d 100644
--- a/arch/arm/mach-omap2/clkt2xxx_apll.c
+++ b/arch/arm/mach-omap2/clkt2xxx_apll.c
@@ -38,7 +38,6 @@
38 38
39/* Private functions */ 39/* Private functions */
40 40
41#ifdef CONFIG_COMMON_CLK
42/** 41/**
43 * omap2xxx_clk_apll_locked - is the APLL locked? 42 * omap2xxx_clk_apll_locked - is the APLL locked?
44 * @hw: struct clk_hw * of the APLL to check 43 * @hw: struct clk_hw * of the APLL to check
@@ -57,81 +56,47 @@ static bool omap2xxx_clk_apll_locked(struct clk_hw *hw)
57 56
58 return ((r & apll_mask) == apll_mask) ? true : false; 57 return ((r & apll_mask) == apll_mask) ? true : false;
59} 58}
60#endif
61 59
62#ifdef CONFIG_COMMON_CLK
63int omap2_clk_apll96_enable(struct clk_hw *hw) 60int omap2_clk_apll96_enable(struct clk_hw *hw)
64#else
65static int _apll96_enable(struct clk *clk)
66#endif
67{ 61{
68 return omap2xxx_cm_apll96_enable(); 62 return omap2xxx_cm_apll96_enable();
69} 63}
70 64
71#ifdef CONFIG_COMMON_CLK
72int omap2_clk_apll54_enable(struct clk_hw *hw) 65int omap2_clk_apll54_enable(struct clk_hw *hw)
73#else
74static int _apll54_enable(struct clk *clk)
75#endif
76{ 66{
77 return omap2xxx_cm_apll54_enable(); 67 return omap2xxx_cm_apll54_enable();
78} 68}
79 69
80#ifdef CONFIG_COMMON_CLK
81static void _apll96_allow_idle(struct clk_hw_omap *clk) 70static void _apll96_allow_idle(struct clk_hw_omap *clk)
82#else
83static void _apll96_allow_idle(struct clk *clk)
84#endif
85{ 71{
86 omap2xxx_cm_set_apll96_auto_low_power_stop(); 72 omap2xxx_cm_set_apll96_auto_low_power_stop();
87} 73}
88 74
89#ifdef CONFIG_COMMON_CLK
90static void _apll96_deny_idle(struct clk_hw_omap *clk) 75static void _apll96_deny_idle(struct clk_hw_omap *clk)
91#else
92static void _apll96_deny_idle(struct clk *clk)
93#endif
94{ 76{
95 omap2xxx_cm_set_apll96_disable_autoidle(); 77 omap2xxx_cm_set_apll96_disable_autoidle();
96} 78}
97 79
98#ifdef CONFIG_COMMON_CLK
99static void _apll54_allow_idle(struct clk_hw_omap *clk) 80static void _apll54_allow_idle(struct clk_hw_omap *clk)
100#else
101static void _apll54_allow_idle(struct clk *clk)
102#endif
103{ 81{
104 omap2xxx_cm_set_apll54_auto_low_power_stop(); 82 omap2xxx_cm_set_apll54_auto_low_power_stop();
105} 83}
106 84
107#ifdef CONFIG_COMMON_CLK
108static void _apll54_deny_idle(struct clk_hw_omap *clk) 85static void _apll54_deny_idle(struct clk_hw_omap *clk)
109#else
110static void _apll54_deny_idle(struct clk *clk)
111#endif
112{ 86{
113 omap2xxx_cm_set_apll54_disable_autoidle(); 87 omap2xxx_cm_set_apll54_disable_autoidle();
114} 88}
115 89
116#ifdef CONFIG_COMMON_CLK
117void omap2_clk_apll96_disable(struct clk_hw *hw) 90void omap2_clk_apll96_disable(struct clk_hw *hw)
118#else
119static void _apll96_disable(struct clk *clk)
120#endif
121{ 91{
122 omap2xxx_cm_apll96_disable(); 92 omap2xxx_cm_apll96_disable();
123} 93}
124 94
125#ifdef CONFIG_COMMON_CLK
126void omap2_clk_apll54_disable(struct clk_hw *hw) 95void omap2_clk_apll54_disable(struct clk_hw *hw)
127#else
128static void _apll54_disable(struct clk *clk)
129#endif
130{ 96{
131 omap2xxx_cm_apll54_disable(); 97 omap2xxx_cm_apll54_disable();
132} 98}
133 99
134#ifdef CONFIG_COMMON_CLK
135unsigned long omap2_clk_apll54_recalc(struct clk_hw *hw, 100unsigned long omap2_clk_apll54_recalc(struct clk_hw *hw,
136 unsigned long parent_rate) 101 unsigned long parent_rate)
137{ 102{
@@ -143,10 +108,8 @@ unsigned long omap2_clk_apll96_recalc(struct clk_hw *hw,
143{ 108{
144 return (omap2xxx_clk_apll_locked(hw)) ? 96000000 : 0; 109 return (omap2xxx_clk_apll_locked(hw)) ? 96000000 : 0;
145} 110}
146#endif
147 111
148/* Public data */ 112/* Public data */
149#ifdef CONFIG_COMMON_CLK
150const struct clk_hw_omap_ops clkhwops_apll54 = { 113const struct clk_hw_omap_ops clkhwops_apll54 = {
151 .allow_idle = _apll54_allow_idle, 114 .allow_idle = _apll54_allow_idle,
152 .deny_idle = _apll54_deny_idle, 115 .deny_idle = _apll54_deny_idle,
@@ -156,21 +119,6 @@ const struct clk_hw_omap_ops clkhwops_apll96 = {
156 .allow_idle = _apll96_allow_idle, 119 .allow_idle = _apll96_allow_idle,
157 .deny_idle = _apll96_deny_idle, 120 .deny_idle = _apll96_deny_idle,
158}; 121};
159#else
160const struct clkops clkops_apll96 = {
161 .enable = _apll96_enable,
162 .disable = _apll96_disable,
163 .allow_idle = _apll96_allow_idle,
164 .deny_idle = _apll96_deny_idle,
165};
166
167const struct clkops clkops_apll54 = {
168 .enable = _apll54_enable,
169 .disable = _apll54_disable,
170 .allow_idle = _apll54_allow_idle,
171 .deny_idle = _apll54_deny_idle,
172};
173#endif
174 122
175/* Public functions */ 123/* Public functions */
176 124