DescriptionRevert MMIO space writes on shutdown as needed.
Basically this patch comes from http://patchwork.coreboot.org/patch/2331/
But fixed 2 bugs in original patch:
program_opcodes(): should be rmmio_write"l"(..., ICH7_REG_OPMENU)
undo_mmio_write():
case mmio_write_type_w:
mmio_write"w"(data->wdata, data->addr);
case mmio_write_type_l:
mmio_write"l"(data->ldata, data->addr);
Also add BBS register revert.
Change-Id: I28dfa5b4b970a4c28ddbd5e103e2cefadb4c2ab7
BUG=chromium-os:9586
TEST=Tested on Mario:
flashrom -V > 1
flashrom -V -p internal:bus=lpc > 2
flashrom -V > 3
flashrom -V -p internal:bus=spi > 4
flashrom -V > 5
grep Found 1 2 3 4 5
W25Q32 # bus=spi
W24X40 # bus=lpc
W25Q32 # bus=spi
W25Q32 # bus=spi
W25Q32 # bus=spi
Above results prove that the BBS register is restored (in step 2) and no side-effect.
Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=e6e628f
Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=cd93c97
Patch Set 1 #Patch Set 2 : re-send to notice reviewer #
Total comments: 3
Patch Set 3 : remove meaningless comments #
Messages
Total messages: 6 (0 generated)
|