Message ID | 20191221161340.27047-3-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Bin Meng |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LOkTwCYW"; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47g9fh3nfvz9s29 for <incoming@patchwork.ozlabs.org>; Sun, 22 Dec 2019 03:14:20 +1100 (AEDT) Received: from phobos.denx.de (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 771A08163C; Sat, 21 Dec 2019 17:13:58 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="LOkTwCYW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A2436808EE; Sat, 21 Dec 2019 17:13:52 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd44.google.com (mail-io1-xd44.google.com [IPv6:2607:f8b0:4864:20::d44]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4045D808EE for <u-boot@lists.denx.de>; Sat, 21 Dec 2019 17:13:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd44.google.com with SMTP id t26so12392236ioi.13 for <u-boot@lists.denx.de>; Sat, 21 Dec 2019 08:13:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QgoO9nGn/XDe1615R1lr8dulvwGw3RMNRvXrMvdwXAM=; b=LOkTwCYWnt7u2rTofk0+XnCGztT88lfealxhE5BDE32doRyXmmxOub3zJDlsSmPeYT 80F5JB+xO9J8Ma5PMrmSyZNjEyAj0+b+lhLNvzN8wV8u8tsR+7uycAKpdGMb8f291xhh ZIKcGF9cPOBefbB6xHWG4RUvCue9Vax20Zq8k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QgoO9nGn/XDe1615R1lr8dulvwGw3RMNRvXrMvdwXAM=; b=Mil1UbtWsEa5wIBaqlubUb4CGfyIoFpNbhvRvpoZEd8zCBCY6uMWcCZPFp6eHcRX7q 5K4e/KkBHaX/UESI2idZbOZ2nWUk9qx+Zf7ACU5vTE8MsjA+HycMLIWJBg932He0DbvO 41XINkSb56kG1fLimZp50lewfE8E7eMDUhSv6WR+vMYBdyIQOZo+d5SMx1LWeaQrK4e9 hwkytlLzXiMDc8S6GjW05M3aWyx7pbjVi2Q4a2ae9P4nvYFkOPFt2a1BVL9bWMpCKSe2 ZLRbEeye59dFfIxxMFWr839cxpOC1ri4pmS6LLzcqtaWj1Iehmwu8xt5ZFJ83GkU5UxD fSVw== X-Gm-Message-State: APjAAAWZ4vCOCPxH+AOYRQmcKBrmi/mboQauNv+1CEzcMHgWWqayvMmv tuVRRN97T4kE+mj+P/N4VKX8QM6EkrI= X-Google-Smtp-Source: APXvYqxhuuNivd9yafgz70cvJEnE3lubLnzmWdV9+NtVIDPgtKr0Jnl3j3SBCY3Ll/M6LMcJErjLXw== X-Received: by 2002:a02:6c41:: with SMTP id w62mr17364409jab.52.1576944827731; Sat, 21 Dec 2019 08:13:47 -0800 (PST) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id g4sm7073700iln.81.2019.12.21.08.13.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2019 08:13:47 -0800 (PST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Subject: [PATCH 2/5] x86: apl: Skip init code when chain loading Date: Sat, 21 Dec 2019 09:13:37 -0700 Message-Id: <20191221161340.27047-3-sjg@chromium.org> X-Mailer: git-send-email 2.24.1.735.g03f4e72817-goog In-Reply-To: <20191221161340.27047-1-sjg@chromium.org> References: <20191221161340.27047-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.26 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.101.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
x86: Improve support for chain-loading U-Boot
|
expand
|
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.
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> --- arch/x86/cpu/apollolake/fsp_s.c | 2 ++ 1 file changed, 2 insertions(+)