[flashrom] [commit] r989 - trunk
repository service
svn at flashrom.org
Tue Mar 30 04:45:18 CEST 2010
Author: hailfinger
Date: Tue Mar 30 04:45:18 2010
New Revision: 989
URL: http://flashrom.org/trac/coreboot/changeset/989
Log:
Add ITE IT8720 SPI support.
Original patch by Vadim Girlin.
Message printing updated by Carl-Daniel Hailfinger.
Signed-off-by: Vadim Girlin <vadimgirlin at gmail.com>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>
Modified:
trunk/it87spi.c
Modified: trunk/it87spi.c
==============================================================================
--- trunk/it87spi.c Sun Mar 28 00:25:14 2010 (r988)
+++ trunk/it87spi.c Tue Mar 30 04:45:18 2010 (r989)
@@ -103,6 +103,7 @@
switch (id) {
case 0x8716:
case 0x8718:
+ case 0x8720:
enter_conf_mode_ite(port);
/* NOLDN, reg 0x24, mask out lowest bit (suspend) */
tmp = sio_read(port, 0x24) & 0xFE;
@@ -159,7 +160,7 @@
break;
/* TODO: Handle more IT87xx if they support flash translation */
default:
- msg_pinfo("SuperI/O ID %04hx is not on the controller list.\n", id);
+ msg_pdbg("SuperI/O ID %04hx is not on the controller list.\n", id);
}
return flashport;
}
@@ -199,8 +200,11 @@
int ret;
ret = it87spi_common_init();
- if (!ret)
+ if (!ret) {
+ if (buses_supported & CHIP_BUSTYPE_SPI)
+ msg_pdbg("Overriding chipset SPI with IT87 SPI.\n");
buses_supported |= CHIP_BUSTYPE_SPI;
+ }
return ret;
}
More information about the flashrom
mailing list