zynq: Move CONFIG_SYS_SDRAM_SIZE to pre-board configs
authorJagannadha Sutradharudu Teki <jagannadha.sutradharudu-teki@xilinx.com>
Wed, 8 Jan 2014 20:18:14 +0000 (01:48 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Fri, 10 Jan 2014 14:18:33 +0000 (15:18 +0100)
CONFIG_SYS_SDRAM_SIZE is specific to a board hence moved
to specific pre-config board files.

Signed-off-by: Jagannadha Sutradharudu Teki <jaganna@xilinx.com>
include/configs/zynq-common.h
include/configs/zynq_zc70x.h
include/configs/zynq_zed.h

index bce1094f6d3a192544360b18e26147bed0ac300a..bb9e3374a0cb3f1a9bd412b5e588c891400f6e74 100644 (file)
 
 #define CONFIG_NR_DRAM_BANKS           1
 #define CONFIG_SYS_SDRAM_BASE          0
-#define CONFIG_SYS_SDRAM_SIZE          0x40000000
 
 #define CONFIG_SYS_MEMTEST_START       CONFIG_SYS_SDRAM_BASE
 #define CONFIG_SYS_MEMTEST_END         (CONFIG_SYS_SDRAM_BASE + 0x1000)
index 99108041ff0d768251261f10a946f0c5dbdbf8ea..6950d41d4115d4ed66ba22afed56dad10cd51b54 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_ZYNQ_ZC70X_H
 #define __CONFIG_ZYNQ_ZC70X_H
 
+#define CONFIG_SYS_SDRAM_SIZE          (1024 * 1024 * 1024)
+
 #define CONFIG_ZYNQ_SERIAL_UART1
 #define CONFIG_ZYNQ_GEM0
 #define CONFIG_ZYNQ_GEM_PHY_ADDR0      7
index 278db1ef9b90319c9aae1caa5bda8b569acc2fdc..31926df57c8877e50ae151af093aa9ae2792db62 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef __CONFIG_ZYNQ_ZED_H
 #define __CONFIG_ZYNQ_ZED_H
 
+#define CONFIG_SYS_SDRAM_SIZE          (512 * 1024 * 1024)
+
 #define CONFIG_ZYNQ_SERIAL_UART1
 #define CONFIG_ZYNQ_GEM0
 #define CONFIG_ZYNQ_GEM_PHY_ADDR0      0