From ab8ff84402e97d544b519ec17a2ee184651b8af6 Mon Sep 17 00:00:00 2001 From: Greg Watson Date: Sat, 5 Jun 2004 14:54:46 +0000 Subject: Add extra phase before memory init. Rename sdram_init to memory_init NOTE: need to test sandpoint and ep boards! git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1603 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/northbridge/ibm/cpc710/cpc710.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/northbridge/ibm/cpc710/cpc710.c') diff --git a/src/northbridge/ibm/cpc710/cpc710.c b/src/northbridge/ibm/cpc710/cpc710.c index 121ecef690..8821850281 100644 --- a/src/northbridge/ibm/cpc710/cpc710.c +++ b/src/northbridge/ibm/cpc710/cpc710.c @@ -10,6 +10,7 @@ CPC710_MCCR_FIXED_BITS void cpc710_init(void); +void sdram_init(void); extern void cpc710_pci_init(void); void @@ -25,17 +26,16 @@ getCPC710(uint32_t addr) } void -sdram_init(void) +memory_init(void) { cpc710_init(); + sdram_init(); cpc710_pci_init(); } void cpc710_init(void) { - uint32_t mccr; - setCPC710(CPC710_CPC0_RSTR, 0xf0000000); (void)getCPC710(CPC710_CPC0_MPSR); setCPC710(CPC710_CPC0_SIOC0, 0x00000000); @@ -55,6 +55,12 @@ cpc710_init(void) setCPC710(CPC710_SDRAM0_MEAR, 0x00000000); setCPC710(CPC710_SDRAM0_MWPR, 0x00000000); setCPC710(CPC710_CPC0_RGBAN1, 0x00000000); +} + +void +sdram_init() +{ + uint32_t mccr; /* * Reset memory configuration -- cgit v1.2.3