diff options
author | Magnus Damm <damm@opensource.se> | 2012-03-06 02:31:55 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-03-12 17:19:43 -0400 |
commit | e3b0161b3c846e7ce994bb5d1671e1ed5c871915 (patch) | |
tree | e24e7c904bb141067d8aa83fc6364cbaaff2f74d /arch/arm/mach-shmobile/board-ap4evb.c | |
parent | 12bb16d2308c8590f836df78a1462d1c9421e06a (diff) |
ARM: mach-shmobile: Move sh7372 AP4EVB external clk setup
Move the board specific external clock setting for sh7372 AP4EVB
from machine_desc->sys_timer->init() to machine_desc->init_machine().
This is ground work for shmobile timer code consolidation.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'arch/arm/mach-shmobile/board-ap4evb.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-ap4evb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c index c57ded14607c..96368682f495 100644 --- a/arch/arm/mach-shmobile/board-ap4evb.c +++ b/arch/arm/mach-shmobile/board-ap4evb.c | |||
@@ -1197,6 +1197,9 @@ static void __init ap4evb_init(void) | |||
1197 | u32 srcr4; | 1197 | u32 srcr4; |
1198 | struct clk *clk; | 1198 | struct clk *clk; |
1199 | 1199 | ||
1200 | /* External clock source */ | ||
1201 | clk_set_rate(&sh7372_dv_clki_clk, 27000000); | ||
1202 | |||
1200 | sh7372_pinmux_init(); | 1203 | sh7372_pinmux_init(); |
1201 | 1204 | ||
1202 | /* enable SCIFA0 */ | 1205 | /* enable SCIFA0 */ |
@@ -1437,9 +1440,6 @@ static void __init ap4evb_timer_init(void) | |||
1437 | { | 1440 | { |
1438 | sh7372_clock_init(); | 1441 | sh7372_clock_init(); |
1439 | shmobile_timer.init(); | 1442 | shmobile_timer.init(); |
1440 | |||
1441 | /* External clock source */ | ||
1442 | clk_set_rate(&sh7372_dv_clki_clk, 27000000); | ||
1443 | } | 1443 | } |
1444 | 1444 | ||
1445 | static struct sys_timer ap4evb_timer = { | 1445 | static struct sys_timer ap4evb_timer = { |