ppx4xx: Fix sdram init on PMC440 boards
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>
Fri, 11 Jan 2008 13:55:08 +0000 (14:55 +0100)
committerStefan Roese <sr@denx.de>
Fri, 11 Jan 2008 14:44:27 +0000 (15:44 +0100)
Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
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);
 }