summaryrefslogtreecommitdiff
path: root/cpu/ppc4xx/sdram.c
diff options
context:
space:
mode:
authorroy zang <tie-fei.zang@freescale.com>2006-12-04 23:57:35 +0800
committerZang Tiefei <roy@bus.ap.freescale.net>2006-12-04 23:57:35 +0800
commitd3bb5ec198edad4869ac5276a5899881b7bf5433 (patch)
tree409a70e937d5f826df7929d11cb08a7cd207f5cd /cpu/ppc4xx/sdram.c
parent41862d13a87ec58c21166b10fcb754c963bc46f2 (diff)
parent9d27b3a0685ff99fc477983f315c04d49f657a8a (diff)
downloadu-boot-imx-d3bb5ec198edad4869ac5276a5899881b7bf5433.zip
u-boot-imx-d3bb5ec198edad4869ac5276a5899881b7bf5433.tar.gz
u-boot-imx-d3bb5ec198edad4869ac5276a5899881b7bf5433.tar.bz2
Merge /home/roy/CVS/7448/Open_Source/u-boot.git.dev
Diffstat (limited to 'cpu/ppc4xx/sdram.c')
-rw-r--r--cpu/ppc4xx/sdram.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu/ppc4xx/sdram.c b/cpu/ppc4xx/sdram.c
index faeea5c..f06038e 100644
--- a/cpu/ppc4xx/sdram.c
+++ b/cpu/ppc4xx/sdram.c
@@ -351,6 +351,14 @@ long int initdram(int board_type)
int i;
int tr1_bank1;
+#if defined(CONFIG_440GX) || defined(CONFIG_440EP) || defined(CONFIG_440GR) || defined(CONFIG_440SP)
+ /*
+ * Soft-reset SDRAM controller.
+ */
+ mtsdr(sdr_srst, SDR0_SRST_DMC);
+ mtsdr(sdr_srst, 0x00000000);
+#endif
+
for (i=0; i<N_MB0CF; i++) {
/*
* Disable memory controller.