Message ID | 20240814110009.45310-21-sughosh.ganu@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp645909wrm; Wed, 14 Aug 2024 04:04:18 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXxoy3aXCOw1XUEAspoMSs0tqVOc2ityZiA1l8XWP/eGH+wciiTXRAxVZFoWvGxuFItuOMSeSKURjAY9aFIfyS+ X-Google-Smtp-Source: AGHT+IGd3QjUpMGN6Sfykdd8bNlWpFNCCFwl0K9luvMVva3+cIta7fWYHTXtnX5GUCTxCCdhNdFy X-Received: by 2002:a17:907:e605:b0:a7a:9fe9:99e7 with SMTP id a640c23a62f3a-a8366d6dab7mr146669866b.41.1723633458466; Wed, 14 Aug 2024 04:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723633458; cv=none; d=google.com; s=arc-20160816; b=IGd4tKC1WSz9NjmwgIM2qlBuFLtKWlkgTHkcN97ExnH7l4Sd/0s+IyKIL12KSbtrCV GWDRununLNx8rRZNO/gi0kGwxgWksBq2tyeIaHOXkqz8qYd/9D9PjkgrBNVGOQ2lw6hn 3pzhTcIREza/Nlv/XvshfWGdKnA3Gyt+vcBphVPLGQMQtA3USA8XtA09XZVquIbBjAT1 ZW2AeQGKV6ieFUiDlYk5iYhhOrlv+SMwRHZnP7u54SkVni8KcNAxN54effpc0ptf2lT+ 4G5i5g/aGEFb/4Ns3AnVru7Fks9rzPVtZzNBorbmFy9IeBo5Bs3PpRAOhh54kO8S262/ +QHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=SX+Ff3Rym4dEYXirmbKVL2XSnBkPrnvQZzonaFhwseg=; fh=w4WyT9xL7ErtT1TeetrD/m0Y0mAgjnERgxacGUpGjSg=; b=FJLJac5OQWRSyN6EimTDltki/ei+Q6bmWWXjNBWj6Ul6SgmhRCJ9GxUXiic3G5KWe1 9NpQqvhuf+7zF5AZ9lAwBlRLAkdwnYV6O0av5bTIFY6jWs8AmZp4yaC9BXq6XoNoLdCc pgI484PJBFsfx2bFI4zPoqPpck9nHnlF2DLqzCMAwpc7bFsOd2Xpx7GOUmfXQKUdfIJZ CStwjVFKCJgfOWRSQBd0pOnHu3bpmiTYEhDRusSh0MCYbp1ILYcNR4L+SrqE4NMwANfP gASJXYz/zQ6+0tK4kyoPCXUu+Ygz1Bs46nQRktPrxzeWKei+BF4Mb8T2N+ewJVCXdL51 og2g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a80f411e2f4si206637666b.356.2024.08.14.04.04.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 04:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 638A388A7A; Wed, 14 Aug 2024 13:02:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 507B1889C9; Wed, 14 Aug 2024 13:02:21 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id CE4DB88A99 for <u-boot@lists.denx.de>; Wed, 14 Aug 2024 13:02:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1D142DA7; Wed, 14 Aug 2024 04:02:39 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9EB643F58B; Wed, 14 Aug 2024 04:02:08 -0700 (PDT) From: Sughosh Ganu <sughosh.ganu@linaro.org> To: u-boot@lists.denx.de Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, Marek Vasut <marex@denx.de>, Tom Rini <trini@konsulko.com>, Mark Kettenis <mark.kettenis@xs4all.nl>, Michal Simek <michal.simek@amd.com>, Patrick DELAUNAY <patrick.delaunay@foss.st.com>, Patrice CHOTARD <patrice.chotard@foss.st.com>, Huan Wang <alison.wang@nxp.com>, Angelo Dureghello <angelo@kernel-space.org>, Daniel Schwierzeck <daniel.schwierzeck@gmail.com>, Thomas Chou <thomas@wytron.com.tw>, Rick Chen <rick@andestech.com>, Max Filippov <jcmvbkbc@gmail.com>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH v2 20/32] spl: call spl_board_init() at the end of the spl init sequence Date: Wed, 14 Aug 2024 16:29:57 +0530 Message-Id: <20240814110009.45310-21-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240814110009.45310-1-sughosh.ganu@linaro.org> References: <20240814110009.45310-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Make LMB memory map global and persistent
|
expand
|
diff --git a/common/spl/spl.c b/common/spl/spl.c index 4102e25115..f58c1f97b9 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -713,9 +713,6 @@ void board_init_r(gd_t *dummy1, ulong dummy2) if (CONFIG_IS_ENABLED(SOC_INIT)) spl_soc_init(); - if (CONFIG_IS_ENABLED(BOARD_INIT)) - spl_board_init(); - if (IS_ENABLED(CONFIG_SPL_WATCHDOG) && CONFIG_IS_ENABLED(WDT)) initr_watchdog(); @@ -733,6 +730,9 @@ void board_init_r(gd_t *dummy1, ulong dummy2) /* Don't fail. We still can try other boot methods. */ } + if (CONFIG_IS_ENABLED(BOARD_INIT)) + spl_board_init(); + bootcount_inc(); /* Dump driver model states to aid analysis */