diff options
author | Stefan Roese <sr@denx.de> | 2008-01-11 15:53:58 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2008-01-11 15:53:58 +0100 |
commit | d5a163d6baa04f5a8edcc10ebc6fad08657d3093 (patch) | |
tree | be401e9386c3b52dceeca29a756cf85332462167 /board | |
parent | d610a60730b7464f6f659db49d264d89a7c71061 (diff) | |
download | u-boot-d5a163d6baa04f5a8edcc10ebc6fad08657d3093.tar.gz u-boot-d5a163d6baa04f5a8edcc10ebc6fad08657d3093.tar.xz u-boot-d5a163d6baa04f5a8edcc10ebc6fad08657d3093.zip |
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 <sr@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/amcc/sequoia/sdram.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |