diff options
author | Cyril Chemparathy <cyril@ti.com> | 2010-03-25 17:43:45 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-05-06 15:02:03 -0700 |
commit | 8ca2e597fc8f3337cef1f8febab482fe8c52b004 (patch) | |
tree | 8f173292e5a6e03a94fff14b18efcee680c50b1b /arch | |
parent | b722049d7e60356fe04bcac6065a7c8b1c64c06f (diff) | |
download | blackbird-op-linux-8ca2e597fc8f3337cef1f8febab482fe8c52b004.tar.gz blackbird-op-linux-8ca2e597fc8f3337cef1f8febab482fe8c52b004.zip |
Davinci: enable timer clock before use
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-davinci/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-davinci/time.c b/arch/arm/mach-davinci/time.c index 9e0b106b4f5f..b21f7633d9a8 100644 --- a/arch/arm/mach-davinci/time.c +++ b/arch/arm/mach-davinci/time.c @@ -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 */ |