Patchwork [U-Boot,1/1] Fix hang when entering udelay after GPTIMER2 overflows (about 22 minutes on AM37x)

login
register
mail settings
Submitter rick@efn.org
Date May 15, 2011, 6:19 p.m.
Message ID <1305483592-12521-1-git-send-email-rick@efn.org>
Download mbox | patch
Permalink /patch/95658/
State Rejected
Headers show

Comments

rick@efn.org - May 15, 2011, 6:19 p.m.
From: Rick Bronson <rick@efn.org>

Signed-off-by: Rick Bronson <rick@efn.org>
---
 arch/arm/cpu/armv7/omap-common/timer.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/arch/arm/cpu/armv7/omap-common/timer.c b/arch/arm/cpu/armv7/omap-common/timer.c
index 9beebb1..3c9d488 100644
--- a/arch/arm/cpu/armv7/omap-common/timer.c
+++ b/arch/arm/cpu/armv7/omap-common/timer.c
@@ -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)
 {