summaryrefslogtreecommitdiff
path: root/util/flashrom/chipset_enable.c
diff options
context:
space:
mode:
authorFENG yu ning <fengyuning1984@gmail.com>2008-12-08 18:16:58 +0000
committerStefan Reinauer <stepan@openbios.org>2008-12-08 18:16:58 +0000
commit8a07f703ec89d5be98d7e47c49264a3b8184d956 (patch)
tree1dcae17f6f0ea946003e5c62e1c7264b3562f689 /util/flashrom/chipset_enable.c
parent60e7eebf96e6d53913b44b95cf83fa03c33e48c7 (diff)
downloadcoreboot-8a07f703ec89d5be98d7e47c49264a3b8184d956.tar.xz
Generates OPCODES struct from the ICH7/ICH9/VIA chipset if its SPI
configuration is locked down. Signed-off-by: FENG yu ning <fengyuning1984@gmail.com> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3805 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/chipset_enable.c')
-rw-r--r--util/flashrom/chipset_enable.c3
1 files changed, 3 insertions, 0 deletions
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: