x86: apl: Skip init code when chain loading
authorSimon Glass <sjg@chromium.org>
Sun, 26 Apr 2020 15:12:54 +0000 (09:12 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 30 Apr 2020 09:40:16 +0000 (17:40 +0800)
commit52b9beb5276def9e261ded543e9f4ff9940a064e
treecbd0bda3e454490969991c69d6462a4e0fe7f655
parentc793dbdb902baafeef869e3b3b16049af9c11979
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>
arch/x86/cpu/apollolake/fsp_s.c