From patchwork Sat Aug 8 14:27:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 505334 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 8DA4314016A for ; Sun, 9 Aug 2015 00:28:21 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=p0joofXa; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 17EB14BE7C; Sat, 8 Aug 2015 16:28:05 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GVdA_1N75yLN; Sat, 8 Aug 2015 16:28:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DB9C64BE81; Sat, 8 Aug 2015 16:27:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 55EDF4BDCE for ; Sat, 8 Aug 2015 16:27:24 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CctF7w84huYL for ; Sat, 8 Aug 2015 16:27:24 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ig0-f173.google.com (mail-ig0-f173.google.com [209.85.213.173]) by theia.denx.de (Postfix) with ESMTPS id 450DE4BE2C for ; Sat, 8 Aug 2015 16:27:18 +0200 (CEST) Received: by igbpg9 with SMTP id pg9so46994039igb.0 for ; Sat, 08 Aug 2015 07:27:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=0YLk4jeK9BecWV+N3JfeXmDJsM643H3HVtE9zeEyslU=; b=p0joofXaA6ghKDUNlL63Y/6erUFQbg+g12mvJi2ihGvTqTdM5tHLXF6OjsVk4dyLNg lPbrfCDg9Dlx//kTZQRl3DEIr0d9IbdG5K5mxH0/Tiqh6Dkg5mElIPjOoW0hID3RfruH 49znNv8o1Yfd22onDlMACo/8EAEB3W4OH6MdYVspGcafkK7k4rF26gwfIHz87eLO3d1J Tw4uboqfpcv2cDYkisgo6ZkFAN+SK4vrfnNV1xR9Std+02lS/5hIg4NTUZASDNxI9yoi Y6QiybNG4yfh8mMZxaJ+biYGEV7wA+zBbzYvz16zDXxF4L+TkK5gFcgH9mO+kbJl4mTT RTjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=0YLk4jeK9BecWV+N3JfeXmDJsM643H3HVtE9zeEyslU=; b=j4OizzokxL4i7Xk/wUmeNgNMWbNLj1ysmNn1JrzmphMNTW2zNQj2t+sTiSF3GdUI/S UmVlsSBPcgGduVwkslsd6TKGYBEFIidQzPb7HKkh6qiwW4P6p8a97uH7D3UcxsLY1w3g gF/Ce/JZ6V/ASbw2HNCuUoK7GljBHuHN1D+Sd6idXHZvePJmBKrGe/Ot//DdikxZviNp b6V/bDGO6WkZ8D/iUnxvlU0u6p8a69NI1P4R0/oHn+L8GSdqtE1Bh7FCYZ/WTWwgB15+ gVzmlpXFaREcu8mdNeQ76HZwleeDNOf0JxKv28HHtZUYWUXtiQwK3RuDUcUZvGZ+b1fh 9riw== X-Gm-Message-State: ALoCoQmxXM0zKN29FLPfkoO9JJiUt9CpUaz4N8Pvk73bUPwKv27R0caHLv87RPNSB7kZUm4TMGRb X-Received: by 10.50.29.17 with SMTP id f17mr3621068igh.54.1439044037038; Sat, 08 Aug 2015 07:27:17 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:1100:d0b4:6f04:8e14:3177]) by smtp.gmail.com with ESMTPSA id v18sm1849722igr.3.2015.08.08.07.27.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 08 Aug 2015 07:27:16 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 15F7022164D; Sat, 8 Aug 2015 08:27:13 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 8 Aug 2015 08:27:02 -0600 Message-Id: <1439044022-14481-10-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.5.0.rc2.392.g76e840b In-Reply-To: <1439044022-14481-1-git-send-email-sjg@chromium.org> References: <1439044022-14481-1-git-send-email-sjg@chromium.org> Cc: Graeme Russ , Tom Rini Subject: [U-Boot] [PATCH v2 9/9] x86: baytrail: Support running as an EFI payload X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We should not fiddle with interrupts or the FSP when running as an EFI payload. Detect this and skip this code. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Add new patch to support running as an EFI payload arch/x86/cpu/baytrail/valleyview.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/cpu/baytrail/valleyview.c b/arch/x86/cpu/baytrail/valleyview.c index bbb352f..3d337d5 100644 --- a/arch/x86/cpu/baytrail/valleyview.c +++ b/arch/x86/cpu/baytrail/valleyview.c @@ -44,6 +44,8 @@ int arch_misc_init(void) { int ret; + if (!ll_boot_init()) + return 0; ret = pirq_init(); if (ret) return ret;