diff options
author | John Rigby <john.rigby@linaro.org> | 2010-12-27 14:33:10 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-07-04 10:55:26 +0200 |
commit | aadcfc179a5f9ef61c8201da9dff34f8394c1054 (patch) | |
tree | 579d3a0accadd0ebdab5155bf13b353d447fac36 /include/configs/inka4x0.h | |
parent | f84d64dbf69e84b34140219e630641079fdef37f (diff) | |
download | u-boot-imx-aadcfc179a5f9ef61c8201da9dff34f8394c1054.zip u-boot-imx-aadcfc179a5f9ef61c8201da9dff34f8394c1054.tar.gz u-boot-imx-aadcfc179a5f9ef61c8201da9dff34f8394c1054.tar.bz2 |
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>
Diffstat (limited to 'include/configs/inka4x0.h')
0 files changed, 0 insertions, 0 deletions