23
23
#define PLL_DENOM_OFFSET 0x20
24
24
25
25
#define BM_PLL_POWER (0x1 << 12)
26
- #define BM_PLL_ENABLE (0x1 << 13)
27
- #define BM_PLL_BYPASS (0x1 << 16)
28
26
#define BM_PLL_LOCK (0x1 << 31)
29
27
30
28
/**
@@ -84,10 +82,6 @@ static int clk_pllv3_prepare(struct clk_hw *hw)
84
82
if (ret )
85
83
return ret ;
86
84
87
- val = readl_relaxed (pll -> base );
88
- val &= ~BM_PLL_BYPASS ;
89
- writel_relaxed (val , pll -> base );
90
-
91
85
return 0 ;
92
86
}
93
87
@@ -97,36 +91,13 @@ static void clk_pllv3_unprepare(struct clk_hw *hw)
97
91
u32 val ;
98
92
99
93
val = readl_relaxed (pll -> base );
100
- val |= BM_PLL_BYPASS ;
101
94
if (pll -> powerup_set )
102
95
val &= ~BM_PLL_POWER ;
103
96
else
104
97
val |= BM_PLL_POWER ;
105
98
writel_relaxed (val , pll -> base );
106
99
}
107
100
108
- static int clk_pllv3_enable (struct clk_hw * hw )
109
- {
110
- struct clk_pllv3 * pll = to_clk_pllv3 (hw );
111
- u32 val ;
112
-
113
- val = readl_relaxed (pll -> base );
114
- val |= BM_PLL_ENABLE ;
115
- writel_relaxed (val , pll -> base );
116
-
117
- return 0 ;
118
- }
119
-
120
- static void clk_pllv3_disable (struct clk_hw * hw )
121
- {
122
- struct clk_pllv3 * pll = to_clk_pllv3 (hw );
123
- u32 val ;
124
-
125
- val = readl_relaxed (pll -> base );
126
- val &= ~BM_PLL_ENABLE ;
127
- writel_relaxed (val , pll -> base );
128
- }
129
-
130
101
static unsigned long clk_pllv3_recalc_rate (struct clk_hw * hw ,
131
102
unsigned long parent_rate )
132
103
{
@@ -169,8 +140,6 @@ static int clk_pllv3_set_rate(struct clk_hw *hw, unsigned long rate,
169
140
static const struct clk_ops clk_pllv3_ops = {
170
141
.prepare = clk_pllv3_prepare ,
171
142
.unprepare = clk_pllv3_unprepare ,
172
- .enable = clk_pllv3_enable ,
173
- .disable = clk_pllv3_disable ,
174
143
.recalc_rate = clk_pllv3_recalc_rate ,
175
144
.round_rate = clk_pllv3_round_rate ,
176
145
.set_rate = clk_pllv3_set_rate ,
@@ -225,8 +194,6 @@ static int clk_pllv3_sys_set_rate(struct clk_hw *hw, unsigned long rate,
225
194
static const struct clk_ops clk_pllv3_sys_ops = {
226
195
.prepare = clk_pllv3_prepare ,
227
196
.unprepare = clk_pllv3_unprepare ,
228
- .enable = clk_pllv3_enable ,
229
- .disable = clk_pllv3_disable ,
230
197
.recalc_rate = clk_pllv3_sys_recalc_rate ,
231
198
.round_rate = clk_pllv3_sys_round_rate ,
232
199
.set_rate = clk_pllv3_sys_set_rate ,
@@ -299,8 +266,6 @@ static int clk_pllv3_av_set_rate(struct clk_hw *hw, unsigned long rate,
299
266
static const struct clk_ops clk_pllv3_av_ops = {
300
267
.prepare = clk_pllv3_prepare ,
301
268
.unprepare = clk_pllv3_unprepare ,
302
- .enable = clk_pllv3_enable ,
303
- .disable = clk_pllv3_disable ,
304
269
.recalc_rate = clk_pllv3_av_recalc_rate ,
305
270
.round_rate = clk_pllv3_av_round_rate ,
306
271
.set_rate = clk_pllv3_av_set_rate ,
@@ -315,8 +280,6 @@ static unsigned long clk_pllv3_enet_recalc_rate(struct clk_hw *hw,
315
280
static const struct clk_ops clk_pllv3_enet_ops = {
316
281
.prepare = clk_pllv3_prepare ,
317
282
.unprepare = clk_pllv3_unprepare ,
318
- .enable = clk_pllv3_enable ,
319
- .disable = clk_pllv3_disable ,
320
283
.recalc_rate = clk_pllv3_enet_recalc_rate ,
321
284
};
322
285
0 commit comments