C6X: fix timer64 initialization
authorMark Salter <msalter@redhat.com>
Sat, 5 Nov 2011 14:57:40 +0000 (10:57 -0400)
committerMark Salter <msalter@redhat.com>
Sun, 8 Jan 2012 20:12:17 +0000 (15:12 -0500)
Some SoCs have a timer block enable controlled through the DSCR registers.
There is a problem in the timer64 driver initialization where the code
accesses a timer register to get the divisor used to calculate timer clock
rate. If the timer block has not been enabled when this register read takes
place, an exception is generated. This patch makes sure that the timer block
is enabled before accessing the registers.

Signed-off-by: Mark Salter <msalter@redhat.com>

No differences found