]> git.sur5r.net Git - u-boot/blobdiff - board/esd/pmc440/sdram.c
Merge branch 'master' of git://git.denx.de/u-boot-nand-flash
[u-boot] / board / esd / pmc440 / sdram.c
index 7f92d37727e8d07c32adbcb36ec6c1d8ad66eb32..c7294c994598649797ab04fe2644a35f006bf50e 100644 (file)
@@ -50,7 +50,7 @@ extern void denali_core_search_data_eye(void);
  * initdram -- 440EPx's DDR controller is a DENALI Core
  *
  ************************************************************************/
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
 #if !defined(CONFIG_NAND_U_BOOT) || defined(CONFIG_NAND_SPL)
 #if !defined(CONFIG_NAND_SPL)
@@ -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);
 }