summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-01-03 15:09:17 +0000
committerMichael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>2010-01-03 15:09:17 +0000
commit9678539b79729c714d5ac5c4bb1fc1dd9d728be4 (patch)
tree0028a0ab8e35882ccdb37595ccdf9fa144305fbd /chipset_enable.c
parentedc618860585bc3d1a63230becfe59a3e4c99c5b (diff)
downloadast2050-flashrom-9678539b79729c714d5ac5c4bb1fc1dd9d728be4.zip
ast2050-flashrom-9678539b79729c714d5ac5c4bb1fc1dd9d728be4.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>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r--chipset_enable.c4
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;
OpenPOWER on IntegriCloud