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:
parent
fd4f4136e8
commit
772d026076
|
@ -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, "");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue