diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-01-05 10:49:24 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2016-01-27 15:55:55 +0100 |
commit | 67b2904819f55fd30aabc731ca7b67e480a51f85 (patch) | |
tree | 461b91ecb228c25a7ceaf99be984a0195a0ab544 | |
parent | b21561463885d4c2f40a133dae1ff00ef3f0175f (diff) | |
download | u-boot-imx-67b2904819f55fd30aabc731ca7b67e480a51f85.zip u-boot-imx-67b2904819f55fd30aabc731ca7b67e480a51f85.tar.gz u-boot-imx-67b2904819f55fd30aabc731ca7b67e480a51f85.tar.bz2 |
ARM: zynq: Remove memory division by 2 for ECC case
For ECC case u-boot divided memory by 2 because one u-boot could be used
for both cases when ECC is off or on.
Remove this division and make sure that dts file contain the correct
memory size when ECC is enabled.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | arch/arm/mach-zynq/ddrc.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-zynq/ddrc.c b/arch/arm/mach-zynq/ddrc.c index 5b20acc..d74f8db 100644 --- a/arch/arm/mach-zynq/ddrc.c +++ b/arch/arm/mach-zynq/ddrc.c @@ -42,8 +42,6 @@ void zynq_ddrc_init(void) */ /* cppcheck-suppress nullPointer */ memset((void *)0, 0, 1 * 1024 * 1024); - - gd->ram_size /= 2; } else { puts("ECC disabled "); } |