mirror of
https://review.coreboot.org/flashrom.git
synced 2025-08-16 11:54:41 +02:00
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>
This commit is contained in:

committed by
Stefan Reinauer

parent
ff692fb567
commit
c05a295dc3
@@ -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:
|
||||
|
Reference in New Issue
Block a user