soc/intel/apl: Use newer function for resource declarations

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I5728dc144b0d04a92a1e0a4b9abbe17ef0a06e41
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76282
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans
2023-07-05 11:45:54 +02:00
committed by Kyösti Mälkki
parent 32867e77f1
commit 899acf19bf

View File

@@ -32,15 +32,11 @@ void soc_add_fixed_mmio_resources(struct device *dev, int *index)
return;
if (MCHBAR32(GFXVTBAR) & VTBAR_ENABLED) {
mmio_resource_kb(dev, *index,
(MCHBAR64(GFXVTBAR) & VTBAR_MASK) / KiB,
VTBAR_SIZE / KiB);
mmio_range(dev, *index, MCHBAR64(GFXVTBAR) & VTBAR_MASK, VTBAR_SIZE);
(*index)++;
}
if (MCHBAR32(DEFVTBAR) & VTBAR_ENABLED) {
mmio_resource_kb(dev, *index,
(MCHBAR64(DEFVTBAR) & VTBAR_MASK) / KiB,
VTBAR_SIZE / KiB);
mmio_range(dev, *index, MCHBAR64(DEFVTBAR) & VTBAR_MASK, VTBAR_SIZE);
(*index)++;
}
}