[coreboot] r3324 - trunk/util/flashrom

svn at coreboot.org svn at coreboot.org
Fri May 16 02:19:52 CEST 2008


Author: hailfinger
Date: 2008-05-16 02:19:52 +0200 (Fri, 16 May 2008)
New Revision: 3324

Modified:
   trunk/util/flashrom/it87spi.c
Log:
Enable IT8716F LPC-to-SPI write cycle translation in flashrom if the
IT8716F decodes any address to the attached SPI ROM.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Peter Stuge <peter at stuge.se>


Modified: trunk/util/flashrom/it87spi.c
===================================================================
--- trunk/util/flashrom/it87spi.c	2008-05-15 22:32:08 UTC (rev 3323)
+++ trunk/util/flashrom/it87spi.c	2008-05-16 00:19:52 UTC (rev 3324)
@@ -93,6 +93,12 @@
 			0xFFF80000, 0xFFFEFFFF, (tmp & 1 << 3) ? "en" : "dis");
 		printf("LPC write to serial flash %sabled\n",
 			(tmp & 1 << 4) ? "en" : "dis");
+		/* If any serial flash segment is enabled, enable writing. */
+		if ((tmp & 0xe) && (!(tmp & 1 << 4))) {
+			printf("Enabling LPC write to serial flash\n");
+			tmp |= 1 << 4;
+			regwrite(port, 0x24, tmp);
+		}
 		printf("serial flash pin %i\n", (tmp & 1 << 5) ? 87 : 29);
 		/* LDN 0x7, reg 0x64/0x65 */
 		regwrite(port, 0x07, 0x7);





More information about the coreboot mailing list