Message ID | 20200814063339.844598-3-sr@denx.de |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
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=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=denx.de header.i=@denx.de header.a=rsa-sha256 header.s=phobos-20191101 header.b=w0tB564v; 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) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BSYYm1CZHz9sPB for <incoming@patchwork.ozlabs.org>; Fri, 14 Aug 2020 16:34:03 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E3275821BE; Fri, 14 Aug 2020 08:33:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1597386837; bh=tcNXqqT6rEX69xKkQAeBuTsKAaKqiU9IFTfpD68+XOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=w0tB564vW08wsb8J18etinjCxuI1w08q2J7L2jVihsuz3ElHT+cJr6O9wwFTopNNV mCbw2uOaWRpAfGJpffWDmdUU/pv1ANZAXXN/w4PbQ38fQVIvRnQnFdEMwBrHb8u+8d XS6TmcdX9fUwQE/A6VzHfPh+azoGVz6KNV1QbEGt9Lm6VSyJ2mQZ858CT1o2Qusw2a 9ezSxEkWatOfzIBYvCLjs4lC2P9mbZFvA7vH8N/ccXKCdpGKRtGZtfgP1nclo55CqA dZe/G02MTL3yGoL/xN6bJxdQvkTvlE3lfkFOWf1/7HlkelVIn0kBThJdNWpKlh2LyP 4xl71fyQvxNPQ== Received: by phobos.denx.de (Postfix, from userid 109) id 0D64E808F1; Fri, 14 Aug 2020 08:33:55 +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.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mx2.mailbox.org (mx2.mailbox.org [80.241.60.215]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id BAFAE808F1 for <u-boot@lists.denx.de>; Fri, 14 Aug 2020 08:33:52 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=sr@denx.de Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id 9C298A11B1; Fri, 14 Aug 2020 08:33:51 +0200 (CEST) Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id wvYwKUFgIW-y; Fri, 14 Aug 2020 08:33:48 +0200 (CEST) From: Stefan Roese <sr@denx.de> To: u-boot@lists.denx.de Cc: daniel.schwierzeck@gmail.com, trini@konsulko.com, Ovidiu Panait <ovidiu.panait@windriver.com>, sjg@chromium.org, =?utf-8?q?Pa?= =?utf-8?q?li_Roh=C3=A1r?= <pali@kernel.org>, Atish Patra <atish.patra@wdc.com>, Breno Matheus Lima <breno.lima@nxp.com>, Masahiro Yamada <masahiroy@kernel.org>, Robert Marko <robert.marko@sartura.hr>, Stefano Babic <sbabic@denx.de> Subject: [PATCH v5 02/10] image: Use gd->ram_base/_size in env_get_bootm_size() Date: Fri, 14 Aug 2020 08:33:31 +0200 Message-Id: <20200814063339.844598-3-sr@denx.de> In-Reply-To: <20200814063339.844598-1-sr@denx.de> References: <20200814063339.844598-1-sr@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-SPAM-Probability: ** X-Rspamd-Score: 2.23 / 15.00 / 15.00 X-Rspamd-Queue-Id: 23B791825 X-Rspamd-UID: 31d611 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
Remove CONFIG_NR_DRAM_BANKS option and bi_memstart/memsize from bd_info
|
expand
|
diff --git a/common/image.c b/common/image.c index 2ed46f7685..6f68b13fce 100644 --- a/common/image.c +++ b/common/image.c @@ -685,13 +685,8 @@ phys_size_t env_get_bootm_size(void) return tmp; } -#if defined(CONFIG_ARM) || defined(CONFIG_MICROBLAZE) - start = gd->bd->bi_dram[0].start; - size = gd->bd->bi_dram[0].size; -#else - start = gd->bd->bi_memstart; - size = gd->bd->bi_memsize; -#endif + start = gd->ram_base; + size = gd->ram_size; s = env_get("bootm_low"); if (s)
Use only gd->ram_base/_size in env_get_bootm_size() instead of bi_dram[] in some cases and bi_memstart in others. Signed-off-by: Stefan Roese <sr@denx.de> --- (no changes since v4) Changes in v4: - New patch common/image.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)