Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ca2e597 authored by Cyril Chemparathy's avatar Cyril Chemparathy Committed by Kevin Hilman
Browse files

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: default avatarCyril Chemparathy <cyril@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent b722049d
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -361,13 +361,13 @@ static void __init davinci_timer_init(void)
		}
		}
	}
	}


	/* init timer hw */
	timer_init();

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


	/* init timer hw */
	timer_init();

	davinci_clock_tick_rate = clk_get_rate(timer_clk);
	davinci_clock_tick_rate = clk_get_rate(timer_clk);


	/* setup clocksource */
	/* setup clocksource */