瀏覽代碼

ppc4xx: Fix sdram init on Sequoia boards

Clear possible errors in MCSR resulting from data-eye-search.
If not done, then we could get an interrupt later on when
exceptions are enabled.

Signed-off-by: Stefan Roese <sr@denx.de>
Stefan Roese 17 年之前
父節點
當前提交
d5a163d6ba
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      board/amcc/sequoia/sdram.c

+ 7 - 0
board/amcc/sequoia/sdram.c

@@ -106,5 +106,12 @@ long int initdram (int board_type)
 	denali_core_search_data_eye();
 #endif
 
+	/*
+	 * Clear possible errors resulting from data-eye-search.
+	 * If not done, then we could get an interrupt later on when
+	 * exceptions are enabled.
+	 */
+	set_mcsr(get_mcsr());
+
 	return (CFG_MBYTES_SDRAM << 20);
 }