diff options
author | Magnus Damm <damm@opensource.se> | 2010-05-12 10:21:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-05-19 23:07:29 -0400 |
commit | 495b3cea94135a97e919bca67d7dcfdefafc7767 (patch) | |
tree | 480e9fbe9e8d946cd837da0eec244733986939a6 /arch/arm/mach-shmobile/setup-sh7372.c | |
parent | e47bb515c57853c1f41474dae199cb033e747f66 (diff) |
ARM: mach-shmobile: sh7372 clock framework support V2
This patch is V2 of clock framework tables/code for sh7372.
MSTP are included for KEYSC, SCIF, IIC, USB, SDHI and UIO.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-sh7372.c')
-rw-r--r-- | arch/arm/mach-shmobile/setup-sh7372.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index b7c5d896e01c..885dfaa54c2a 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c | |||
@@ -143,7 +143,7 @@ static struct sh_timer_config cmt10_platform_data = { | |||
143 | .name = "CMT10", | 143 | .name = "CMT10", |
144 | .channel_offset = 0x10, | 144 | .channel_offset = 0x10, |
145 | .timer_bit = 0, | 145 | .timer_bit = 0, |
146 | .clk = "r_clk", | 146 | .clk = "cmt1", |
147 | .clockevent_rating = 125, | 147 | .clockevent_rating = 125, |
148 | .clocksource_rating = 125, | 148 | .clocksource_rating = 125, |
149 | }; | 149 | }; |
@@ -233,14 +233,8 @@ void __init sh7372_add_standard_devices(void) | |||
233 | ARRAY_SIZE(sh7372_early_devices)); | 233 | ARRAY_SIZE(sh7372_early_devices)); |
234 | } | 234 | } |
235 | 235 | ||
236 | #define SMSTPCR3 0xe615013c | ||
237 | #define SMSTPCR3_CMT1 (1 << 29) | ||
238 | |||
239 | void __init sh7372_add_early_devices(void) | 236 | void __init sh7372_add_early_devices(void) |
240 | { | 237 | { |
241 | /* enable clock to CMT1 */ | ||
242 | __raw_writel(__raw_readl(SMSTPCR3) & ~SMSTPCR3_CMT1, SMSTPCR3); | ||
243 | |||
244 | early_platform_add_devices(sh7372_early_devices, | 238 | early_platform_add_devices(sh7372_early_devices, |
245 | ARRAY_SIZE(sh7372_early_devices)); | 239 | ARRAY_SIZE(sh7372_early_devices)); |
246 | } | 240 | } |