1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 06:01:16 +02:00

ichspi: Fix software sequencing for Skylake

Two occurences of ICH9_REG_OPMENU were overlooked and not replaced,
rendering the software sequencing unusable on Skylake.

Change-Id: I16eebcf37ab8ba39b02f33135535552e380b0b92
Signed-off-by: Nico Huber <nico.huber@secunet.com>
Reviewed-on: https://review.coreboot.org/22273
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Nico Huber
2017-08-31 13:18:49 +02:00
committed by Nico Huber
parent f268d8b2d6
commit 8b2152d54a

View File

@ -983,8 +983,8 @@ static int ich9_run_opcode(OPCODE op, uint32_t offset,
} }
/* Select opcode */ /* Select opcode */
opmenu = REGREAD32(ICH9_REG_OPMENU); opmenu = REGREAD32(swseq_data.reg_opmenu);
opmenu |= ((uint64_t)REGREAD32(ICH9_REG_OPMENU + 4)) << 32; opmenu |= ((uint64_t)REGREAD32(swseq_data.reg_opmenu + 4)) << 32;
for (opcode_index = 0; opcode_index < 8; opcode_index++) { for (opcode_index = 0; opcode_index < 8; opcode_index++) {
if ((opmenu & 0xff) == op.opcode) { if ((opmenu & 0xff) == op.opcode) {