mirror of
https://xff.cz/git/u-boot/
synced 2025-10-16 15:31:50 +02:00
omap3: bugfix in timer on rollover
Signed-off-by: Daniel Gorsulowski <daniel.gorsulowski@esd.eu>
This commit is contained in:
committed by
Tom Rini
parent
b66a5c03a0
commit
85a2f772c2
@@ -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;
|
||||
|
Reference in New Issue
Block a user