public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/5] warp: Use imx_ddr_size() for calculating the DDR size
@ 2016-07-23 16:23 Fabio Estevam
  2016-07-23 16:23 ` [U-Boot] [PATCH 2/5] aristainetos: " Fabio Estevam
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Fabio Estevam @ 2016-07-23 16:23 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 board/warp/warp.c      | 2 +-
 include/configs/warp.h | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/board/warp/warp.c b/board/warp/warp.c
index 49dfdb6..0bc0a6a 100644
--- a/board/warp/warp.c
+++ b/board/warp/warp.c
@@ -46,7 +46,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/warp.h b/include/configs/warp.h
index 4a8e270..12c7c38 100644
--- a/include/configs/warp.h
+++ b/include/configs/warp.h
@@ -43,7 +43,6 @@
 /* Physical Memory Map */
 #define CONFIG_NR_DRAM_BANKS		1
 #define PHYS_SDRAM			MMDC0_ARB_BASE_ADDR
-#define PHYS_SDRAM_SIZE			SZ_512M
 
 #define CONFIG_SYS_SDRAM_BASE		PHYS_SDRAM
 #define CONFIG_SYS_INIT_RAM_ADDR	IRAM_BASE_ADDR
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-07-28 10:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [U-Boot] [PATCH 3/5] bx50v3: " Fabio Estevam
2016-07-28 10:44   ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox