[coreboot] [PATCH] flashrom: force-enable LPC-to-SPI write cycle translation for IT8716F
Carl-Daniel Hailfinger
c-d.hailfinger.devel.2006 at gmx.net
Thu May 15 16:39:59 CEST 2008
Force-enable LPC write cycle to SPI write cycle translation
for IT8716F.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Index: flashrom-ron/it87spi.c
===================================================================
--- flashrom-ron/it87spi.c (Revision 3321)
+++ flashrom-ron/it87spi.c (Arbeitskopie)
@@ -93,6 +93,11 @@
0xFFF80000, 0xFFFEFFFF, (tmp & 1 << 3) ? "en" : "dis");
printf("LPC write to serial flash %sabled\n",
(tmp & 1 << 4) ? "en" : "dis");
+ if (!(tmp & 1 << 4)) {
+ printf("Force 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