u-boot-brain/arch/arm/cpu/armv7/omap-common
John Rigby aadcfc179a OMAP[34]: fix broken timer
As implemented now the timer used to implement __udelay counts
to 0xffffffff and then gets stuck there because the the programmed
reload value is 0xffffffff.  This value is not only wrong but
illegal according to the reference manual.

One can reproduce the bug by leaving a board at the u-boot prompt
for sometime then issuing a sleep command.  The sleep will hang
forever.

The timer is a count up timer that reloads as it rolls over
from 0xffffffff so the correct load value is 0.

Change TIMER_LOAD_VAL from 0xffffffff to 0 and introduce
a new constant called TIMER_OVERFLOW_VAL set to 0xffffffff.

Signed-off-by: John Rigby <john.rigby@linaro.org>
Tested-by: Igor Grinberg <grinberg@compulab.co.il>
2011-07-04 10:55:26 +02:00
..
config.mk ARMV7: Add basic support for TI OMAP4 2010-07-05 20:00:00 -04:00
Makefile Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
reset.S ARMV7: OMAP3: Fix broken reset command on OMAP36XX/37XX and OMAP4 2010-09-08 14:51:18 -04:00
timer.c OMAP[34]: fix broken timer 2011-07-04 10:55:26 +02:00