瀏覽代碼

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>
Michal Simek 9 年之前
父節點
當前提交
67b2904819
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      arch/arm/mach-zynq/ddrc.c

+ 0 - 2
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 ");
 	}