diff options
author | Simon Glass <sjg@chromium.org> | 2021-03-15 08:00:33 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-03-27 05:04:30 +0300 |
commit | 9087e468c7f8a8bc6fb6b4511ba35539752ca33b (patch) | |
tree | e68ed3898b8c42fcb5275c19c9bf68fd5a7d2948 | |
parent | 8657989f29d9c9d1c489ef9392501c6a3aae36e8 (diff) | |
download | u-boot-9087e468c7f8a8bc6fb6b4511ba35539752ca33b.tar.xz |
x86: fsp: Don't notify if booted from coreboot
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>
-rw-r--r-- | arch/x86/lib/fsp2/fsp_support.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/x86/lib/fsp2/fsp_support.c b/arch/x86/lib/fsp2/fsp_support.c index 503f97d5f3..b2c7658245 100644 --- a/arch/x86/lib/fsp2/fsp_support.c +++ b/arch/x86/lib/fsp2/fsp_support.c @@ -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; |