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 | 9678539b79729c714d5ac5c4bb1fc1dd9d728be4 (patch) | |
tree | 0028a0ab8e35882ccdb37595ccdf9fa144305fbd | |
parent | edc618860585bc3d1a63230becfe59a3e4c99c5b (diff) | |
download | flashrom-9678539b79729c714d5ac5c4bb1fc1dd9d728be4.tar.gz flashrom-9678539b79729c714d5ac5c4bb1fc1dd9d728be4.tar.bz2 flashrom-9678539b79729c714d5ac5c4bb1fc1dd9d728be4.zip |
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 ad0e645d..6a0fc4ff 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; |