u-boot/arch/arm/cpu
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
..
arm720t arm: fix incorrect monitor protection region in FLASH 2011-03-27 19:18:52 +02:00
arm920t ARM: drop unsupported 'trab' board 2011-06-22 20:00:51 +02:00
arm925t arm: fix incorrect monitor protection region in FLASH 2011-03-27 19:18:52 +02:00
arm926ejs arm926ejs/at91/lowlevel_init.S: fix defines 2011-06-21 22:26:22 +02:00
arm946es Replace obsolete e-mail address 2011-04-27 19:38:09 +02:00
arm1136 armv7: rename cache related CONFIG flags 2011-07-04 10:55:25 +02:00
arm1176 SMDK6400: Disable LED function in start.s on the nand booting 2011-03-27 19:19:21 +02:00
arm_intcm arm: fix incorrect monitor protection region in FLASH 2011-03-27 19:18:52 +02:00
armv7 OMAP[34]: fix broken timer 2011-07-04 10:55:26 +02:00
ixp Minor coding style fixes. 2011-06-27 22:22:16 +02:00
lh7a40x arm: fix incorrect monitor protection region in FLASH 2011-03-27 19:18:52 +02:00
pxa mv_i2c: use structure to replace the direclty define 2011-04-27 19:38:08 +02:00
s3c44b0 arm: fix incorrect monitor protection region in FLASH 2011-03-27 19:18:52 +02:00
sa1100 arm: fix incorrect monitor protection region in FLASH 2011-03-27 19:18:52 +02:00