mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
timer: Set up the real timer after driver model is available
When using the early timer, we need to manually trigger setting up the real timer. This will not happen automatically. Do this immediately after starting driver model. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
#include <post.h>
|
||||
#include <spi.h>
|
||||
#include <status_led.h>
|
||||
#include <timer.h>
|
||||
#include <trace.h>
|
||||
#include <video.h>
|
||||
#include <watchdog.h>
|
||||
@@ -805,6 +806,11 @@ static int initf_dm(void)
|
||||
if (ret)
|
||||
return ret;
|
||||
#endif
|
||||
#ifdef CONFIG_TIMER_EARLY
|
||||
ret = dm_timer_init();
|
||||
if (ret)
|
||||
return ret;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user