浏览代码

Disable memory controller before setting first values.

stroese 21 年之前
父节点
当前提交
342f551bc9
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      cpu/ppc4xx/sdram.c

+ 5 - 0
cpu/ppc4xx/sdram.c

@@ -80,6 +80,11 @@ void sdram_init(void)
 		rtr = 0x05f00000;
 	}
 
+	/*
+	 * Disable memory controller.
+	 */
+	mtsdram0(mem_mcopt1, 0x00000000);
+
 	/*
 	 * Set MB0CF for bank 0. (0-128MB) Address Mode 3 since 13x10(4)
 	 */