projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b66a5c0
)
omap3: bugfix in timer on rollover
author
Daniel Gorsulowski
<Daniel.Gorsulowski@esd.eu>
Mon, 6 Jun 2016 07:40:11 +0000
(09:40 +0200)
committer
Tom Rini
<trini@konsulko.com>
Fri, 24 Jun 2016 21:21:55 +0000
(17:21 -0400)
Signed-off-by: Daniel Gorsulowski <daniel.gorsulowski@esd.eu>
arch/arm/cpu/armv7/omap-common/timer.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/omap-common/timer.c
b/arch/arm/cpu/armv7/omap-common/timer.c
index 032bd2c24fdddb95705096ddc94c692f6b2fa735..49e3a971d96674954c9fc6ea74014abd28044824 100644
(file)
--- 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;