diff options
author | Michal Simek <michal.simek@xilinx.com> | 2018-04-11 16:12:28 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2018-04-23 13:15:32 +0200 |
commit | 61dc92a29d3028296dc3ff34641c78c402e8c14a (patch) | |
tree | 1b4db6480f3f304a222dbdb390d03a18994f74cf /board/xilinx/zynq/board.c | |
parent | 3b2b2ccac71e8f07987305f08bf528e15d708bad (diff) |
arm: zynq: Wire automatic ddr detection for Zynq and ZynqMP case
When static memory configuration is used U-Boot has capability to detect
memory size in setup range. Enable this feature for static
configuration.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'board/xilinx/zynq/board.c')
-rw-r--r-- | board/xilinx/zynq/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c index 838ac0f4c4..2f4679e211 100644 --- a/board/xilinx/zynq/board.c +++ b/board/xilinx/zynq/board.c @@ -184,7 +184,8 @@ int dram_init(void) #else int dram_init(void) { - gd->ram_size = CONFIG_SYS_SDRAM_SIZE; + gd->ram_size = get_ram_size((void *)CONFIG_SYS_SDRAM_BASE, + CONFIG_SYS_SDRAM_SIZE); zynq_ddrc_init(); |