diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-07-05 21:17:55 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-07-11 02:03:12 -0400 |
commit | 23bcc04d0caaa21e0107876a34b4fd50baecddd1 (patch) | |
tree | cddb7b8bbe80862bb1ec84a7ff591b0ebded5097 /arch/sh | |
parent | 54f7c11647d093c8e1712f1bbe89c9bd4ee23b56 (diff) |
sh: clock-sh7724: add CLKDEV_ICK_ID for cleanup
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7724.c | 79 |
1 files changed, 17 insertions, 62 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c index 77bcef5031eb..0891876ffd0f 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7724.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7724.c | |||
@@ -254,6 +254,7 @@ static struct clk mstp_clks[HWBLK_NR] = { | |||
254 | 254 | ||
255 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } | 255 | #define CLKDEV_CON_ID(_id, _clk) { .con_id = _id, .clk = _clk } |
256 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } | 256 | #define CLKDEV_DEV_ID(_id, _clk) { .dev_id = _id, .clk = _clk } |
257 | #define CLKDEV_ICK_ID(_cid, _did, _clk) { .con_id = _cid, .dev_id = _did, .clk = _clk } | ||
257 | 258 | ||
258 | static struct clk_lookup lookups[] = { | 259 | static struct clk_lookup lookups[] = { |
259 | /* main clocks */ | 260 | /* main clocks */ |
@@ -290,71 +291,25 @@ static struct clk_lookup lookups[] = { | |||
290 | CLKDEV_CON_ID("sh0", &mstp_clks[HWBLK_SHYWAY]), | 291 | CLKDEV_CON_ID("sh0", &mstp_clks[HWBLK_SHYWAY]), |
291 | CLKDEV_CON_ID("hudi0", &mstp_clks[HWBLK_HUDI]), | 292 | CLKDEV_CON_ID("hudi0", &mstp_clks[HWBLK_HUDI]), |
292 | CLKDEV_CON_ID("ubc0", &mstp_clks[HWBLK_UBC]), | 293 | CLKDEV_CON_ID("ubc0", &mstp_clks[HWBLK_UBC]), |
293 | { | 294 | |
294 | /* TMU0 */ | 295 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.0", &mstp_clks[HWBLK_TMU0]), |
295 | .dev_id = "sh_tmu.0", | 296 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.1", &mstp_clks[HWBLK_TMU0]), |
296 | .con_id = "tmu_fck", | 297 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.2", &mstp_clks[HWBLK_TMU0]), |
297 | .clk = &mstp_clks[HWBLK_TMU0], | 298 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.3", &mstp_clks[HWBLK_TMU1]), |
298 | }, { | 299 | |
299 | /* TMU1 */ | ||
300 | .dev_id = "sh_tmu.1", | ||
301 | .con_id = "tmu_fck", | ||
302 | .clk = &mstp_clks[HWBLK_TMU0], | ||
303 | }, { | ||
304 | /* TMU2 */ | ||
305 | .dev_id = "sh_tmu.2", | ||
306 | .con_id = "tmu_fck", | ||
307 | .clk = &mstp_clks[HWBLK_TMU0], | ||
308 | }, { | ||
309 | /* TMU3 */ | ||
310 | .dev_id = "sh_tmu.3", | ||
311 | .con_id = "tmu_fck", | ||
312 | .clk = &mstp_clks[HWBLK_TMU1], | ||
313 | }, | ||
314 | CLKDEV_CON_ID("cmt_fck", &mstp_clks[HWBLK_CMT]), | 300 | CLKDEV_CON_ID("cmt_fck", &mstp_clks[HWBLK_CMT]), |
315 | CLKDEV_CON_ID("rwdt0", &mstp_clks[HWBLK_RWDT]), | 301 | CLKDEV_CON_ID("rwdt0", &mstp_clks[HWBLK_RWDT]), |
316 | CLKDEV_CON_ID("dmac1", &mstp_clks[HWBLK_DMAC1]), | 302 | CLKDEV_CON_ID("dmac1", &mstp_clks[HWBLK_DMAC1]), |
317 | { | 303 | |
318 | /* TMU4 */ | 304 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.4", &mstp_clks[HWBLK_TMU1]), |
319 | .dev_id = "sh_tmu.4", | 305 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.5", &mstp_clks[HWBLK_TMU1]), |
320 | .con_id = "tmu_fck", | 306 | CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[HWBLK_SCIF0]), |
321 | .clk = &mstp_clks[HWBLK_TMU1], | 307 | CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[HWBLK_SCIF1]), |
322 | }, { | 308 | CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[HWBLK_SCIF2]), |
323 | /* TMU5 */ | 309 | CLKDEV_ICK_ID("sci_fck", "sh-sci.3", &mstp_clks[HWBLK_SCIF3]), |
324 | .dev_id = "sh_tmu.5", | 310 | CLKDEV_ICK_ID("sci_fck", "sh-sci.4", &mstp_clks[HWBLK_SCIF4]), |
325 | .con_id = "tmu_fck", | 311 | CLKDEV_ICK_ID("sci_fck", "sh-sci.5", &mstp_clks[HWBLK_SCIF5]), |
326 | .clk = &mstp_clks[HWBLK_TMU1], | 312 | |
327 | }, { | ||
328 | /* SCIF0 */ | ||
329 | .dev_id = "sh-sci.0", | ||
330 | .con_id = "sci_fck", | ||
331 | .clk = &mstp_clks[HWBLK_SCIF0], | ||
332 | }, { | ||
333 | /* SCIF1 */ | ||
334 | .dev_id = "sh-sci.1", | ||
335 | .con_id = "sci_fck", | ||
336 | .clk = &mstp_clks[HWBLK_SCIF1], | ||
337 | }, { | ||
338 | /* SCIF2 */ | ||
339 | .dev_id = "sh-sci.2", | ||
340 | .con_id = "sci_fck", | ||
341 | .clk = &mstp_clks[HWBLK_SCIF2], | ||
342 | }, { | ||
343 | /* SCIF3 */ | ||
344 | .dev_id = "sh-sci.3", | ||
345 | .con_id = "sci_fck", | ||
346 | .clk = &mstp_clks[HWBLK_SCIF3], | ||
347 | }, { | ||
348 | /* SCIF4 */ | ||
349 | .dev_id = "sh-sci.4", | ||
350 | .con_id = "sci_fck", | ||
351 | .clk = &mstp_clks[HWBLK_SCIF4], | ||
352 | }, { | ||
353 | /* SCIF5 */ | ||
354 | .dev_id = "sh-sci.5", | ||
355 | .con_id = "sci_fck", | ||
356 | .clk = &mstp_clks[HWBLK_SCIF5], | ||
357 | }, | ||
358 | CLKDEV_CON_ID("msiof0", &mstp_clks[HWBLK_MSIOF0]), | 313 | CLKDEV_CON_ID("msiof0", &mstp_clks[HWBLK_MSIOF0]), |
359 | CLKDEV_CON_ID("msiof1", &mstp_clks[HWBLK_MSIOF1]), | 314 | CLKDEV_CON_ID("msiof1", &mstp_clks[HWBLK_MSIOF1]), |
360 | CLKDEV_CON_ID("keysc0", &mstp_clks[HWBLK_KEYSC]), | 315 | CLKDEV_CON_ID("keysc0", &mstp_clks[HWBLK_KEYSC]), |