diff options
author | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-01-03 15:09:17 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-01-03 15:09:17 +0000 |
commit | 44386e2a2c64d4f032dbba1b73e4ca3dce846aaa (patch) | |
tree | 0028a0ab8e35882ccdb37595ccdf9fa144305fbd | |
parent | c42a142b5a136977ea0755dc9a6623f7e8e22b45 (diff) | |
download | flashrom-44386e2a2c64d4f032dbba1b73e4ca3dce846aaa.zip flashrom-44386e2a2c64d4f032dbba1b73e4ca3dce846aaa.tar.gz |
Fix Intel FWH decode size
Fixes wrong detection of area decoded to the FWH interfaces.
Corresponding to flashrom svn r826.
Signed-off-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
-rw-r--r-- | chipset_enable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chipset_enable.c b/chipset_enable.c index ad0e645..6a0fc4f 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -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; |