diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-09-05 08:41:19 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-01-26 08:55:57 +0100 |
commit | 3ad87ca18203f8b0de0e30b7c12d2ffadf2d8553 (patch) | |
tree | c595054fbb2d15ae0c03d6d22928b5187b8019e6 | |
parent | 555c7c066f9fd5a3d9a241fa873c65e4a6596244 (diff) | |
download | u-boot-imx-3ad87ca18203f8b0de0e30b7c12d2ffadf2d8553.zip u-boot-imx-3ad87ca18203f8b0de0e30b7c12d2ffadf2d8553.tar.gz u-boot-imx-3ad87ca18203f8b0de0e30b7c12d2ffadf2d8553.tar.bz2 |
ARM: zynq: ddrc: Setup half of memory only for ECC case
Setup half of memory from ram_size for ECC case.
All the time the same board can be configured
with or without ECC. Based on ECC case detection
use half of memory with the same configuration.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | arch/arm/cpu/armv7/zynq/ddrc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/zynq/ddrc.c b/arch/arm/cpu/armv7/zynq/ddrc.c index d74f8db..5b20acc 100644 --- a/arch/arm/cpu/armv7/zynq/ddrc.c +++ b/arch/arm/cpu/armv7/zynq/ddrc.c @@ -42,6 +42,8 @@ void zynq_ddrc_init(void) */ /* cppcheck-suppress nullPointer */ memset((void *)0, 0, 1 * 1024 * 1024); + + gd->ram_size /= 2; } else { puts("ECC disabled "); } |