Patchwork Fix i945 port

login
register
about
Submitter Stefan Reinauer
Date 2010-08-25 13:55:28
Message ID <4C7520D0.4010509@coresystems.de>
Download mbox | patch
Permalink /patch/1798/
State Accepted
Commit r5740
Headers show

Comments

Stefan Reinauer - 2010-08-25 13:55:28
See patch
Corey Osgood - 2010-08-25 17:45:34
2010/8/25 Stefan Reinauer <stefan.reinauer@coresystems.de>:
>  See patch
>
> --

Acked-by: Corey Osgood <corey.osgood@gmail.com>

Patch

Index: src/northbridge/intel/i945/raminit.c
===================================================================
--- src/northbridge/intel/i945/raminit.c	(revision 5739)
+++ src/northbridge/intel/i945/raminit.c	(working copy)
@@ -45,7 +45,7 @@ 
 #define RAM_EMRS_2			(0x1 << 21)
 #define RAM_EMRS_3			(0x2 << 21)
 
-static void do_ram_command(u32 command)
+static __attribute__((noinline)) void do_ram_command(u32 command)
 {
 	u32 reg32;
 
Index: src/mainboard/getac/p470/romstage.c
===================================================================
--- src/mainboard/getac/p470/romstage.c	(revision 5739)
+++ src/mainboard/getac/p470/romstage.c	(working copy)
@@ -308,9 +308,8 @@ 
 #if 0
 	/* Force PCIRST# */
 	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, SBR);
-	udelay(200);
+	udelay(200 * 1000);
 	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, 0);
-	udelay(200);
 #endif
 
 	ich7_enable_lpc();
Index: src/mainboard/kontron/986lcd-m/romstage.c
===================================================================
--- src/mainboard/kontron/986lcd-m/romstage.c	(revision 5739)
+++ src/mainboard/kontron/986lcd-m/romstage.c	(working copy)
@@ -366,14 +366,12 @@ 
 		enable_lapic();
 	}
 
-	ich7_enable_lpc();
-
 	/* Force PCIRST# */
 	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, SBR);
-	udelay(200);
+	udelay(200 * 1000);
 	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, 0);
-	udelay(200);
 
+	ich7_enable_lpc();
 	early_superio_config_w83627thg();
 
 	/* Set up the console */
Index: src/mainboard/roda/rk886ex/romstage.c
===================================================================
--- src/mainboard/roda/rk886ex/romstage.c	(revision 5739)
+++ src/mainboard/roda/rk886ex/romstage.c	(working copy)
@@ -279,11 +279,12 @@ 
 		enable_lapic();
 	}
 
-	ich7_enable_lpc();
-
 	/* Force PCIRST# */
 	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, SBR);
+	udelay(200 * 1000);
+	pci_write_config16(PCI_DEV(0, 0x1e, 0), BCTRL, 0);
 
+	ich7_enable_lpc();
 	early_superio_config();
 
 	/* Set up the console */