Skip to content

Commit

Permalink
Davinci: enable timer clock before use
Browse files Browse the repository at this point in the history
timer_init() programs timer64 hardware.  The module should ideally be brought
out of reset before this happens.

Signed-off-by: Cyril Chemparathy <cyril@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
  • Loading branch information
Cyril Chemparathy authored and Kevin Hilman committed May 6, 2010
1 parent b722049 commit 8ca2e59
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arch/arm/mach-davinci/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -361,13 +361,13 @@ static void __init davinci_timer_init(void)
}
}

/* init timer hw */
timer_init();

timer_clk = clk_get(NULL, "timer0");
BUG_ON(IS_ERR(timer_clk));
clk_enable(timer_clk);

/* init timer hw */
timer_init();

davinci_clock_tick_rate = clk_get_rate(timer_clk);

/* setup clocksource */
Expand Down

0 comments on commit 8ca2e59

Please sign in to comment.