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 | |
parent | 3b2b2ccac71e8f07987305f08bf528e15d708bad (diff) | |
download | u-boot-61dc92a29d3028296dc3ff34641c78c402e8c14a.tar.gz u-boot-61dc92a29d3028296dc3ff34641c78c402e8c14a.tar.xz u-boot-61dc92a29d3028296dc3ff34641c78c402e8c14a.zip |
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')
-rw-r--r-- | board/xilinx/zynq/board.c | 3 | ||||
-rw-r--r-- | board/xilinx/zynqmp/zynqmp.c | 3 |
2 files changed, 4 insertions, 2 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(); diff --git a/board/xilinx/zynqmp/zynqmp.c b/board/xilinx/zynqmp/zynqmp.c index 0d1bd5412b..3c4cf80b23 100644 --- a/board/xilinx/zynqmp/zynqmp.c +++ b/board/xilinx/zynqmp/zynqmp.c @@ -377,7 +377,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); return 0; } |