aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/clock-sh7343.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-05-11 00:59:50 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-05-13 04:32:22 -0400
commit25637f7ae0324c636bde172d9e92bc00d4f0121d (patch)
treec413be7f69c9521dd829099528061635ec98d3ba /arch/sh/kernel/cpu/sh4a/clock-sh7343.c
parente8b96918a45732551b33764b0b526beac3866d58 (diff)
sh: sh7343 mstp32 clkdev lookup
Add sh7343 MSTP clocks to the clkdev lookup table. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/clock-sh7343.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/clock-sh7343.c62
1 files changed, 62 insertions, 0 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c
index 72acbe4625a3..f661d4633573 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7343.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7343.c
@@ -207,6 +207,68 @@ static struct clk mstp_clks[MSTP_NR] = {
207static struct clk_lookup lookups[] = { 207static struct clk_lookup lookups[] = {
208 /* DIV6 clocks */ 208 /* DIV6 clocks */
209 CLKDEV_CON_ID("video_clk", &div6_clks[DIV6_V]), 209 CLKDEV_CON_ID("video_clk", &div6_clks[DIV6_V]),
210
211 /* MSTP32 clocks */
212 CLKDEV_CON_ID("tlb0", &mstp_clks[MSTP031]),
213 CLKDEV_CON_ID("ic0", &mstp_clks[MSTP030]),
214 CLKDEV_CON_ID("oc0", &mstp_clks[MSTP029]),
215 CLKDEV_CON_ID("uram0", &mstp_clks[MSTP028]),
216 CLKDEV_CON_ID("xymem0", &mstp_clks[MSTP026]),
217 CLKDEV_CON_ID("intc3", &mstp_clks[MSTP023]),
218 CLKDEV_CON_ID("intc0", &mstp_clks[MSTP022]),
219
220 CLKDEV_CON_ID("dmac0", &mstp_clks[MSTP021]),
221 CLKDEV_CON_ID("sh0", &mstp_clks[MSTP020]),
222 CLKDEV_CON_ID("hudi0", &mstp_clks[MSTP019]),
223 CLKDEV_CON_ID("ubc0", &mstp_clks[MSTP017]),
224 CLKDEV_CON_ID("tmu_fck", &mstp_clks[MSTP015]),
225 CLKDEV_CON_ID("cmt_fck", &mstp_clks[MSTP014]),
226 CLKDEV_CON_ID("rwdt0", &mstp_clks[MSTP013]),
227 CLKDEV_CON_ID("mfi0", &mstp_clks[MSTP011]),
228 CLKDEV_CON_ID("flctl0", &mstp_clks[MSTP010]),
229 {
230 /* SCIF0 */
231 .dev_id = "sh-sci.0",
232 .con_id = "sci_fck",
233 .clk = &mstp_clks[MSTP007],
234 }, {
235 /* SCIF1 */
236 .dev_id = "sh-sci.1",
237 .con_id = "sci_fck",
238 .clk = &mstp_clks[MSTP006],
239 }, {
240 /* SCIF2 */
241 .dev_id = "sh-sci.2",
242 .con_id = "sci_fck",
243 .clk = &mstp_clks[MSTP005],
244 }, {
245 /* SCIF3 */
246 .dev_id = "sh-sci.3",
247 .con_id = "sci_fck",
248 .clk = &mstp_clks[MSTP004],
249 },
250 CLKDEV_CON_ID("sio0", &mstp_clks[MSTP003]),
251 CLKDEV_CON_ID("siof0", &mstp_clks[MSTP002]),
252 CLKDEV_CON_ID("siof1", &mstp_clks[MSTP001]),
253 CLKDEV_CON_ID("i2c0", &mstp_clks[MSTP109]),
254 CLKDEV_CON_ID("i2c1", &mstp_clks[MSTP108]),
255 CLKDEV_CON_ID("tpu0", &mstp_clks[MSTP225]),
256 CLKDEV_CON_ID("irda0", &mstp_clks[MSTP224]),
257 CLKDEV_CON_ID("sdhi0", &mstp_clks[MSTP218]),
258 CLKDEV_CON_ID("mmcif0", &mstp_clks[MSTP217]),
259 CLKDEV_CON_ID("sim0", &mstp_clks[MSTP216]),
260 CLKDEV_CON_ID("keysc0", &mstp_clks[MSTP214]),
261 CLKDEV_CON_ID("tsif0", &mstp_clks[MSTP213]),
262 CLKDEV_CON_ID("s3d40", &mstp_clks[MSTP212]),
263 CLKDEV_CON_ID("usbf0", &mstp_clks[MSTP211]),
264 CLKDEV_CON_ID("siu0", &mstp_clks[MSTP208]),
265 CLKDEV_CON_ID("jpu0", &mstp_clks[MSTP206]),
266 CLKDEV_CON_ID("vou0", &mstp_clks[MSTP205]),
267 CLKDEV_CON_ID("beu0", &mstp_clks[MSTP204]),
268 CLKDEV_CON_ID("ceu0", &mstp_clks[MSTP203]),
269 CLKDEV_CON_ID("veu0", &mstp_clks[MSTP202]),
270 CLKDEV_CON_ID("vpu0", &mstp_clks[MSTP201]),
271 CLKDEV_CON_ID("lcdc0", &mstp_clks[MSTP200]),
210}; 272};
211 273
212int __init arch_clk_init(void) 274int __init arch_clk_init(void)