1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-07 09:19:35 +01:00
Files
u-boot-megous/drivers
Stefan Roese 9a13a76e62 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: 5387b093cb ("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>
2023-01-17 07:06:37 +01:00
..
2022-12-21 13:09:01 -05:00
2021-10-05 08:50:15 -04:00
2022-09-16 11:05:16 -04:00
2023-01-11 15:02:24 -05:00
2022-01-13 07:57:49 -05:00
2023-01-09 11:30:08 -05:00
2022-01-13 07:57:49 -05:00
2022-09-19 16:07:12 -04:00
2023-01-09 11:30:08 -05:00
2022-12-22 10:31:48 -05:00
2022-10-11 16:03:03 -04:00
2022-05-03 21:39:22 +02:00
2022-11-02 13:58:17 -04:00