From 6e07843ca7763da6c14836f6d77facace3095fd4 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Mon, 24 Sep 2012 15:09:00 +0200 Subject: [PATCH] zynq: Move ramsize to the begging of config files Signed-off-by: Michal Simek --- include/configs/zynq_afx.h | 6 ++---- include/configs/zynq_cseflash.h | 7 +++---- include/configs/zynq_ep107.h | 7 ++----- include/configs/zynq_zc70x.h | 7 +++---- include/configs/zynq_zc770.h | 7 +++---- include/configs/zynq_zed.h | 7 +++---- 6 files changed, 16 insertions(+), 25 deletions(-) diff --git a/include/configs/zynq_afx.h b/include/configs/zynq_afx.h index 926b2fe72c6..17b43d81be5 100644 --- a/include/configs/zynq_afx.h +++ b/include/configs/zynq_afx.h @@ -18,6 +18,8 @@ #ifndef __CONFIG_ZYNQ_AFX_H #define __CONFIG_ZYNQ_AFX_H +#define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024) + #define CONFIG_ZYNQ_SERIAL_UART1 #define CONFIG_SYS_NO_FLASH @@ -44,10 +46,6 @@ #endif -/* - * Physical Memory map - */ -#define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024) /* * SPI Settings diff --git a/include/configs/zynq_cseflash.h b/include/configs/zynq_cseflash.h index 06bd6bc21bb..b99617c0801 100644 --- a/include/configs/zynq_cseflash.h +++ b/include/configs/zynq_cseflash.h @@ -4,6 +4,8 @@ #ifndef __CONFIG_H #define __CONFIG_H +#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024) + #define CONFIG_ENV_IS_NOWHERE #include @@ -71,10 +73,7 @@ /* Because (at least at first) we're going to be loaded via JTAG_Tcl */ #define CONFIG_SKIP_LOWLEVEL_INIT -/* - * Physical Memory map - */ -#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024) + /* Why? */ #undef CONFIG_ENV_SIZE diff --git a/include/configs/zynq_ep107.h b/include/configs/zynq_ep107.h index 8795762f3e5..06ff2e69c79 100644 --- a/include/configs/zynq_ep107.h +++ b/include/configs/zynq_ep107.h @@ -20,6 +20,8 @@ #define CONFIG_EP107 /* Board */ +#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024) + #define CONFIG_ZYNQ_SERIAL_UART0 #define CONFIG_ZYNQ_GEM0 #define CONFIG_PHY_ADDR 23 @@ -83,11 +85,6 @@ #define CONFIG_ZYNQ_IP_ENV -/* - * Physical Memory map - */ -#define PHYS_SDRAM_1_SIZE (256 * 1024 * 1024) - /* * SPI Settings */ diff --git a/include/configs/zynq_zc70x.h b/include/configs/zynq_zc70x.h index 09b83ea1fd4..7dc8cb85e02 100644 --- a/include/configs/zynq_zc70x.h +++ b/include/configs/zynq_zc70x.h @@ -18,6 +18,8 @@ #ifndef __CONFIG_ZYNQ_ZC70X_H #define __CONFIG_ZYNQ_ZC70X_H +#define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024) + #define CONFIG_ZYNQ_SERIAL_UART1 #define CONFIG_ZYNQ_GEM0 #define CONFIG_PHY_ADDR 7 @@ -44,10 +46,7 @@ /* this is to set ipaddr, ethaddr and serverip env variables. */ #define CONFIG_ZYNQ_IP_ENV -/* - * Physical Memory map - */ -#define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024) + /* * SPI Settings diff --git a/include/configs/zynq_zc770.h b/include/configs/zynq_zc770.h index e54c52acb5d..2903bc5e8d4 100644 --- a/include/configs/zynq_zc770.h +++ b/include/configs/zynq_zc770.h @@ -18,6 +18,8 @@ #ifndef __CONFIG_ZYNQ_ZC770_H #define __CONFIG_ZYNQ_ZC770_H +#define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024) + #define CONFIG_SYS_NO_FLASH #if defined(CONFIG_ZC770_XM010) @@ -65,10 +67,7 @@ #define CONFIG_ZYNQ_XILINX_FLASH_HEADER #endif -/* - * Physical Memory map - */ -#define PHYS_SDRAM_1_SIZE (1024 * 1024 * 1024) + /* diff --git a/include/configs/zynq_zed.h b/include/configs/zynq_zed.h index 147568a1500..0f54f78de4c 100644 --- a/include/configs/zynq_zed.h +++ b/include/configs/zynq_zed.h @@ -18,6 +18,8 @@ #ifndef __CONFIG_ZYNQ_ZED_H #define __CONFIG_ZYNQ_ZED_H +#define PHYS_SDRAM_1_SIZE (512 * 1024 * 1024) + #define CONFIG_ZYNQ_SERIAL_UART1 #define CONFIG_ZYNQ_GEM0 #define CONFIG_PHY_ADDR 0 @@ -62,10 +64,7 @@ /* this is to set ipaddr, ethaddr and serverip env variables. */ #define CONFIG_ZYNQ_IP_ENV -/* - * Physical Memory map - */ -#define PHYS_SDRAM_1_SIZE (512 * 1024 * 1024) + /* * SPI Settings -- 2.47.3