From a8da070a93ff81681c6e16e671cee3fd12db55cf Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 5 Jun 2023 21:19:27 +0200 Subject: soc/amd/stoneyridge/northbridge: use VGA_MMIO_* defines Replace the magic constants by using defines. Signed-off-by: Felix Held Change-Id: I6303e5a697a7ad09a48cb7a2c79fa76f4c6ce232 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75666 Tested-by: build bot (Jenkins) Reviewed-by: Matt DeVillier --- src/soc/amd/stoneyridge/northbridge.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c index 90d227ade0..b4c18d3587 100644 --- a/src/soc/amd/stoneyridge/northbridge.c +++ b/src/soc/amd/stoneyridge/northbridge.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -365,7 +366,7 @@ void domain_read_resources(struct device *dev) ram_resource_kb(dev, idx++, 0, 0xa0000 / KiB); /* 0xa0000 -> 0xbffff: legacy VGA */ - mmio_resource_kb(dev, idx++, 0xa0000 / KiB, 0x20000 / KiB); + mmio_resource_kb(dev, idx++, VGA_MMIO_BASE / KiB, VGA_MMIO_SIZE / KiB); /* 0xc0000 -> 0xfffff: Option ROM */ reserved_ram_resource_kb(dev, idx++, 0xc0000 / KiB, 0x40000 / KiB); -- cgit v1.2.3