From 772d026076d7c19755aa9dcc592a372e3c5ba980 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Kollasch" Date: Fri, 11 Oct 2013 16:09:37 -0500 Subject: ck804 lpc: use PCI_BASE_ADDRESS_1 instead of 0x14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I752a4a890e1f610651a2c688cf42350ce8e9deaa Signed-off-by: Jonathan A. Kollasch Reviewed-on: http://review.coreboot.org/3962 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Kyösti Mälkki --- src/southbridge/nvidia/ck804/lpc.c | 6 +++--- 1 file 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, ""); } -- cgit v1.2.3