From 6315349202ead02aec4774f6ede5d2ae490eae63 Mon Sep 17 00:00:00 2001 From: wdenk Date: Sun, 3 Apr 2005 20:55:38 +0000 Subject: Patch by David Adair, 27 Oct 2004: Add missing 440GX SDRAM Controller reset --- cpu/ppc4xx/spd_sdram.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cpu') diff --git a/cpu/ppc4xx/spd_sdram.c b/cpu/ppc4xx/spd_sdram.c index 418b9da3b34..44e826fbe9b 100644 --- a/cpu/ppc4xx/spd_sdram.c +++ b/cpu/ppc4xx/spd_sdram.c @@ -772,6 +772,14 @@ long int spd_sdram(void) { */ check_volt_type(dimm_populated, iic0_dimm_addr, num_dimm_banks); +#if defined(CONFIG_440_GX) + /* + * Soft-reset SDRAM controller. + */ + mtsdr(sdr_srst, SDR0_SRST_DMC); + mtsdr(sdr_srst, 0x00000000); +#endif + /* * program 440GP SDRAM controller options (SDRAM0_CFG0) */ -- cgit v1.3.1