aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/sh4a/clock-sh7723.c
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-05-10 10:01:12 -0400
committerPaul Mundt <lethal@linux-sh.org>2010-05-10 22:48:35 -0400
commite4e06697977bf6731d940ab1bd84e16cb53c3ae3 (patch)
treee686c50654ca84fbaf20ad7323760443ca37462b /arch/sh/kernel/cpu/sh4a/clock-sh7723.c
parentf3d51e13fea901729fef15bf1c32ca004d45476e (diff)
sh: scif and tmu clkdev changes
Modify sh7722/sh7723/sh7724 to use clkdev for TMU and SCIF clock lookups. 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-sh7723.c')
-rw-r--r--arch/sh/kernel/cpu/sh4a/clock-sh7723.c42
1 files changed, 36 insertions, 6 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c
index 390bdb5cabc5..d92d7cddd099 100644
--- a/arch/sh/kernel/cpu/sh4a/clock-sh7723.c
+++ b/arch/sh/kernel/cpu/sh4a/clock-sh7723.c
@@ -179,12 +179,12 @@ static struct clk mstp_clks[] = {
179 SH_HWBLK_CLK("dmac1", -1, B_CLK, HWBLK_DMAC1, 0), 179 SH_HWBLK_CLK("dmac1", -1, B_CLK, HWBLK_DMAC1, 0),
180 SH_HWBLK_CLK("tmu345_fck", -1, P_CLK, HWBLK_TMU1, 0), 180 SH_HWBLK_CLK("tmu345_fck", -1, P_CLK, HWBLK_TMU1, 0),
181 SH_HWBLK_CLK("flctl0", -1, P_CLK, HWBLK_FLCTL, 0), 181 SH_HWBLK_CLK("flctl0", -1, P_CLK, HWBLK_FLCTL, 0),
182 SH_HWBLK_CLK("sci_fck", 0, P_CLK, HWBLK_SCIF0, 0), 182 SH_HWBLK_CLK("sci_fck", -1, P_CLK, HWBLK_SCIF0, 0),
183 SH_HWBLK_CLK("sci_fck", 1, P_CLK, HWBLK_SCIF1, 0), 183 SH_HWBLK_CLK("sci_fck", -1, P_CLK, HWBLK_SCIF1, 0),
184 SH_HWBLK_CLK("sci_fck", 2, P_CLK, HWBLK_SCIF2, 0), 184 SH_HWBLK_CLK("sci_fck", -1, P_CLK, HWBLK_SCIF2, 0),
185 SH_HWBLK_CLK("sci_fck", 3, B_CLK, HWBLK_SCIF3, 0), 185 SH_HWBLK_CLK("sci_fck", -1, B_CLK, HWBLK_SCIF3, 0),
186 SH_HWBLK_CLK("sci_fck", 4, B_CLK, HWBLK_SCIF4, 0), 186 SH_HWBLK_CLK("sci_fck", -1, B_CLK, HWBLK_SCIF4, 0),
187 SH_HWBLK_CLK("sci_fck", 5, B_CLK, HWBLK_SCIF5, 0), 187 SH_HWBLK_CLK("sci_fck", -1, B_CLK, HWBLK_SCIF5, 0),
188 SH_HWBLK_CLK("msiof0", -1, B_CLK, HWBLK_MSIOF0, 0), 188 SH_HWBLK_CLK("msiof0", -1, B_CLK, HWBLK_MSIOF0, 0),
189 SH_HWBLK_CLK("msiof1", -1, B_CLK, HWBLK_MSIOF1, 0), 189 SH_HWBLK_CLK("msiof1", -1, B_CLK, HWBLK_MSIOF1, 0),
190 SH_HWBLK_CLK("meram0", -1, SH_CLK, HWBLK_MERAM, 0), 190 SH_HWBLK_CLK("meram0", -1, SH_CLK, HWBLK_MERAM, 0),
@@ -244,6 +244,36 @@ static struct clk_lookup lookups[] = {
244 .dev_id = "sh_tmu.5", 244 .dev_id = "sh_tmu.5",
245 .con_id = "tmu_fck", 245 .con_id = "tmu_fck",
246 .clk = &mstp_clks[HWBLK_TMU1], 246 .clk = &mstp_clks[HWBLK_TMU1],
247 }, {
248 /* SCIF0 */
249 .dev_id = "sh-sci.0",
250 .con_id = "sci_fck",
251 .clk = &mstp_clks[HWBLK_SCIF0],
252 }, {
253 /* SCIF1 */
254 .dev_id = "sh-sci.1",
255 .con_id = "sci_fck",
256 .clk = &mstp_clks[HWBLK_SCIF1],
257 }, {
258 /* SCIF2 */
259 .dev_id = "sh-sci.2",
260 .con_id = "sci_fck",
261 .clk = &mstp_clks[HWBLK_SCIF2],
262 }, {
263 /* SCIF3 */
264 .dev_id = "sh-sci.3",
265 .con_id = "sci_fck",
266 .clk = &mstp_clks[HWBLK_SCIF3],
267 }, {
268 /* SCIF4 */
269 .dev_id = "sh-sci.4",
270 .con_id = "sci_fck",
271 .clk = &mstp_clks[HWBLK_SCIF4],
272 }, {
273 /* SCIF5 */
274 .dev_id = "sh-sci.5",
275 .con_id = "sci_fck",
276 .clk = &mstp_clks[HWBLK_SCIF5],
247 }, 277 },
248}; 278};
249 279