Skip to content

Commit af777ce

Browse files
committed
sh: clkfwk: module_clk -> peripheral_clk rename.
For consistenct naming, and to allow us to fix up some confusion in the SH-Mobile clock framework, amongst other places. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
1 parent fd5b124 commit af777ce

23 files changed

Lines changed: 103 additions & 103 deletions

‎arch/sh/kernel/cpu/clock.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ static struct clk master_clk = {
5050
.rate = CONFIG_SH_PCLK_FREQ,
5151
};
5252

53-
static struct clk module_clk = {
54-
.name = "module_clk",
53+
static struct clk peripheral_clk = {
54+
.name = "peripheral_clk",
5555
.parent = &master_clk,
5656
.flags = CLK_ENABLE_ON_INIT,
5757
};
@@ -73,7 +73,7 @@ static struct clk cpu_clk = {
7373
*/
7474
static struct clk *onchip_clocks[] = {
7575
&master_clk,
76-
&module_clk,
76+
&peripheral_clk,
7777
&bus_clk,
7878
&cpu_clk,
7979
};

‎arch/sh/kernel/cpu/sh2/setup-sh7619.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ static struct sh_timer_config cmt0_platform_data = {
115115
.name = "CMT0",
116116
.channel_offset = 0x02,
117117
.timer_bit = 0,
118-
.clk = "module_clk",
118+
.clk = "peripheral_clk",
119119
.clockevent_rating = 125,
120120
.clocksource_rating = 0, /* disabled due to code generation issues */
121121
};
@@ -147,7 +147,7 @@ static struct sh_timer_config cmt1_platform_data = {
147147
.name = "CMT1",
148148
.channel_offset = 0x08,
149149
.timer_bit = 1,
150-
.clk = "module_clk",
150+
.clk = "peripheral_clk",
151151
.clockevent_rating = 125,
152152
.clocksource_rating = 0, /* disabled due to code generation issues */
153153
};

‎arch/sh/kernel/cpu/sh2a/setup-mxg.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
118118
.name = "MTU2_0",
119119
.channel_offset = -0x80,
120120
.timer_bit = 0,
121-
.clk = "module_clk",
121+
.clk = "peripheral_clk",
122122
.clockevent_rating = 200,
123123
};
124124

@@ -149,7 +149,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
149149
.name = "MTU2_1",
150150
.channel_offset = -0x100,
151151
.timer_bit = 1,
152-
.clk = "module_clk",
152+
.clk = "peripheral_clk",
153153
.clockevent_rating = 200,
154154
};
155155

@@ -180,7 +180,7 @@ static struct sh_timer_config mtu2_2_platform_data = {
180180
.name = "MTU2_2",
181181
.channel_offset = 0x80,
182182
.timer_bit = 2,
183-
.clk = "module_clk",
183+
.clk = "peripheral_clk",
184184
.clockevent_rating = 200,
185185
};
186186

‎arch/sh/kernel/cpu/sh2a/setup-sh7201.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
255255
.name = "MTU2_0",
256256
.channel_offset = -0x80,
257257
.timer_bit = 0,
258-
.clk = "module_clk",
258+
.clk = "peripheral_clk",
259259
.clockevent_rating = 200,
260260
};
261261

@@ -286,7 +286,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
286286
.name = "MTU2_1",
287287
.channel_offset = -0x100,
288288
.timer_bit = 1,
289-
.clk = "module_clk",
289+
.clk = "peripheral_clk",
290290
.clockevent_rating = 200,
291291
};
292292

@@ -317,7 +317,7 @@ static struct sh_timer_config mtu2_2_platform_data = {
317317
.name = "MTU2_2",
318318
.channel_offset = 0x80,
319319
.timer_bit = 2,
320-
.clk = "module_clk",
320+
.clk = "peripheral_clk",
321321
.clockevent_rating = 200,
322322
};
323323

‎arch/sh/kernel/cpu/sh2a/setup-sh7203.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ static struct sh_timer_config cmt0_platform_data = {
211211
.name = "CMT0",
212212
.channel_offset = 0x02,
213213
.timer_bit = 0,
214-
.clk = "module_clk",
214+
.clk = "peripheral_clk",
215215
.clockevent_rating = 125,
216216
.clocksource_rating = 0, /* disabled due to code generation issues */
217217
};
@@ -243,7 +243,7 @@ static struct sh_timer_config cmt1_platform_data = {
243243
.name = "CMT1",
244244
.channel_offset = 0x08,
245245
.timer_bit = 1,
246-
.clk = "module_clk",
246+
.clk = "peripheral_clk",
247247
.clockevent_rating = 125,
248248
.clocksource_rating = 0, /* disabled due to code generation issues */
249249
};
@@ -275,7 +275,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
275275
.name = "MTU2_0",
276276
.channel_offset = -0x80,
277277
.timer_bit = 0,
278-
.clk = "module_clk",
278+
.clk = "peripheral_clk",
279279
.clockevent_rating = 200,
280280
};
281281

@@ -306,7 +306,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
306306
.name = "MTU2_1",
307307
.channel_offset = -0x100,
308308
.timer_bit = 1,
309-
.clk = "module_clk",
309+
.clk = "peripheral_clk",
310310
.clockevent_rating = 200,
311311
};
312312

‎arch/sh/kernel/cpu/sh2a/setup-sh7206.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static struct sh_timer_config cmt0_platform_data = {
171171
.name = "CMT0",
172172
.channel_offset = 0x02,
173173
.timer_bit = 0,
174-
.clk = "module_clk",
174+
.clk = "peripheral_clk",
175175
.clockevent_rating = 125,
176176
.clocksource_rating = 0, /* disabled due to code generation issues */
177177
};
@@ -203,7 +203,7 @@ static struct sh_timer_config cmt1_platform_data = {
203203
.name = "CMT1",
204204
.channel_offset = 0x08,
205205
.timer_bit = 1,
206-
.clk = "module_clk",
206+
.clk = "peripheral_clk",
207207
.clockevent_rating = 125,
208208
.clocksource_rating = 0, /* disabled due to code generation issues */
209209
};
@@ -235,7 +235,7 @@ static struct sh_timer_config mtu2_0_platform_data = {
235235
.name = "MTU2_0",
236236
.channel_offset = -0x80,
237237
.timer_bit = 0,
238-
.clk = "module_clk",
238+
.clk = "peripheral_clk",
239239
.clockevent_rating = 200,
240240
};
241241

@@ -266,7 +266,7 @@ static struct sh_timer_config mtu2_1_platform_data = {
266266
.name = "MTU2_1",
267267
.channel_offset = -0x100,
268268
.timer_bit = 1,
269-
.clk = "module_clk",
269+
.clk = "peripheral_clk",
270270
.clockevent_rating = 200,
271271
};
272272

@@ -297,7 +297,7 @@ static struct sh_timer_config mtu2_2_platform_data = {
297297
.name = "MTU2_2",
298298
.channel_offset = 0x80,
299299
.timer_bit = 2,
300-
.clk = "module_clk",
300+
.clk = "peripheral_clk",
301301
.clockevent_rating = 200,
302302
};
303303

‎arch/sh/kernel/cpu/sh3/setup-sh7705.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static struct sh_timer_config tmu0_platform_data = {
121121
.name = "TMU0",
122122
.channel_offset = 0x02,
123123
.timer_bit = 0,
124-
.clk = "module_clk",
124+
.clk = "peripheral_clk",
125125
.clockevent_rating = 200,
126126
};
127127

@@ -152,7 +152,7 @@ static struct sh_timer_config tmu1_platform_data = {
152152
.name = "TMU1",
153153
.channel_offset = 0xe,
154154
.timer_bit = 1,
155-
.clk = "module_clk",
155+
.clk = "peripheral_clk",
156156
.clocksource_rating = 200,
157157
};
158158

@@ -183,7 +183,7 @@ static struct sh_timer_config tmu2_platform_data = {
183183
.name = "TMU2",
184184
.channel_offset = 0x1a,
185185
.timer_bit = 2,
186-
.clk = "module_clk",
186+
.clk = "peripheral_clk",
187187
};
188188

189189
static struct resource tmu2_resources[] = {

‎arch/sh/kernel/cpu/sh3/setup-sh770x.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static struct sh_timer_config tmu0_platform_data = {
149149
.name = "TMU0",
150150
.channel_offset = 0x02,
151151
.timer_bit = 0,
152-
.clk = "module_clk",
152+
.clk = "peripheral_clk",
153153
.clockevent_rating = 200,
154154
};
155155

@@ -180,7 +180,7 @@ static struct sh_timer_config tmu1_platform_data = {
180180
.name = "TMU1",
181181
.channel_offset = 0xe,
182182
.timer_bit = 1,
183-
.clk = "module_clk",
183+
.clk = "peripheral_clk",
184184
.clocksource_rating = 200,
185185
};
186186

@@ -211,7 +211,7 @@ static struct sh_timer_config tmu2_platform_data = {
211211
.name = "TMU2",
212212
.channel_offset = 0x1a,
213213
.timer_bit = 2,
214-
.clk = "module_clk",
214+
.clk = "peripheral_clk",
215215
};
216216

217217
static struct resource tmu2_resources[] = {

‎arch/sh/kernel/cpu/sh3/setup-sh7710.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static struct sh_timer_config tmu0_platform_data = {
125125
.name = "TMU0",
126126
.channel_offset = 0x02,
127127
.timer_bit = 0,
128-
.clk = "module_clk",
128+
.clk = "peripheral_clk",
129129
.clockevent_rating = 200,
130130
};
131131

@@ -156,7 +156,7 @@ static struct sh_timer_config tmu1_platform_data = {
156156
.name = "TMU1",
157157
.channel_offset = 0xe,
158158
.timer_bit = 1,
159-
.clk = "module_clk",
159+
.clk = "peripheral_clk",
160160
.clocksource_rating = 200,
161161
};
162162

@@ -187,7 +187,7 @@ static struct sh_timer_config tmu2_platform_data = {
187187
.name = "TMU2",
188188
.channel_offset = 0x1a,
189189
.timer_bit = 2,
190-
.clk = "module_clk",
190+
.clk = "peripheral_clk",
191191
};
192192

193193
static struct resource tmu2_resources[] = {

‎arch/sh/kernel/cpu/sh3/setup-sh7720.c‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static struct sh_timer_config cmt0_platform_data = {
128128
.name = "CMT0",
129129
.channel_offset = 0x10,
130130
.timer_bit = 0,
131-
.clk = "module_clk",
131+
.clk = "peripheral_clk",
132132
.clockevent_rating = 125,
133133
.clocksource_rating = 125,
134134
};
@@ -160,7 +160,7 @@ static struct sh_timer_config cmt1_platform_data = {
160160
.name = "CMT1",
161161
.channel_offset = 0x20,
162162
.timer_bit = 1,
163-
.clk = "module_clk",
163+
.clk = "peripheral_clk",
164164
};
165165

166166
static struct resource cmt1_resources[] = {
@@ -190,7 +190,7 @@ static struct sh_timer_config cmt2_platform_data = {
190190
.name = "CMT2",
191191
.channel_offset = 0x30,
192192
.timer_bit = 2,
193-
.clk = "module_clk",
193+
.clk = "peripheral_clk",
194194
};
195195

196196
static struct resource cmt2_resources[] = {
@@ -220,7 +220,7 @@ static struct sh_timer_config cmt3_platform_data = {
220220
.name = "CMT3",
221221
.channel_offset = 0x40,
222222
.timer_bit = 3,
223-
.clk = "module_clk",
223+
.clk = "peripheral_clk",
224224
};
225225

226226
static struct resource cmt3_resources[] = {
@@ -250,7 +250,7 @@ static struct sh_timer_config cmt4_platform_data = {
250250
.name = "CMT4",
251251
.channel_offset = 0x50,
252252
.timer_bit = 4,
253-
.clk = "module_clk",
253+
.clk = "peripheral_clk",
254254
};
255255

256256
static struct resource cmt4_resources[] = {
@@ -280,7 +280,7 @@ static struct sh_timer_config tmu0_platform_data = {
280280
.name = "TMU0",
281281
.channel_offset = 0x02,
282282
.timer_bit = 0,
283-
.clk = "module_clk",
283+
.clk = "peripheral_clk",
284284
.clockevent_rating = 200,
285285
};
286286

@@ -311,7 +311,7 @@ static struct sh_timer_config tmu1_platform_data = {
311311
.name = "TMU1",
312312
.channel_offset = 0xe,
313313
.timer_bit = 1,
314-
.clk = "module_clk",
314+
.clk = "peripheral_clk",
315315
.clocksource_rating = 200,
316316
};
317317

@@ -342,7 +342,7 @@ static struct sh_timer_config tmu2_platform_data = {
342342
.name = "TMU2",
343343
.channel_offset = 0x1a,
344344
.timer_bit = 2,
345-
.clk = "module_clk",
345+
.clk = "peripheral_clk",
346346
};
347347

348348
static struct resource tmu2_resources[] = {

0 commit comments

Comments
 (0)