summaryrefslogtreecommitdiffstats
path: root/src/soc/amd/stoneyridge
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2023-06-05 21:19:27 +0200
committerFelix Held <felix-coreboot@felixheld.de>2023-06-07 21:56:42 +0000
commita8da070a93ff81681c6e16e671cee3fd12db55cf (patch)
treea07e9bff76df6d476e9aef6bfccc617659536372 /src/soc/amd/stoneyridge
parent61dd31c8c18a7efdeae58cdbd8b44558cbb695a3 (diff)
downloadcoreboot-a8da070a93ff81681c6e16e671cee3fd12db55cf.tar.gz
coreboot-a8da070a93ff81681c6e16e671cee3fd12db55cf.tar.bz2
coreboot-a8da070a93ff81681c6e16e671cee3fd12db55cf.zip
soc/amd/stoneyridge/northbridge: use VGA_MMIO_* defines
Replace the magic constants by using defines. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I6303e5a697a7ad09a48cb7a2c79fa76f4c6ce232 Reviewed-on: https://review.coreboot.org/c/coreboot/+/75666 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@amd.corp-partner.google.com>
Diffstat (limited to 'src/soc/amd/stoneyridge')
-rw-r--r--src/soc/amd/stoneyridge/northbridge.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/amd/stoneyridge/northbridge.c b/src/soc/amd/stoneyridge/northbridge.c
index 90d227ade0ba..b4c18d3587e7 100644
--- a/src/soc/amd/stoneyridge/northbridge.c
+++ b/src/soc/amd/stoneyridge/northbridge.c
@@ -7,6 +7,7 @@
#include <device/pci_ops.h>
#include <arch/hpet.h>
#include <arch/ioapic.h>
+#include <arch/vga.h>
#include <acpi/acpi.h>
#include <acpi/acpigen.h>
#include <cbmem.h>
@@ -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);