ck804 lpc: use PCI_BASE_ADDRESS_1 instead of 0x14

Change-Id: I752a4a890e1f610651a2c688cf42350ce8e9deaa
Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Reviewed-on: http://review.coreboot.org/3962
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
This commit is contained in:
Jonathan A. Kollasch 2013-10-11 16:09:37 -05:00 committed by Kyösti Mälkki
parent fd4f4136e8
commit 772d026076
1 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ static void ck804_lpc_read_resources(device_t dev)
IORESOURCE_ASSIGNED | IORESOURCE_FIXED; IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
if (dev->device != PCI_DEVICE_ID_NVIDIA_CK804_SLAVE) { 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) { if (res) {
res->base = IO_APIC_ADDR; res->base = IO_APIC_ADDR;
res->flags |= IORESOURCE_ASSIGNED | IORESOURCE_FIXED; res->flags |= IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
@ -223,9 +223,9 @@ static void ck804_lpc_set_resources(device_t dev)
pci_dev_set_resources(dev); pci_dev_set_resources(dev);
/* APIC */ /* APIC */
res = find_resource(dev, 0x14); res = find_resource(dev, PCI_BASE_ADDRESS_1);
if (res) { if (res) {
pci_write_config32(dev, 0x14, res->base); pci_write_config32(dev, PCI_BASE_ADDRESS_1, res->base);
res->flags |= IORESOURCE_STORED; res->flags |= IORESOURCE_STORED;
report_resource_stored(dev, res, ""); report_resource_stored(dev, res, "");
} }