diff options
author | FENG yu ning <fengyuning1984@gmail.com> | 2008-12-08 18:16:58 +0000 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2008-12-08 18:16:58 +0000 |
commit | c05a295dc33b273d16c2d289ffd95ba688727511 (patch) | |
tree | ad6db2e33101079d2b713bef06666b5e8e937eec /chipset_enable.c | |
parent | ff692fb56777cbbf04e5c4858029340003190f5f (diff) | |
download | flashrom-c05a295dc33b273d16c2d289ffd95ba688727511.tar.gz flashrom-c05a295dc33b273d16c2d289ffd95ba688727511.tar.bz2 flashrom-c05a295dc33b273d16c2d289ffd95ba688727511.zip |
Generates OPCODES struct from the ICH7/ICH9/VIA chipset if its SPI configuration is locked down
Corresponding to flashrom svn r364 and coreboot v2 svn r3805.
Signed-off-by: FENG yu ning <fengyuning1984@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r-- | chipset_enable.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index 01abf109..d2ae2127 100644 --- a/chipset_enable.c +++ b/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: |