Commit 9678539b authored by Michael Karcher's avatar Michael Karcher
Browse files

Fix Intel FWH decode size


Fixes wrong detection of area decoded to the FWH interfaces.

Corresponding to flashrom svn r826.
Signed-off-by: default avatarMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: default avatarCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
parent edc61886
......@@ -364,7 +364,7 @@ static int enable_flash_ich_dc(struct pci_dev *dev, const char *name)
(0x1ff8 + i) * 0x80000,
(0x1ff0 + i) * 0x80000,
tmp ? "en" : "dis");
if ((tmp == 0) && contiguous) {
if ((tmp == 1) && contiguous) {
max_decode_fwh_decode = (8 - i) * 0x80000;
} else {
contiguous = 0;
......@@ -376,7 +376,7 @@ static int enable_flash_ich_dc(struct pci_dev *dev, const char *name)
(0xff4 + i) * 0x100000,
(0xff0 + i) * 0x100000,
tmp ? "en" : "dis");
if ((tmp == 0) && contiguous) {
if ((tmp == 1) && contiguous) {
max_decode_fwh_decode = (8 - i) * 0x100000;
} else {
contiguous = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment