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)
commit25b48ff852e2e71b0d44d8ee6f69c9b704bd5070
treeee48a9e41d4cdeffcbb68b50261576887357e7a2
parent4a059ff3a9a8bd4ee78e3b89721b698ddb43d385
C6X: fix timer64 initialization

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>
arch/c6x/platforms/timer64.c
This page took 0.028427 seconds and 5 git commands to generate.