From 1057e6cfe12bf71394fe02e0939f232417882f90 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Wed, 24 Feb 2016 09:14:50 -0700 Subject: 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 Reviewed-by: Bin Meng --- common/board_f.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'common/board_f.c') diff --git a/common/board_f.c b/common/board_f.c index a960144b02..622093a391 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -45,6 +45,7 @@ #include #include #include +#include #include #include #include @@ -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; } -- cgit v1.2.1