]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: apl: Check low-level init in FSP-S pre-init
authorSimon Glass <sjg@chromium.org>
Tue, 22 Sep 2020 18:45:36 +0000 (12:45 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 25 Sep 2020 03:27:24 +0000 (11:27 +0800)
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>
arch/x86/cpu/apollolake/fsp_s.c

index e54b0ac10471d04acb58a18f278bad4c70fc496b..715ceab6ac7bf3064427c7e10f7273b6ba94cb35 100644 (file)
@@ -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);