Merge branch 'master' of /home/wd/git/u-boot/lwmon5
[oweals/u-boot.git] / board / esd / pmc440 / sdram.c
index 7f92d37727e8d07c32adbcb36ec6c1d8ad66eb32..624c45791fa41f6823371baae65a161fb97a7569 100644 (file)
@@ -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);
 }