public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] bx50v3: Use imx_ddr_size() for calculating the DDR size
Date: Sat, 23 Jul 2016 13:23:40 -0300	[thread overview]
Message-ID: <1469291022-15677-3-git-send-email-festevam@gmail.com> (raw)
In-Reply-To: <1469291022-15677-1-git-send-email-festevam@gmail.com>

From: Fabio Estevam <fabio.estevam@nxp.com>

imx_ddr_size() can be used to calculate the DDR size in runtime.

By using this function we no longer need to define PHYS_SDRAM_SIZE.

Cc: Martin Donnelly <martin.donnelly@ge.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 board/ge/bx50v3/bx50v3.c    | 2 +-
 include/configs/ge_bx50v3.h | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/board/ge/bx50v3/bx50v3.c b/board/ge/bx50v3/bx50v3.c
index d45ed44..e9729f8 100644
--- a/board/ge/bx50v3/bx50v3.c
+++ b/board/ge/bx50v3/bx50v3.c
@@ -60,7 +60,7 @@ DECLARE_GLOBAL_DATA_PTR;
 
 int dram_init(void)
 {
-	gd->ram_size = get_ram_size((void *)PHYS_SDRAM, PHYS_SDRAM_SIZE);
+	gd->ram_size = imx_ddr_size();
 
 	return 0;
 }
diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h
index 4de2460..7a54546 100644
--- a/include/configs/ge_bx50v3.h
+++ b/include/configs/ge_bx50v3.h
@@ -32,8 +32,6 @@
 #define CONFIG_MXC_UART_BASE	UART3_BASE
 #define CONFIG_CONSOLE_DEV	"ttymxc2"
 
-#define PHYS_SDRAM_SIZE		(2u * 1024 * 1024 * 1024)
-
 #define CONFIG_SUPPORT_EMMC_BOOT
 
 
-- 
1.9.1

  parent reply	other threads:[~2016-07-23 16:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-23 16:23 [U-Boot] [PATCH 1/5] warp: Use imx_ddr_size() for calculating the DDR size Fabio Estevam
2016-07-23 16:23 ` [U-Boot] [PATCH 2/5] aristainetos: " Fabio Estevam
2016-07-25  8:16   ` Heiko Schocher
2016-07-28 10:44   ` Stefano Babic
2016-07-23 16:23 ` Fabio Estevam [this message]
2016-07-28 10:44   ` [U-Boot] [PATCH 3/5] bx50v3: " Stefano Babic
2016-07-23 16:23 ` [U-Boot] [PATCH 4/5] novena: Remove uneeded PHYS_SDRAM_SIZE Fabio Estevam
2016-07-24 15:17   ` Marek Vasut
2016-07-28 10:45   ` Stefano Babic
2016-07-23 16:23 ` [U-Boot] [PATCH 5/5] cgtqmx6eval: " Fabio Estevam
2016-07-25 10:17   ` Otavio Salvador
2016-07-28 10:45   ` Stefano Babic
2016-07-28 10:44 ` [U-Boot] [PATCH 1/5] warp: Use imx_ddr_size() for calculating the DDR size Stefano Babic

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=1469291022-15677-3-git-send-email-festevam@gmail.com \
    --to=festevam@gmail.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