mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-29 07:53:44 +02:00
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>
This commit is contained in:
parent
edc6188605
commit
9678539b79
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user