Преглед на файлове

ppx4xx: Fix sdram init on PMC440 boards

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Matthias Fuchs преди 17 години
родител
ревизия
e3edcb36f1
променени са 1 файла, в които са добавени 7 реда и са изтрити 0 реда
  1. 7 0
      board/esd/pmc440/sdram.c

+ 7 - 0
board/esd/pmc440/sdram.c

@@ -104,5 +104,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);
 }