Fix Cortex-A9 global timer
authorJohannes Schlatow <schlatow@ida.ing.tu-bs.de>
Mon, 29 Jun 2015 15:45:41 +0000 (17:45 +0200)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 27 Jul 2015 19:44:47 +0000 (22:44 +0300)
The auto increment bit of the timer control register was wrongly
defined.

See Cortex-A9 MPcore Technical Reference Manual, Section 4.4.2.

Signed-off-by: Johannes Schlatow <schlatow@ida.ing.tu-bs.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/hw/timer/a9gtimer.h

index b88c02a6ef0d7b6332d1ae2c68fc9a424472bca2..98d8e0ae53af2f75dc81d48eac6d6a919dca2717 100644 (file)
@@ -37,7 +37,7 @@
 #define R_CONTROL_TIMER_ENABLE      (1 << 0)
 #define R_CONTROL_COMP_ENABLE       (1 << 1)
 #define R_CONTROL_IRQ_ENABLE        (1 << 2)
-#define R_CONTROL_AUTO_INCREMENT    (1 << 2)
+#define R_CONTROL_AUTO_INCREMENT    (1 << 3)
 #define R_CONTROL_PRESCALER_SHIFT   8
 #define R_CONTROL_PRESCALER_LEN     8
 #define R_CONTROL_PRESCALER_MASK    (((1 << R_CONTROL_PRESCALER_LEN) - 1) << \