summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorDaniel Gorsulowski <Daniel.Gorsulowski@esd.eu>2016-06-06 09:40:11 +0200
committerTom Rini <trini@konsulko.com>2016-06-24 17:21:55 -0400
commit85a2f772c256af9d8f0570548d2c2041a7b461e9 (patch)
tree617c4379bff8d1fe2e58cb1f7db339f6d3d82a1d /arch/arm
parentb66a5c03a0870db3045be2967b85684b1887ca18 (diff)
downloadu-boot-imx-85a2f772c256af9d8f0570548d2c2041a7b461e9.zip
u-boot-imx-85a2f772c256af9d8f0570548d2c2041a7b461e9.tar.gz
u-boot-imx-85a2f772c256af9d8f0570548d2c2041a7b461e9.tar.bz2
omap3: bugfix in timer on rollover
Signed-off-by: Daniel Gorsulowski <daniel.gorsulowski@esd.eu>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/cpu/armv7/omap-common/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/timer.c b/arch/arm/cpu/armv7/omap-common/timer.c
index 032bd2c..49e3a97 100644
--- a/arch/arm/cpu/armv7/omap-common/timer.c
+++ b/arch/arm/cpu/armv7/omap-common/timer.c
@@ -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;