diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-04-24 05:08:11 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-05-12 16:24:30 -0400 |
commit | 19ad322de262c810463aeb8769c66474d8b68210 (patch) | |
tree | ed2d524566be4b4e05025272066fd6f7257b720c /arch/arm/mach-shmobile/clock-r8a7740.c | |
parent | fcca3f0f007d97f095a3ebe8f209021b517309d2 (diff) |
ARM: mach-shmobile: clock-r8a7740: add SDHI clock
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Simon Horman <horms@verge.net.au>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/clock-r8a7740.c')
-rw-r--r-- | arch/arm/mach-shmobile/clock-r8a7740.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/clock-r8a7740.c b/arch/arm/mach-shmobile/clock-r8a7740.c index b9b1d73ab9e1..86f7147fdf2b 100644 --- a/arch/arm/mach-shmobile/clock-r8a7740.c +++ b/arch/arm/mach-shmobile/clock-r8a7740.c | |||
@@ -356,8 +356,9 @@ enum { | |||
356 | MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200, | 356 | MSTP207, MSTP206, MSTP204, MSTP203, MSTP202, MSTP201, MSTP200, |
357 | 357 | ||
358 | MSTP329, MSTP328, MSTP323, MSTP320, | 358 | MSTP329, MSTP328, MSTP323, MSTP320, |
359 | MSTP314, MSTP313, | ||
359 | 360 | ||
360 | MSTP416, MSTP407, MSTP406, | 361 | MSTP416, MSTP415, MSTP407, MSTP406, |
361 | 362 | ||
362 | MSTP_NR | 363 | MSTP_NR |
363 | }; | 364 | }; |
@@ -383,8 +384,11 @@ static struct clk mstp_clks[MSTP_NR] = { | |||
383 | [MSTP328] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 28, 0), /* FSI */ | 384 | [MSTP328] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 28, 0), /* FSI */ |
384 | [MSTP323] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR3, 23, 0), /* IIC1 */ | 385 | [MSTP323] = SH_CLK_MSTP32(&div6_clks[DIV6_SUB], SMSTPCR3, 23, 0), /* IIC1 */ |
385 | [MSTP320] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 20, 0), /* USBF */ | 386 | [MSTP320] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 20, 0), /* USBF */ |
387 | [MSTP314] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 14, 0), /* SDHI0 */ | ||
388 | [MSTP313] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR3, 13, 0), /* SDHI1 */ | ||
386 | 389 | ||
387 | [MSTP416] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR4, 16, 0), /* USBHOST */ | 390 | [MSTP416] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR4, 16, 0), /* USBHOST */ |
391 | [MSTP415] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR4, 15, 0), /* SDHI2 */ | ||
388 | [MSTP407] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR4, 7, 0), /* USB-Func */ | 392 | [MSTP407] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR4, 7, 0), /* USB-Func */ |
389 | [MSTP406] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR4, 6, 0), /* USB Phy */ | 393 | [MSTP406] = SH_CLK_MSTP32(&div4_clks[DIV4_HP], SMSTPCR4, 6, 0), /* USB Phy */ |
390 | }; | 394 | }; |
@@ -444,6 +448,10 @@ static struct clk_lookup lookups[] = { | |||
444 | CLKDEV_DEV_ID("sh_fsi2", &mstp_clks[MSTP328]), | 448 | CLKDEV_DEV_ID("sh_fsi2", &mstp_clks[MSTP328]), |
445 | CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[MSTP323]), | 449 | CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[MSTP323]), |
446 | CLKDEV_DEV_ID("renesas_usbhs", &mstp_clks[MSTP320]), | 450 | CLKDEV_DEV_ID("renesas_usbhs", &mstp_clks[MSTP320]), |
451 | CLKDEV_DEV_ID("sh_mobile_sdhi.0", &mstp_clks[MSTP314]), | ||
452 | CLKDEV_DEV_ID("sh_mobile_sdhi.1", &mstp_clks[MSTP313]), | ||
453 | |||
454 | CLKDEV_DEV_ID("sh_mobile_sdhi.2", &mstp_clks[MSTP415]), | ||
447 | 455 | ||
448 | /* ICK */ | 456 | /* ICK */ |
449 | CLKDEV_ICK_ID("host", "renesas_usbhs", &mstp_clks[MSTP416]), | 457 | CLKDEV_ICK_ID("host", "renesas_usbhs", &mstp_clks[MSTP416]), |