diff options
author | FENG yu ning <fengyuning1984@gmail.com> | 2008-12-08 18:16:58 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@coresystems.de> | 2008-12-08 18:16:58 +0000 |
commit | 25c14ed9aced2e7dabbd18d8bb27d5ab24d1149d (patch) | |
tree | ad6db2e33101079d2b713bef06666b5e8e937eec /chipset_enable.c | |
parent | 3b5d740766f90e90fdd0fe32aef88f03198c9e6d (diff) | |
download | flashrom-25c14ed9aced2e7dabbd18d8bb27d5ab24d1149d.zip flashrom-25c14ed9aced2e7dabbd18d8bb27d5ab24d1149d.tar.gz |
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 01abf10..d2ae212 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: |