From f041e9b5865c9b5544905d163b47d2387732c634 Mon Sep 17 00:00:00 2001 From: FENG yu ning Date: Mon, 15 Dec 2008 02:32:11 +0000 Subject: Various ichspi.c refinements * add a generic preop-opcode-pair table. * rename ich_check_opcodes to ich_init_opcodes. * let ich_init_opcodes do not need to access flashchip structure: . move the definition of struct preop_opcode_pair to a better place . remove preop_opcode_pairs from 'struct flashchip' . modify ich_init_opcodes and generate_opcodes so that they do not access the flashchip structure * call ich_init_opcodes during chipset enable. Now OPCODES generation mechanism works. * fix a coding style mistake. Corresponding to flashrom svn r367 and coreboot v2 svn r3814. Signed-off-by: FENG yu ning Acked-by: Peter Stuge --- chipset_enable.c | 1 + 1 file changed, 1 insertion(+) (limited to 'chipset_enable.c') diff --git a/chipset_enable.c b/chipset_enable.c index d2ae212..b5af401 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -339,6 +339,7 @@ static int enable_flash_ich_dc_spi(struct pci_dev *dev, const char *name, printf("WARNING: SPI Configuration Lockdown activated.\n"); ichspi_lock = 1; } + ich_init_opcodes(); break; case BUS_TYPE_ICH9_SPI: tmp2 = *(uint16_t *) (spibar + 0); -- cgit v1.1