From: Simon Glass Date: Sat, 21 Dec 2019 09:13:37 -0700 Subject: [PATCH 2/5] x86: apl: Skip init code when chain loading In-Reply-To: <20191221161340.27047-1-sjg@chromium.org> References: <20191221161340.27047-1-sjg@chromium.org> Message-ID: <20191221161340.27047-3-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- arch/x86/cpu/apollolake/fsp_s.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/apollolake/fsp_s.c b/arch/x86/cpu/apollolake/fsp_s.c index 9804227f80..a3d147ec14 100644 --- a/arch/x86/cpu/apollolake/fsp_s.c +++ b/arch/x86/cpu/apollolake/fsp_s.c @@ -623,6 +623,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. -- 2.24.1.735.g03f4e72817-goog