summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-04-29 02:04:07 +0200
committerMatt DeVillier <matt.devillier@amd.corp-partner.google.com>2023-05-03 16:16:57 +0000
commit4d70daf30511aca27b8939daced1f2d6c727fa57 (patch)
tree0a944628d994118337eb4db99272b1d80fecbb3f /src/soc/amd
parent19d1c16c326a274e732526621d07516f6d6ca6db (diff)
soc/amd/common/block/lpc/lpc: use mmio_range to report FCH IOAPIC MMIO
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I813a27e392a842188dc474018f82e10309783260 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74846 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/common/block/lpc/lpc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/soc/amd/common/block/lpc/lpc.c b/src/soc/amd/common/block/lpc/lpc.c
index edc74762b2..43b3791fa5 100644
--- a/src/soc/amd/common/block/lpc/lpc.c
+++ b/src/soc/amd/common/block/lpc/lpc.c
@@ -126,10 +126,8 @@ static void lpc_read_resources(struct device *dev)
/* Add a memory resource for the eSPI MMIO */
mmio_range(dev, 3, SPI_BASE_ADDRESS + ESPI_OFFSET_FROM_BAR, 4 * KiB);
- res = new_resource(dev, 4); /* IOAPIC */
- res->base = IO_APIC_ADDR;
- res->size = 0x00001000;
- res->flags = IORESOURCE_MEM | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
+ /* FCH IOAPIC */
+ mmio_range(dev, 4, IO_APIC_ADDR, 4 * KiB);
compact_resources(dev);
}