x86: apl: Skip init code when chain loading

When U-Boot is not the first-stage bootloader the FSP-S init must be
skipped. Update it to add a check.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
Simon Glass 2020-04-26 09:12:54 -06:00 committed by Bin Meng
parent c793dbdb90
commit 52b9beb527

View File

@ -566,6 +566,8 @@ int arch_fsp_init_r(void)
struct udevice *dev, *itss;
int ret;
if (!ll_boot_init())
return 0;
/*
* This must be called before any devices are probed. Put any probing
* into arch_fsps_preinit() above.