From: Stefan Roese Date: Fri, 11 Jan 2008 14:53:58 +0000 (+0100) Subject: ppc4xx: Fix sdram init on Sequoia boards X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d5a163d6baa04f5a8edcc10ebc6fad08657d3093;p=project%2Fbcm63xx%2Fu-boot.git ppc4xx: Fix sdram init on Sequoia boards Clear possible errors in MCSR resulting from data-eye-search. If not done, then we could get an interrupt later on when exceptions are enabled. Signed-off-by: Stefan Roese --- diff --git a/board/amcc/sequoia/sdram.c b/board/amcc/sequoia/sdram.c index 5e93f6c7a0..b43ec48091 100644 --- a/board/amcc/sequoia/sdram.c +++ b/board/amcc/sequoia/sdram.c @@ -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); }