summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-09-22 21:45:36 +0300
committerBin Meng <bmeng.cn@gmail.com>2020-09-25 06:27:24 +0300
commit96bf9be89e02825d70969b3912a4fe859fc1660b (patch)
tree462aac1c2ec11433307762c487248f1076b317f1
parenta30898f2a18cd48d5490602dcb6979414a069a21 (diff)
downloadu-boot-96bf9be89e02825d70969b3912a4fe859fc1660b.tar.xz
x86: apl: Check low-level init in FSP-S pre-init
If U-Boot is not running FSP-S it should not do the pre-init either. Add a condition to handle this. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--arch/x86/cpu/apollolake/fsp_s.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollolake/fsp_s.c
index e54b0ac104..715ceab6ac 100644
--- a/arch/x86/cpu/apollolake/fsp_s.c
+++ b/arch/x86/cpu/apollolake/fsp_s.c
@@ -157,6 +157,8 @@ int arch_fsps_preinit(void)
struct udevice *itss;
int ret;
+ if (!ll_boot_init())
+ return 0;
ret = irq_first_device_type(X86_IRQT_ITSS, &itss);
if (ret)
return log_msg_ret("no itss", ret);