[coreboot] r3668 - trunk/util/flashrom

svn at coreboot.org svn at coreboot.org
Sat Oct 18 15:54:31 CEST 2008


Author: stuge
Date: 2008-10-18 15:54:30 +0200 (Sat, 18 Oct 2008)
New Revision: 3668

Modified:
   trunk/util/flashrom/chipset_enable.c
Log:
flashrom: Allow the SiS 620 chipset to detect and read at least 256kb chips.

Based on the 5595 datasheet and uniflash 1.40 sources, only looking for info
about SiS620.

Signed-off-by: Urja Rannikko <urjaman at gmail.com>
Acked-by: Peter Stuge <peter at stuge.se>


Modified: trunk/util/flashrom/chipset_enable.c
===================================================================
--- trunk/util/flashrom/chipset_enable.c	2008-10-17 14:17:05 UTC (rev 3667)
+++ trunk/util/flashrom/chipset_enable.c	2008-10-18 13:54:30 UTC (rev 3668)
@@ -540,6 +540,17 @@
 		return -1;
 	}
 
+	/* Extended BIOS enable = 1, Lower BIOS Enable = 1 */
+	new = pci_read_byte(dev,0x40);
+	new &= 0xFB;
+	new |= 0x3;
+	pci_write_byte(dev,0x40,new);
+	newer = pci_read_byte(dev,0x40);
+	if (newer != new) {
+		printf("tried to set register 0x%x to 0x%x on %s failed (WARNING ONLY)\n", 0x40, new, name);
+		printf("Stuck at 0x%x\n", newer);
+		return -1;
+	}
 	return 0;
 }
 





More information about the coreboot mailing list