Skip to contentSkip to conversation

Fix Cortex-A9 global timer

PATCH Applied Johannes Schlatow 2 participants 2 messages Jun 29, 2015 – Jul 27, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix Cortex-A9 global timer

The auto increment bit of the timer control register was wrongly defined.

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

---
 include/hw/timer/a9gtimer.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/hw/timer/a9gtimer.h +1 -1
index b88c02a..98d8e0a 100644
@@ -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) << \
Signature · 1 line
2.4.2
#1 lore raw
Quoted 2 lines · Johannes Schlatow

The auto increment bit of the timer control register was wrongly defined.

Applied to -trivial, thanks!

/mjt