[flashrom] [patch] move ich_init_opcodes() call back to where it was before r1461
Jonathan A. Kollasch
jakllsch at kollasch.net
Sun Nov 13 00:43:40 CET 2011
ich_init_opcodes() needs to be called after ichspi_lock is set.
Signed-off-by: Jonathan A. Kollasch <jakllsch at kollasch.net>
-------------- next part --------------
Index: ichspi.c
===================================================================
--- ichspi.c (revision 1463)
+++ ichspi.c (working copy)
@@ -1562,8 +1562,6 @@
/* Assign Virtual Address */
ich_spibar = rcrb + spibar_offset;
- ich_init_opcodes();
-
switch (ich_generation) {
case CHIPSET_ICH7:
msg_pdbg("0x00: 0x%04x (SPIS)\n",
@@ -1603,6 +1601,7 @@
}
ich_set_bbar(0);
register_spi_programmer(&spi_programmer_ich7);
+ ich_init_opcodes();
break;
case CHIPSET_ICH8:
default: /* Future version might behave the same */
@@ -1754,6 +1753,7 @@
register_opaque_programmer(&opaque_programmer_ich_hwseq);
} else {
register_spi_programmer(&spi_programmer_ich9);
+ ich_init_opcodes();
}
break;
}
More information about the flashrom
mailing list