u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH 3/6] omap3: emif4: More clearly hard-code cs0 size
Date: Mon, 27 Jun 2022 13:35:48 -0400	[thread overview]
Message-ID: <20220627173551.1199243-3-trini@konsulko.com> (raw)
In-Reply-To: <20220627173551.1199243-1-trini@konsulko.com>

We have a single platform that is both in the OMAP3 family of parts, but
has an EMIF4 memory controller.  Currently we hard-code the size of
chip select 0.  Make this more clear by putting the value in the
function rather than a CONFIG option.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 arch/arm/mach-omap2/omap3/emif4.c | 2 +-
 include/configs/am3517_evm.h      | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/arm/mach-omap2/omap3/emif4.c b/arch/arm/mach-omap2/omap3/emif4.c
index d7d779819bf3..491e7c23dbc6 100644
--- a/arch/arm/mach-omap2/omap3/emif4.c
+++ b/arch/arm/mach-omap2/omap3/emif4.c
@@ -41,7 +41,7 @@ static u32 get_sdr_cs_size(u32 cs)
 
 	/* TODO: Calculate the size based on EMIF4 configuration */
 	if (cs == CS0)
-		size = CONFIG_SYS_CS0_SIZE;
+		size = 256 * 1024 * 1024;
 
 	return size;
 }
diff --git a/include/configs/am3517_evm.h b/include/configs/am3517_evm.h
index e6c9039d1664..93beed4ad736 100644
--- a/include/configs/am3517_evm.h
+++ b/include/configs/am3517_evm.h
@@ -85,9 +85,6 @@
 
 /* memtest works on */
 
-/* Physical Memory Map */
-#define CONFIG_SYS_CS0_SIZE		(256 * 1024 * 1024)
-
 /* FLASH and environment organization */
 
 /* **** PISMO SUPPORT *** */
-- 
2.25.1


  parent reply	other threads:[~2022-06-27 17:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 17:35 [PATCH 1/6] Convert CONFIG_SYS_CACHE_STASHING to Kconfig Tom Rini
2022-06-27 17:35 ` [PATCH 2/6] arm: Remove strongarm support Tom Rini
2022-06-27 17:35 ` Tom Rini [this message]
2022-06-27 17:35 ` [PATCH 4/6] legoev3: Migrate to DM_I2C Tom Rini
2022-06-28 18:51   ` David Lechner
2022-06-27 17:35 ` [PATCH 5/6] i2c: Remove non-DM_I2C support from davinci_i2c.c Tom Rini
2022-06-27 17:35 ` [PATCH 6/6] powerpc: Use the poison value of 0xdeadbeef directly in DDR init Tom Rini
2022-07-09 15:08 ` [PATCH 1/6] Convert CONFIG_SYS_CACHE_STASHING to Kconfig Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220627173551.1199243-3-trini@konsulko.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).