From: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Date: Fri, 11 Jan 2008 13:55:08 +0000 (+0100)
Subject: ppx4xx: Fix sdram init on PMC440 boards
X-Git-Tag: v2025.01-rc5-pxa1908~22626^2~30^2~3
X-Git-Url: http://git.dujemihanovic.xyz/%22http:/www.sics.se/static/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=e3edcb36f14f0aabb6f50e96014d6877f73d64ea;p=u-boot.git

ppx4xx: Fix sdram init on PMC440 boards

Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
---

diff --git a/board/esd/pmc440/sdram.c b/board/esd/pmc440/sdram.c
index 7f92d37727..624c45791f 100644
--- a/board/esd/pmc440/sdram.c
+++ b/board/esd/pmc440/sdram.c
@@ -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);
 }