summaryrefslogtreecommitdiff
path: root/src/southbridge
diff options
context:
space:
mode:
authorJonathan A. Kollasch <jakllsch@kollasch.net>2013-10-11 16:09:37 -0500
committerKyösti Mälkki <kyosti.malkki@gmail.com>2013-10-13 18:13:56 +0200
commit772d026076d7c19755aa9dcc592a372e3c5ba980 (patch)
tree9f3d246fa235e9047ae87cd7853ccc7c88849fcb /src/southbridge
parentfd4f4136e8b6dd6f743b2a3bfd02c735b6b25131 (diff)
downloadcoreboot-772d026076d7c19755aa9dcc592a372e3c5ba980.tar.xz
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>
Diffstat (limited to 'src/southbridge')
-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, "");
}