From patchwork Fri Apr 26 03:58:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1091206 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) 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="UJop6ynD"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44r0pN6ysMz9s5c for ; Fri, 26 Apr 2019 14:05:48 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 9C82CC21D83; Fri, 26 Apr 2019 04:04:00 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_MSPIKE_H2, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id BD0B9C21C6A; Fri, 26 Apr 2019 04:00:41 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 83A0AC21D65; Fri, 26 Apr 2019 04:00:09 +0000 (UTC) Received: from mail-it1-f196.google.com (mail-it1-f196.google.com [209.85.166.196]) by lists.denx.de (Postfix) with ESMTPS id B4137C21DF8 for ; Fri, 26 Apr 2019 04:00:05 +0000 (UTC) Received: by mail-it1-f196.google.com with SMTP id s3so3755893itk.1 for ; Thu, 25 Apr 2019 21:00:05 -0700 (PDT) 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=1T8cfoi7RDTbWz/r6T9e8BCA8An4jvSFGtwks/iJ2+Y=; b=UJop6ynDzNKHDlkmgwA+/Iztl8TYGeJdwIErQhN3NHwo5s8eemfASLPdw6P9zcKKWe s5i3mlbIVF7k4cAKeDQLfcGN4VqpVUESjDhqEc7kbDavOqBpyt+DAcM7l+mDEIRYP80J IosdZ6UVTscswgDrdbkjVdGV4lUVwoOJxGAKU= 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=1T8cfoi7RDTbWz/r6T9e8BCA8An4jvSFGtwks/iJ2+Y=; b=cwfNq8j2D2KIhAWEBU1OS0RF2IaWo+r0oEprtemWv97DumAjvxN50vVzYxjhUs99Rq mkUkQVpd78IBVC1HkxFu3PRy6Q2w7O3VQecDoTmlBac92Co0WNIA1CfxyYEaFHDUHwwv C2OSy6+j8csnIAtmMNpAiR72xaWwSne6lKulslTLpD2uTl7ANwDUUVIDv3z3xv4EN2MQ hXLDyypD1JxQFhTnjVqx2G1AcmA/xAYa0LSc/S3eYqpc0XZ0ut5i9LTOoOmpTjJ+0Xf+ adovGSMwEPGVRQ8ROeHlqR7I7959YQDbz1vlfaOaa+mZZdRRj7Y3hu9lwKJt7b+vnzeU 1sQA== X-Gm-Message-State: APjAAAWvI0QIyKrkHoLloWbgLz9h0Nb4QHLRmnBPUdgkmAUUrTUCZHb7 Tl5KRoErJ+VfYvv6mnJo9Z+7LAOr6cQ= X-Google-Smtp-Source: APXvYqzAbijT2inHNZBGfTX4Td2R8cLIUHn+wUdnaYMeaKp2feaNndumW3c0GCQfYMECtZLbOaj5jQ== X-Received: by 2002:a24:1711:: with SMTP id 17mr6866143ith.58.1556251204535; Thu, 25 Apr 2019 21:00:04 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id m142sm5006180itb.31.2019.04.25.21.00.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Apr 2019 21:00:03 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Thu, 25 Apr 2019 21:58:46 -0600 Message-Id: <20190426035922.20596-15-sjg@chromium.org> X-Mailer: git-send-email 2.21.0.593.g511ec345e18-goog In-Reply-To: <20190426035922.20596-1-sjg@chromium.org> References: <20190426035922.20596-1-sjg@chromium.org> MIME-Version: 1.0 Subject: [U-Boot] [PATCH v2 14/50] x86: Support booting with TPL X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Some boards want to use TPL as the first phase of U-Boot. This allows selection of A or B SPL phases, thus allowing the memory init to be upgraded in the field. Add a new Kconfig option for this. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: None arch/x86/Kconfig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 185f0ef8c40..45a533625a6 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -176,10 +176,17 @@ config X86_16BIT_INIT config SPL_X86_16BIT_INIT bool depends on X86_RESET_VECTOR - default y if X86_RESET_VECTOR && SPL + default y if X86_RESET_VECTOR && SPL && !TPL help This is enabled when 16-bit init is in SPL +config TPL_X86_16BIT_INIT + bool + depends on X86_RESET_VECTOR + default y if X86_RESET_VECTOR && TPL + help + This is enabled when 16-bit init is in TPL + config X86_32BIT_INIT bool depends on X86_RESET_VECTOR