Skip to contentSkip to conversation

omap3: bugfix in timer on rollover

PATCH New Daniel Gorsulowski 2 participants 2 messages Jun 6, 2016 – Jun 25, 2016 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap3: bugfix in timer on rollover

---
 arch/arm/cpu/armv7/omap-common/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/cpu/armv7/omap-common/timer.c +1 -1
index 032bd2c..49e3a97 100644
@@ -77,7 +77,7 @@ ulong get_timer_masked(void)
 		/* move stamp fordward with absoulte diff ticks */
 		gd->arch.tbl += (now - gd->arch.lastinc);
 	} else {	/* we have rollover of incrementer */
-		gd->arch.tbl += ((TIMER_LOAD_VAL / (TIMER_CLOCK /
+		gd->arch.tbl += ((TIMER_OVERFLOW_VAL / (TIMER_CLOCK /
 				CONFIG_SYS_HZ)) - gd->arch.lastinc) + now;
 	}
 	gd->arch.lastinc = now;
Signature · 1 line
2.7.1
#1 lore raw

PATCH 1/1 omap3: bugfix in timer on rollover

Quoted 1 line · Daniel Gorsulowski

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160624/2ac9ca4f/attachment.sig>