From 61dd31c8c18a7efdeae58cdbd8b44558cbb695a3 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 5 Jun 2023 19:38:36 +0200 Subject: [PATCH] nb/amd/pi/00730f01/northbridge: use VGA_MMIO_* defines Replace the magic constants by using defines. Signed-off-by: Felix Held Change-Id: Ie558de02cd4f8914409639a74c54b57df3418ed9 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75665 Reviewed-by: Matt DeVillier Tested-by: build bot (Jenkins) --- src/northbridge/amd/pi/00730F01/northbridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/northbridge/amd/pi/00730F01/northbridge.c b/src/northbridge/amd/pi/00730F01/northbridge.c index 355820a815..116cf63c68 100644 --- a/src/northbridge/amd/pi/00730F01/northbridge.c +++ b/src/northbridge/amd/pi/00730F01/northbridge.c @@ -6,6 +6,7 @@ #include #include #include +#include #include #include #include @@ -139,7 +140,7 @@ static void add_fixed_resources(struct device *dev, int index) * 0xa0000 - 0xbffff: legacy VGA * 0xc0000 - 0xfffff: option ROMs and SeaBIOS (if used) */ - mmio_resource_kb(dev, index++, 0xa0000 >> 10, (0xc0000 - 0xa0000) >> 10); + mmio_resource_kb(dev, index++, VGA_MMIO_BASE >> 10, VGA_MMIO_SIZE >> 10); reserved_ram_resource_kb(dev, index++, 0xc0000 >> 10, (0x100000 - 0xc0000) >> 10); if (fx_devs == 0)