Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 786B8C4338F for ; Sun, 22 Aug 2021 11:41:13 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BE1DE6112F for ; Sun, 22 Aug 2021 11:41:12 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BE1DE6112F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 596FA82D91; Sun, 22 Aug 2021 13:41:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="kBDHuUhX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7899B82F03; Sun, 22 Aug 2021 13:41:08 +0200 (CEST) Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8C7CF82D91 for ; Sun, 22 Aug 2021 13:41:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: by mail.kernel.org (Postfix) with ESMTPSA id C973660524; Sun, 22 Aug 2021 11:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629632461; bh=9L/c4rfBh45ZYAHWxXmJVFUIT5jEFnzOO3f62867QXE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kBDHuUhXD2syy+WunWMIb6S9l2s08kACD50tYnP+Vw/RFk1/8tEe3ldWRKrtqnjTQ ue5UvirI89e4U8/4Hvl8hx88qSoTWfyy3oQ4GC4omRKDd75CKeb7N8rNj6ya9cNndQ kSZchGa/adIQ3HYTtOZQkc7XKbZDvBXOIxC5ehsqB3MR7FgP8aQKQoli7e1JIa735g MgW/rSAnRpTQa3VkiL4DTkon5L3WJM66q9DkHHpmGk7w+krJN3jwn33x0+MTQaj9gG rAyNa9AQpJ3C9Hco3VFiW/M0a1Wn2oqa4smsj+mCoWHlIfdol2fsdPkwNNsoq4IoVB 65Qt8exvLMG8w== Received: by pali.im (Postfix) id 792D77C7; Sun, 22 Aug 2021 13:40:58 +0200 (CEST) Date: Sun, 22 Aug 2021 13:40:58 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Marek =?utf-8?B?QmVow7pu?= Cc: Tom Rini , u-boot@lists.denx.de, Stefan Roese Subject: Re: [PATCH 4/9] mvebu: ddr: Rename CONFIG_DDR_FIXED_SIZE to CONFIG_SYS_SDRAM_SIZE Message-ID: <20210822114058.k4gv2bbtyujhurdr@pali> References: <20210821175019.24180-1-trini@konsulko.com> <20210821175019.24180-4-trini@konsulko.com> <20210822133554.55b24206@thinkpad> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210822133554.55b24206@thinkpad> User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Sunday 22 August 2021 13:35:54 Marek BehĂșn wrote: > + pali, who can tell whether this won't break how the code is aligned > with upstream mv-ddr This one change touch only drivers/ddr/marvell/axp/ files which are for Armada XP. Upstream mv-ddr code does not contain Armada XP code. It contains code for new platforms: A38x, A37xx, A70xx, A80xx, CN913x. So only code which touches drivers/ddr/marvell/a38x/ needs care for upstream synchronization. > On Sat, 21 Aug 2021 13:50:14 -0400 > Tom Rini wrote: > > > We have a number of CONFIG symbols to express the fixed size of system > > memory. For now, rename CONFIG_DDR_FIXED_SIZE to CONFIG_SYS_SDRAM_SIZE > > and adjust usage to match that CONFIG_SYS_SDRAM_SIZE expects the entire > > size rather than MiB. > > > > Cc: Marek BehĂșn > > Cc: Stefan Roese > > Signed-off-by: Tom Rini > > --- > > drivers/ddr/marvell/axp/ddr3_axp.h | 4 ++-- > > include/configs/maxbcm.h | 4 +++- > > include/configs/theadorable.h | 4 +++- > > 3 files changed, 8 insertions(+), 4 deletions(-) > > > > diff --git a/drivers/ddr/marvell/axp/ddr3_axp.h b/drivers/ddr/marvell/axp/ddr3_axp.h > > index 270691e9bcd3..970651f87029 100644 > > --- a/drivers/ddr/marvell/axp/ddr3_axp.h > > +++ b/drivers/ddr/marvell/axp/ddr3_axp.h > > @@ -19,10 +19,10 @@ > > #define FAR_END_DIMM_ADDR 0x50 > > #define MAX_DIMM_ADDR 0x60 > > > > -#ifndef CONFIG_DDR_FIXED_SIZE > > +#ifndef CONFIG_SYS_SDRAM_SIZE > > #define SDRAM_CS_SIZE 0xFFFFFFF > > #else > > -#define SDRAM_CS_SIZE (CONFIG_DDR_FIXED_SIZE - 1) > > +#define SDRAM_CS_SIZE ((CONFIG_SYS_SDRAM_SIZE >> 10) - 1) > > #endif > > #define SDRAM_CS_BASE 0x0 > > #define SDRAM_DIMM_SIZE 0x80000000 > > diff --git a/include/configs/maxbcm.h b/include/configs/maxbcm.h > > index fc2393204bec..5098f12f5425 100644 > > --- a/include/configs/maxbcm.h > > +++ b/include/configs/maxbcm.h > > @@ -6,6 +6,8 @@ > > #ifndef _CONFIG_DB_MV7846MP_GP_H > > #define _CONFIG_DB_MV7846MP_GP_H > > > > +#include > > + > > /* > > * High Level Configuration Options (easy to change) > > */ > > @@ -65,7 +67,7 @@ > > /* SPL related SPI defines */ > > > > /* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */ > > -#define CONFIG_DDR_FIXED_SIZE (1 << 20) /* 1GiB */ > > +#define CONFIG_SYS_SDRAM_SIZE SZ_1G > > #define CONFIG_BOARD_ECC_SUPPORT /* this board supports ECC */ > > > > #endif /* _CONFIG_DB_MV7846MP_GP_H */ > > diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h > > index 760713d3ef87..abc48ff44ca5 100644 > > --- a/include/configs/theadorable.h > > +++ b/include/configs/theadorable.h > > @@ -6,6 +6,8 @@ > > #ifndef _CONFIG_THEADORABLE_H > > #define _CONFIG_THEADORABLE_H > > > > +#include > > + > > /* > > * High Level Configuration Options (easy to change) > > */ > > @@ -93,6 +95,6 @@ > > #define CONFIG_SPL_BOOTROM_SAVE (CONFIG_SPL_STACK + 4) > > > > /* Enable DDR support in SPL (DDR3 training from Marvell bin_hdr) */ > > -#define CONFIG_DDR_FIXED_SIZE (2 << 20) /* 2GiB */ > > +#define CONFIG_SYS_SDRAM_SIZE SZ_2G > > > > #endif /* _CONFIG_THEADORABLE_H */ >