summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2011-11-29 17:27:10 -0800
committerGerrit <chrome-bot@google.com>2011-12-05 11:55:06 -0800
commitf5b34ef437620cfe2cb33395ba5d6720e52fc104 (patch)
tree2471e6eaca29ea95cf78446c5c1fd6359585ca2e /arch
parent23ef5fa2a6ae8f6c76524fd441a4bcbe385533ca (diff)
Move fdt check earlier so that board_early_init_f() can use it
We want to use the fdt inside board_early_init_f(), so check for its presence earlier in the pre-reloc init sequence. BUG=chromium-os:23496 TEST=build and boot on Seaboard, T33, Kaen Change-Id: I66fdaf976ddb419b754cc20374db4ffdcca16a09 Reviewed-on: https://gerrit.chromium.org/gerrit/12247 Reviewed-by: Simon Glass <sjg@chromium.org> Tested-by: Simon Glass <sjg@chromium.org> Commit-Ready: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/lib/board.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index fb05b8d69ad..a204e9045e3 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -252,12 +252,12 @@ init_fnc_t *init_sequence[] = {
#if defined(CONFIG_ARCH_CPU_INIT)
arch_cpu_init, /* basic arch cpu dependent setup */
#endif
-#if defined(CONFIG_BOARD_EARLY_INIT_F)
- board_early_init_f,
-#endif
#ifdef CONFIG_OF_CONTROL
check_fdt,
#endif
+#if defined(CONFIG_BOARD_EARLY_INIT_F)
+ board_early_init_f,
+#endif
timer_init, /* initialize timer */
#ifdef CONFIG_FSL_ESDHC
get_clocks,