summaryrefslogtreecommitdiff
path: root/arch/x86/lib/spl.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 17:11:40 +0300
committerBin Meng <bmeng.cn@gmail.com>2019-10-08 08:57:36 +0300
commit12c81b2f4196ed7eb9f2d7d377b34280b1ca26c1 (patch)
treec5f781d1a09b9f58ad35d2cb6c72ab8c27b60d1e /arch/x86/lib/spl.c
parentdaade119aa4b49d5ff6b1ebbdfeab0a8775c9344 (diff)
downloadu-boot-12c81b2f4196ed7eb9f2d7d377b34280b1ca26c1.tar.xz
x86: spl: Move broadwell-specific code out of generic x86 spl
When TPL is running, broadwell needs to do different init from SPL. There is no need for this code to be in the generic x86 SPL file, so move it to arch_cpu_init(). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/lib/spl.c')
-rw-r--r--arch/x86/lib/spl.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index a739491303..2baac91383 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -40,12 +40,7 @@ static int x86_spl_init(void)
debug("%s: spl_init() failed\n", __func__);
return ret;
}
-#ifdef CONFIG_TPL
- /* Do a mini-init if TPL has already done the full init */
- ret = x86_cpu_reinit_f();
-#else
ret = arch_cpu_init();
-#endif
if (ret) {
debug("%s: arch_cpu_init() failed\n", __func__);
return ret;