Skip to content
Snippets Groups Projects
Commit 85a2f772 authored by Daniel Gorsulowski's avatar Daniel Gorsulowski Committed by Tom Rini
Browse files

omap3: bugfix in timer on rollover

parent b66a5c03
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment