soc,sb/amd: Change SPI controller resource
This replaces IORESOURCE_SUBTRACTIVE with IORESOURCE_RESERVE. Change-Id: Ib3d934ca704273daacbeb3c52412bf04e2be7217 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/64695 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
933a44b80d
commit
8b894242e7
|
@ -117,8 +117,7 @@ static void lpc_read_resources(struct device *dev)
|
||||||
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
||||||
|
|
||||||
/* Add a memory resource for the SPI BAR. */
|
/* Add a memory resource for the SPI BAR. */
|
||||||
fixed_mem_resource_kb(dev, 2, SPI_BASE_ADDRESS / KiB, 1,
|
mmio_range(dev, 2, SPI_BASE_ADDRESS, 1 * KiB);
|
||||||
IORESOURCE_SUBTRACTIVE);
|
|
||||||
|
|
||||||
res = new_resource(dev, 3); /* IOAPIC */
|
res = new_resource(dev, 3); /* IOAPIC */
|
||||||
res->base = IO_APIC_ADDR;
|
res->base = IO_APIC_ADDR;
|
||||||
|
|
|
@ -95,7 +95,7 @@ static void hudson_lpc_read_resources(struct device *dev)
|
||||||
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
||||||
|
|
||||||
/* Add a memory resource for the SPI BAR. */
|
/* Add a memory resource for the SPI BAR. */
|
||||||
fixed_mem_resource_kb(dev, 2, SPI_BASE_ADDRESS / 1024, 1, IORESOURCE_SUBTRACTIVE);
|
mmio_range(dev, 2, SPI_BASE_ADDRESS, 1 * KiB);
|
||||||
|
|
||||||
res = new_resource(dev, 3); /* IOAPIC */
|
res = new_resource(dev, 3); /* IOAPIC */
|
||||||
res->base = IO_APIC_ADDR;
|
res->base = IO_APIC_ADDR;
|
||||||
|
|
|
@ -29,7 +29,7 @@ void lpc_read_resources(struct device *dev)
|
||||||
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
||||||
|
|
||||||
/* Add a memory resource for the SPI BAR. */
|
/* Add a memory resource for the SPI BAR. */
|
||||||
fixed_mem_resource_kb(dev, 2, SPI_BASE_ADDRESS / 1024, 1, IORESOURCE_SUBTRACTIVE);
|
mmio_range(dev, 2, SPI_BASE_ADDRESS, 1 * KiB);
|
||||||
|
|
||||||
res = new_resource(dev, 3);
|
res = new_resource(dev, 3);
|
||||||
res->base = IO_APIC_ADDR;
|
res->base = IO_APIC_ADDR;
|
||||||
|
|
|
@ -103,7 +103,7 @@ static void hudson_lpc_read_resources(struct device *dev)
|
||||||
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
IORESOURCE_ASSIGNED | IORESOURCE_FIXED;
|
||||||
|
|
||||||
/* Add a memory resource for the SPI BAR. */
|
/* Add a memory resource for the SPI BAR. */
|
||||||
fixed_mem_resource_kb(dev, 2, SPI_BASE_ADDRESS / 1024, 1, IORESOURCE_SUBTRACTIVE);
|
mmio_range(dev, 2, SPI_BASE_ADDRESS, 1 * KiB);
|
||||||
|
|
||||||
res = new_resource(dev, 3); /* IOAPIC */
|
res = new_resource(dev, 3); /* IOAPIC */
|
||||||
res->base = IO_APIC_ADDR;
|
res->base = IO_APIC_ADDR;
|
||||||
|
|
Loading…
Reference in New Issue