diff options
author | Stefan Roese <sr@denx.de> | 2023-01-16 09:01:48 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2023-01-17 07:06:37 +0100 |
commit | 9a13a76e6256c51d04f41139733dbb31755e8d30 (patch) | |
tree | ac3c2ad1a9e979d1a3379753e4d3afd1a771dbff /test/py/tests/test_gpt.py | |
parent | 348064ee2c8f9494b91b55729ac60c5db79ef129 (diff) |
timer: orion-timer: Fix problem in early_init_done()
It was noticed that Clearfog is currently broken with this newly
introduced early_init_done() function. Apparently the timer is enabled
here when U-Boot is run but not configured - at least not correctly.
Resulting in a hangup in the timer reading functions.
To fix this, also read the value of the reload register and check it's
value with the one written to by U-Boot. Only if this matches, the
init has already been done.
Fixes: 5387b093cb79 ("timer: orion-timer: Fix problem with early static variable")
Signed-off-by: Stefan Roese <sr@denx.de>
Acked-by: Pali Rohár <pali@kernel.org>
Cc: Martin Rowe <martin.p.rowe@gmail.com>
Cc: Tony Dinh <mibodhi@gmail.com>
Cc: Pali Rohár <pali@kernel.org>
Cc: Michael Walle <michael@walle.cc>
Diffstat (limited to 'test/py/tests/test_gpt.py')
0 files changed, 0 insertions, 0 deletions