From 8a07f703ec89d5be98d7e47c49264a3b8184d956 Mon Sep 17 00:00:00 2001 From: FENG yu ning Date: Mon, 8 Dec 2008 18:16:58 +0000 Subject: Generates OPCODES struct from the ICH7/ICH9/VIA chipset if its SPI configuration is locked down. Signed-off-by: FENG yu ning Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3805 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/chipset_enable.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'util/flashrom/chipset_enable.c') diff --git a/util/flashrom/chipset_enable.c b/util/flashrom/chipset_enable.c index 01abf1090f..d2ae21279a 100644 --- a/util/flashrom/chipset_enable.c +++ b/util/flashrom/chipset_enable.c @@ -47,6 +47,8 @@ unsigned long flashbase = 0; flashbus_t flashbus = BUS_TYPE_LPC; void *spibar = NULL; +extern int ichspi_lock; + static int enable_flash_ali_m1533(struct pci_dev *dev, const char *name) { uint8_t tmp; @@ -335,6 +337,7 @@ static int enable_flash_ich_dc_spi(struct pci_dev *dev, const char *name, printf_debug("\n"); if ((*(uint16_t *) spibar) & (1 << 15)) { printf("WARNING: SPI Configuration Lockdown activated.\n"); + ichspi_lock = 1; } break; case BUS_TYPE_ICH9_SPI: -- cgit v1.2.3