[U-Boot] [PATCH 3/4] ARM: zynq: Read memory size setting from DT

Michal Simek michal.simek at xilinx.com
Thu Feb 4 12:14:34 CET 2016


OF_CONTROL is setup by default and memory reading is done via DT. Remove
all config files with memory references.

Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---

 board/xilinx/zynq/board.c       | 4 ----
 include/configs/zynq_microzed.h | 2 --
 include/configs/zynq_picozed.h  | 2 --
 include/configs/zynq_zc70x.h    | 2 --
 include/configs/zynq_zc770.h    | 2 --
 include/configs/zynq_zed.h      | 2 --
 include/configs/zynq_zybo.h     | 2 --
 7 files changed, 16 deletions(-)

diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
index 01bae5d67e3f..2f17e977a4b3 100644
--- a/board/xilinx/zynq/board.c
+++ b/board/xilinx/zynq/board.c
@@ -100,7 +100,6 @@ int checkboard(void)
 
 int dram_init(void)
 {
-#if CONFIG_IS_ENABLED(OF_CONTROL)
 	int node;
 	fdt_addr_t addr;
 	fdt_size_t size;
@@ -118,9 +117,6 @@ int dram_init(void)
 		return -1;
 	}
 	gd->ram_size = size;
-#else
-	gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
-#endif
 	zynq_ddrc_init();
 
 	return 0;
diff --git a/include/configs/zynq_microzed.h b/include/configs/zynq_microzed.h
index 7396ff9bd967..e66088da4f79 100644
--- a/include/configs/zynq_microzed.h
+++ b/include/configs/zynq_microzed.h
@@ -10,8 +10,6 @@
 #ifndef __CONFIG_ZYNQ_MICROZED_H
 #define __CONFIG_ZYNQ_MICROZED_H
 
-#define CONFIG_SYS_SDRAM_SIZE		(1024 * 1024 * 1024)
-
 #define CONFIG_SYS_NO_FLASH
 
 #include <configs/zynq-common.h>
diff --git a/include/configs/zynq_picozed.h b/include/configs/zynq_picozed.h
index 3d2bed25e5af..1fc57e1e0fca 100644
--- a/include/configs/zynq_picozed.h
+++ b/include/configs/zynq_picozed.h
@@ -10,8 +10,6 @@
 #ifndef __CONFIG_ZYNQ_PICOZED_H
 #define __CONFIG_ZYNQ_PICOZED_H
 
-#define CONFIG_SYS_SDRAM_SIZE		(1024 * 1024 * 1024)
-
 #define CONFIG_SYS_NO_FLASH
 
 #define CONFIG_ZYNQ_USB
diff --git a/include/configs/zynq_zc70x.h b/include/configs/zynq_zc70x.h
index a84688cff2c5..2e7056ab1ff0 100644
--- a/include/configs/zynq_zc70x.h
+++ b/include/configs/zynq_zc70x.h
@@ -10,8 +10,6 @@
 #ifndef __CONFIG_ZYNQ_ZC70X_H
 #define __CONFIG_ZYNQ_ZC70X_H
 
-#define CONFIG_SYS_SDRAM_SIZE		(1024 * 1024 * 1024)
-
 #define CONFIG_SYS_NO_FLASH
 
 #define CONFIG_ZYNQ_USB
diff --git a/include/configs/zynq_zc770.h b/include/configs/zynq_zc770.h
index 6121c099c297..35622ae34649 100644
--- a/include/configs/zynq_zc770.h
+++ b/include/configs/zynq_zc770.h
@@ -10,8 +10,6 @@
 #ifndef __CONFIG_ZYNQ_ZC770_H
 #define __CONFIG_ZYNQ_ZC770_H
 
-#define CONFIG_SYS_SDRAM_SIZE		(1024 * 1024 * 1024)
-
 #define CONFIG_SYS_NO_FLASH
 
 #if defined(CONFIG_ZC770_XM012)
diff --git a/include/configs/zynq_zed.h b/include/configs/zynq_zed.h
index 212053102b04..6f3915a0f86a 100644
--- a/include/configs/zynq_zed.h
+++ b/include/configs/zynq_zed.h
@@ -10,8 +10,6 @@
 #ifndef __CONFIG_ZYNQ_ZED_H
 #define __CONFIG_ZYNQ_ZED_H
 
-#define CONFIG_SYS_SDRAM_SIZE		(512 * 1024 * 1024)
-
 #define CONFIG_SYS_NO_FLASH
 
 #define CONFIG_ZYNQ_USB
diff --git a/include/configs/zynq_zybo.h b/include/configs/zynq_zybo.h
index 28d8f93f408d..5287512d185c 100644
--- a/include/configs/zynq_zybo.h
+++ b/include/configs/zynq_zybo.h
@@ -11,8 +11,6 @@
 #ifndef __CONFIG_ZYNQ_ZYBO_H
 #define __CONFIG_ZYNQ_ZYBO_H
 
-#define CONFIG_SYS_SDRAM_SIZE (512 * 1024 * 1024)
-
 #define CONFIG_SYS_NO_FLASH
 
 #define CONFIG_ZYNQ_USB
-- 
1.9.1



More information about the U-Boot mailing list