diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-04-01 16:04:14 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-04-13 18:29:02 +0200 |
commit | c1584e2a2190756d73d1f96e0e431da30870d208 (patch) | |
tree | d14ed107795ad3a0b2244891bca09fe38c922c45 | |
parent | a195ed335978d31121c4c41d1164ffab62abad49 (diff) |
ARM: zynq: Use memory initialization based on DTS file
Remove hardcoded memory sizes. Use information from DT memory node.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | include/configs/zynq-common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/configs/zynq-common.h b/include/configs/zynq-common.h index d8e3fa4e5a..aac1e2badd 100644 --- a/include/configs/zynq-common.h +++ b/include/configs/zynq-common.h @@ -278,14 +278,14 @@ #define CONFIG_SYS_TEXT_BASE 0x4000000 #define CONFIG_NR_DRAM_BANKS 1 -#define CONFIG_SYS_SDRAM_BASE 0 -#define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 0x1000) +#define CONFIG_SYS_MEMTEST_START 0 +#define CONFIG_SYS_MEMTEST_END 0x1000 #define CONFIG_SYS_MALLOC_LEN 0x1400000 -#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE -#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_MALLOC_LEN + +#define CONFIG_SYS_INIT_RAM_ADDR 0xFFFF0000 +#define CONFIG_SYS_INIT_RAM_SIZE 0x1000 #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ CONFIG_SYS_INIT_RAM_SIZE - \ GENERATED_GBL_DATA_SIZE) |