summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/southbridge/nvidia/ck804/lpc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/southbridge/nvidia/ck804/lpc.c b/src/southbridge/nvidia/ck804/lpc.c
index 1f49000094..d132803b84 100644
--- a/src/southbridge/nvidia/ck804/lpc.c
+++ b/src/southbridge/nvidia/ck804/lpc.c
@@ -202,7 +202,7 @@ static void ck804_lpc_read_resources(device_t dev)
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
if (dev->device != PCI_DEVICE_ID_NVIDIA_CK804_SLAVE) {
- res = find_resource(dev, 0x14); /* IOAPIC */
+ res = find_resource(dev, PCI_BASE_ADDRESS_1); /* IOAPIC */
if (res) {
res->base = IO_APIC_ADDR;
res->flags |= IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
@@ -223,9 +223,9 @@ static void ck804_lpc_set_resources(device_t dev)
pci_dev_set_resources(dev);
/* APIC */
- res = find_resource(dev, 0x14);
+ res = find_resource(dev, PCI_BASE_ADDRESS_1);
if (res) {
- pci_write_config32(dev, 0x14, res->base);
+ pci_write_config32(dev, PCI_BASE_ADDRESS_1, res->base);
res->flags |= IORESOURCE_STORED;
report_resource_stored(dev, res, "");
}