]> git.sur5r.net Git - u-boot/blobdiff - board/amcc/sequoia/sdram.c
Change initdram() return type to phys_size_t
[u-boot] / board / amcc / sequoia / sdram.c
index 5e93f6c7a090e3880bf980112043a234c03589bd..77e6c7b4d1297d7185461d22b3d6d1a18082fcbe 100644 (file)
@@ -52,7 +52,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)
@@ -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);
 }