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>
This commit is contained in:
parent
19d1c16c32
commit
4d70daf305
1 changed files with 2 additions and 4 deletions
|
@ -126,10 +126,8 @@ static void lpc_read_resources(struct device *dev)
|
||||||
/* Add a memory resource for the eSPI MMIO */
|
/* Add a memory resource for the eSPI MMIO */
|
||||||
mmio_range(dev, 3, SPI_BASE_ADDRESS + ESPI_OFFSET_FROM_BAR, 4 * KiB);
|
mmio_range(dev, 3, SPI_BASE_ADDRESS + ESPI_OFFSET_FROM_BAR, 4 * KiB);
|
||||||
|
|
||||||
res = new_resource(dev, 4); /* IOAPIC */
|
/* FCH IOAPIC */
|
||||||
res->base = IO_APIC_ADDR;
|
mmio_range(dev, 4, IO_APIC_ADDR, 4 * KiB);
|
||||||
res->size = 0x00001000;
|
|
||||||
res->flags = IORESOURCE_MEM | IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
|
||||||
|
|
||||||
compact_resources(dev);
|
compact_resources(dev);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue