omap3: bugfix in timer on rollover
PATCH 1/1 omap3: bugfix in timer on rollover
Signed-off-by Daniel Gorsulowski <[email protected]>
--- 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
@@ -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
PATCH 1/1 omap3: bugfix in timer on rollover
Quoted 1 line · Daniel Gorsulowski
Signed-off-by Daniel Gorsulowski <[email protected]>
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>