aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstroese <stroese>2003-09-12 08:49:58 +0000
committerstroese <stroese>2003-09-12 08:49:58 +0000
commit342f551bc9c6f8ba7242af4be1fd8045b8710980 (patch)
tree8b9f57b50f63031adfe9e1f1fb8359786be35831
parentef9e86854e5c60d7db523d25c822985a4319d8b6 (diff)
downloadu-boot-linaro-stable-342f551bc9c6f8ba7242af4be1fd8045b8710980.tar.gz
Disable memory controller before setting first values.
-rw-r--r--cpu/ppc4xx/sdram.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpu/ppc4xx/sdram.c b/cpu/ppc4xx/sdram.c
index d4552a161..7c931f039 100644
--- a/cpu/ppc4xx/sdram.c
+++ b/cpu/ppc4xx/sdram.c
@@ -81,6 +81,11 @@ void sdram_init(void)
}
/*
+ * Disable memory controller.
+ */
+ mtsdram0(mem_mcopt1, 0x00000000);
+
+ /*
* Set MB0CF for bank 0. (0-128MB) Address Mode 3 since 13x10(4)
*/
mtsdram0(mem_mb0cf, 0x000A4001);