Skip to contentSkip to conversation

Fix hang when entering udelay after GPTIMER2 overflows (about 22 minutes on AM37x)

PATCH New rick at efn.org 1 participant 1 message May 6, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix hang when entering udelay after GPTIMER2 overflows (about 22 minutes on AM37x)

From: Rick Bronson <[email protected]>

---
 arch/arm/cpu/armv7/omap-common/timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/cpu/armv7/omap-common/timer.c +1 -1
index 9beebb1..3c9d488 100644
@@ -44,7 +44,7 @@ static struct gptimer *timer_base = (struct gptimer *)CONFIG_SYS_TIMERBASE;
  */
 
 #define TIMER_CLOCK	(V_SCLK / (2 << CONFIG_SYS_PTV))
-#define TIMER_LOAD_VAL	0xffffffff
+#define TIMER_LOAD_VAL	0  /* counter starts from 0 on reload */
 
 int timer_init(void)
 {
Signature · 1 line
1.7.4.4