]> git.sur5r.net Git - u-boot/commitdiff
common/board_f.c: move mark_bootstage after arch_cpu_init_dm
authorThomas Chou <thomas@wytron.com.tw>
Fri, 30 Oct 2015 07:35:51 +0000 (15:35 +0800)
committerSimon Glass <sjg@chromium.org>
Fri, 20 Nov 2015 03:13:40 +0000 (20:13 -0700)
As mark_bootstage() uses timer, it should go after driver model
is initialized.

Signed-off-by: Thomas Chou <thomas@wytron.com.tw>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
common/board_f.c

index 04c273e2fe9519450f03f9425845cc5a71451db2..84485e96e8c92189c4d068e7d124bbe5ff94869e 100644 (file)
@@ -780,9 +780,9 @@ static init_fnc_t init_sequence_f[] = {
        x86_fsp_init,
 #endif
        arch_cpu_init,          /* basic arch cpu dependent setup */
-       mark_bootstage,
        initf_dm,
        arch_cpu_init_dm,
+       mark_bootstage,         /* need timer, go after init dm */
 #if defined(CONFIG_BOARD_EARLY_INIT_F)
        board_early_init_f,
 #endif