From: Thomas Chou <thomas@wytron.com.tw>
Date: Fri, 30 Oct 2015 07:35:51 +0000 (+0800)
Subject: common/board_f.c: move mark_bootstage after arch_cpu_init_dm
X-Git-Tag: v2025.01-rc5-pxa1908~11126
X-Git-Url: http://git.dujemihanovic.xyz/img/html/index.html?a=commitdiff_plain;h=67521957605494a11fa5161dcc54757dc5b6b8a1;p=u-boot.git

common/board_f.c: move mark_bootstage after arch_cpu_init_dm

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>
---

diff --git a/common/board_f.c b/common/board_f.c
index 04c273e2fe..84485e96e8 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -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