]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: Remove memory division by 2 for ECC case
authorMichal Simek <michal.simek@xilinx.com>
Tue, 5 Jan 2016 09:49:24 +0000 (10:49 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 27 Jan 2016 14:55:55 +0000 (15:55 +0100)
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>
arch/arm/mach-zynq/ddrc.c

index 5b20accbcb172d7e0e40dc7c92933f5123e1485a..d74f8dbbc45dfb9f6440ea38fa44552404f436ef 100644 (file)
@@ -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 ");
        }