Skip to content

Commit

Permalink
ARM: mach-shmobile: Move sh7372 Mackerel external clk setup
Browse files Browse the repository at this point in the history
Move the board specific external clock setting for sh7372 Mackerel
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>
  • Loading branch information
Magnus Damm authored and Rafael J. Wysocki committed Mar 12, 2012
1 parent 6b6a4c0 commit 12bb16d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-shmobile/board-mackerel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,9 @@ static void __init mackerel_init(void)
struct clk *clk;
int ret;

/* External clock source */
clk_set_rate(&sh7372_dv_clki_clk, 27000000);

sh7372_pinmux_init();

/* enable SCIFA0 */
Expand Down Expand Up @@ -1555,9 +1558,6 @@ static void __init mackerel_timer_init(void)
{
sh7372_clock_init();
shmobile_timer.init();

/* External clock source */
clk_set_rate(&sh7372_dv_clki_clk, 27000000);
}

static struct sys_timer mackerel_timer = {
Expand Down

0 comments on commit 12bb16d

Please sign in to comment.