summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801ix/i82801ix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/i82801ix/i82801ix.c')
-rw-r--r--src/southbridge/intel/i82801ix/i82801ix.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/southbridge/intel/i82801ix/i82801ix.c b/src/southbridge/intel/i82801ix/i82801ix.c
index b2b55ce015..16d0520bf9 100644
--- a/src/southbridge/intel/i82801ix/i82801ix.c
+++ b/src/southbridge/intel/i82801ix/i82801ix.c
@@ -52,18 +52,14 @@ static void i82801ix_pcie_init(const config_t *const info)
if (LPC_IS_MOBILE(pcidev_on_root(0x1f, 0))) {
for (i = 0; i < 6; ++i) {
if (pciePort[i]->enabled) {
- reg32 = pci_read_config32(pciePort[i], 0xe8);
- reg32 |= 1;
- pci_write_config32(pciePort[i], 0xe8, reg32);
+ pci_or_config32(pciePort[i], 0xe8, 1);
}
}
}
for (i = 5; (i >= 0) && !pciePort[i]->enabled; --i) {
/* Only for the top disabled ports. */
- reg32 = pci_read_config32(pciePort[i], 0x300);
- reg32 |= 0x3 << 16;
- pci_write_config32(pciePort[i], 0x300, reg32);
+ pci_or_config32(pciePort[i], 0x300, 0x3 << 16);
}
/* Set slot implemented, slot number and slot power limits. */
@@ -90,8 +86,7 @@ static void i82801ix_pcie_init(const config_t *const info)
/* Lock R/WO ASPM support bits. */
for (i = 0; i < 6; ++i) {
- reg32 = pci_read_config32(pciePort[i], 0x4c);
- pci_write_config32(pciePort[i], 0x4c, reg32);
+ pci_update_config32(pciePort[i], 0x4c, ~0, 0);
}
}