x86: fsp: Don't notify if booted from coreboot
authorSimon Glass <sjg@chromium.org>
Mon, 15 Mar 2021 05:00:33 +0000 (18:00 +1300)
committerSimon Glass <sjg@chromium.org>
Sat, 27 Mar 2021 02:04:30 +0000 (15:04 +1300)
When booting from coreboot there is no need to notify the FSP of anything,
since coreboot has already done it. Nor it is possible, since the FSP
details are not provided by coreboot.

Skip it in this case.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/x86/lib/fsp2/fsp_support.c

index 503f97d..b2c7658 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <init.h>
 #include <log.h>
 #include <spi_flash.h>
 #include <asm/fsp/fsp_support.h>
@@ -114,6 +115,9 @@ u32 fsp_notify(struct fsp_header *fsp_hdr, u32 phase)
        struct fsp_notify_params *params_ptr;
        u32 status;
 
+       if (!ll_boot_init())
+               return 0;
+
        if (!fsp_hdr)
                fsp_hdr = gd->arch.fsp_s_hdr;