summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-20 06:40:18 -0700
committerSimon Glass <sjg@chromium.org>2015-08-26 07:54:11 -0700
commita52a068eb189c6268017a25d48f50f26b2a08a0b (patch)
tree9b054cd93059541af6c1eec737339746189bfacd /common
parent08fc7b8fac1d27d7e9f964309cbc32de0abd2c0d (diff)
x86: fsp: Delay x86_fsp_init() call a little bit
Move x86_fsp_init() call after initf_malloc() so that we can fix up the gd->malloc_limit later. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/board_f.c b/common/board_f.c
index a2be57756a1..fe75656b702 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -764,9 +764,6 @@ static init_fnc_t init_sequence_f[] = {
#ifdef CONFIG_OF_CONTROL
fdtdec_setup,
#endif
-#if defined(CONFIG_X86) && defined(CONFIG_HAVE_FSP)
- x86_fsp_init,
-#endif
#ifdef CONFIG_TRACE
trace_early_init,
#endif
@@ -775,6 +772,9 @@ static init_fnc_t init_sequence_f[] = {
/* TODO: can this go into arch_cpu_init()? */
probecpu,
#endif
+#if defined(CONFIG_X86) && defined(CONFIG_HAVE_FSP)
+ x86_fsp_init,
+#endif
arch_cpu_init, /* basic arch cpu dependent setup */
mark_bootstage,
initf_dm,