diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-12-06 01:26:15 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-12-06 01:58:01 -0500 |
commit | 7e28c7bb377d8f46c46e79e2b18f0297e7bb4940 (patch) | |
tree | a862d47832594fff659b7480871f7d6407be37b1 /arch | |
parent | 56242a1fc595d158eddefbb4d6d76e82c2535f55 (diff) |
sh: clock-sh7723: 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')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/clock-sh7723.c | 76 |
1 files changed, 13 insertions, 63 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c index 3cc3827380e3..f254166e1f3b 100644 --- a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c +++ b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c | |||
@@ -233,73 +233,10 @@ static struct clk_lookup lookups[] = { | |||
233 | CLKDEV_CON_ID("sh0", &mstp_clks[HWBLK_SHYWAY]), | 233 | CLKDEV_CON_ID("sh0", &mstp_clks[HWBLK_SHYWAY]), |
234 | CLKDEV_CON_ID("hudi0", &mstp_clks[HWBLK_HUDI]), | 234 | CLKDEV_CON_ID("hudi0", &mstp_clks[HWBLK_HUDI]), |
235 | CLKDEV_CON_ID("ubc0", &mstp_clks[HWBLK_UBC]), | 235 | CLKDEV_CON_ID("ubc0", &mstp_clks[HWBLK_UBC]), |
236 | { | ||
237 | /* TMU0 */ | ||
238 | .dev_id = "sh_tmu.0", | ||
239 | .con_id = "tmu_fck", | ||
240 | .clk = &mstp_clks[HWBLK_TMU0], | ||
241 | }, { | ||
242 | /* TMU1 */ | ||
243 | .dev_id = "sh_tmu.1", | ||
244 | .con_id = "tmu_fck", | ||
245 | .clk = &mstp_clks[HWBLK_TMU0], | ||
246 | }, { | ||
247 | /* TMU2 */ | ||
248 | .dev_id = "sh_tmu.2", | ||
249 | .con_id = "tmu_fck", | ||
250 | .clk = &mstp_clks[HWBLK_TMU0], | ||
251 | }, | ||
252 | CLKDEV_CON_ID("cmt_fck", &mstp_clks[HWBLK_CMT]), | 236 | CLKDEV_CON_ID("cmt_fck", &mstp_clks[HWBLK_CMT]), |
253 | CLKDEV_CON_ID("rwdt0", &mstp_clks[HWBLK_RWDT]), | 237 | CLKDEV_CON_ID("rwdt0", &mstp_clks[HWBLK_RWDT]), |
254 | CLKDEV_CON_ID("dmac1", &mstp_clks[HWBLK_DMAC1]), | 238 | CLKDEV_CON_ID("dmac1", &mstp_clks[HWBLK_DMAC1]), |
255 | { | ||
256 | /* TMU3 */ | ||
257 | .dev_id = "sh_tmu.3", | ||
258 | .con_id = "tmu_fck", | ||
259 | .clk = &mstp_clks[HWBLK_TMU1], | ||
260 | }, { | ||
261 | /* TMU4 */ | ||
262 | .dev_id = "sh_tmu.4", | ||
263 | .con_id = "tmu_fck", | ||
264 | .clk = &mstp_clks[HWBLK_TMU1], | ||
265 | }, { | ||
266 | /* TMU5 */ | ||
267 | .dev_id = "sh_tmu.5", | ||
268 | .con_id = "tmu_fck", | ||
269 | .clk = &mstp_clks[HWBLK_TMU1], | ||
270 | }, | ||
271 | CLKDEV_CON_ID("flctl0", &mstp_clks[HWBLK_FLCTL]), | 239 | CLKDEV_CON_ID("flctl0", &mstp_clks[HWBLK_FLCTL]), |
272 | { | ||
273 | /* SCIF0 */ | ||
274 | .dev_id = "sh-sci.0", | ||
275 | .con_id = "sci_fck", | ||
276 | .clk = &mstp_clks[HWBLK_SCIF0], | ||
277 | }, { | ||
278 | /* SCIF1 */ | ||
279 | .dev_id = "sh-sci.1", | ||
280 | .con_id = "sci_fck", | ||
281 | .clk = &mstp_clks[HWBLK_SCIF1], | ||
282 | }, { | ||
283 | /* SCIF2 */ | ||
284 | .dev_id = "sh-sci.2", | ||
285 | .con_id = "sci_fck", | ||
286 | .clk = &mstp_clks[HWBLK_SCIF2], | ||
287 | }, { | ||
288 | /* SCIF3 */ | ||
289 | .dev_id = "sh-sci.3", | ||
290 | .con_id = "sci_fck", | ||
291 | .clk = &mstp_clks[HWBLK_SCIF3], | ||
292 | }, { | ||
293 | /* SCIF4 */ | ||
294 | .dev_id = "sh-sci.4", | ||
295 | .con_id = "sci_fck", | ||
296 | .clk = &mstp_clks[HWBLK_SCIF4], | ||
297 | }, { | ||
298 | /* SCIF5 */ | ||
299 | .dev_id = "sh-sci.5", | ||
300 | .con_id = "sci_fck", | ||
301 | .clk = &mstp_clks[HWBLK_SCIF5], | ||
302 | }, | ||
303 | CLKDEV_CON_ID("msiof0", &mstp_clks[HWBLK_MSIOF0]), | 240 | CLKDEV_CON_ID("msiof0", &mstp_clks[HWBLK_MSIOF0]), |
304 | CLKDEV_CON_ID("msiof1", &mstp_clks[HWBLK_MSIOF1]), | 241 | CLKDEV_CON_ID("msiof1", &mstp_clks[HWBLK_MSIOF1]), |
305 | CLKDEV_CON_ID("meram0", &mstp_clks[HWBLK_MERAM]), | 242 | CLKDEV_CON_ID("meram0", &mstp_clks[HWBLK_MERAM]), |
@@ -324,6 +261,19 @@ static struct clk_lookup lookups[] = { | |||
324 | CLKDEV_CON_ID("veu0", &mstp_clks[HWBLK_VEU2H0]), | 261 | CLKDEV_CON_ID("veu0", &mstp_clks[HWBLK_VEU2H0]), |
325 | CLKDEV_CON_ID("vpu0", &mstp_clks[HWBLK_VPU]), | 262 | CLKDEV_CON_ID("vpu0", &mstp_clks[HWBLK_VPU]), |
326 | CLKDEV_CON_ID("lcdc0", &mstp_clks[HWBLK_LCDC]), | 263 | CLKDEV_CON_ID("lcdc0", &mstp_clks[HWBLK_LCDC]), |
264 | |||
265 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.0", &mstp_clks[HWBLK_TMU0]), | ||
266 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.1", &mstp_clks[HWBLK_TMU0]), | ||
267 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.2", &mstp_clks[HWBLK_TMU0]), | ||
268 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.3", &mstp_clks[HWBLK_TMU1]), | ||
269 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.4", &mstp_clks[HWBLK_TMU1]), | ||
270 | CLKDEV_ICK_ID("tmu_fck", "sh_tmu.5", &mstp_clks[HWBLK_TMU1]), | ||
271 | CLKDEV_ICK_ID("sci_fck", "sh-sci.0", &mstp_clks[HWBLK_SCIF0]), | ||
272 | CLKDEV_ICK_ID("sci_fck", "sh-sci.1", &mstp_clks[HWBLK_SCIF1]), | ||
273 | CLKDEV_ICK_ID("sci_fck", "sh-sci.2", &mstp_clks[HWBLK_SCIF2]), | ||
274 | CLKDEV_ICK_ID("sci_fck", "sh-sci.3", &mstp_clks[HWBLK_SCIF3]), | ||
275 | CLKDEV_ICK_ID("sci_fck", "sh-sci.4", &mstp_clks[HWBLK_SCIF4]), | ||
276 | CLKDEV_ICK_ID("sci_fck", "sh-sci.5", &mstp_clks[HWBLK_SCIF5]), | ||
327 | }; | 277 | }; |
328 | 278 | ||
329 | int __init arch_clk_init(void) | 279 | int __init arch_clk_init(void) |