nb/amd/pi/00730F01/state_machine.c: unhardcode IOAPIC2 address
Signed-off-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Change-Id: I95964ac6b5939f66c40bd56939bdf532a72d75ce
Reviewed-on: https://review.coreboot.org/c/coreboot/+/39701
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
diff --git a/src/northbridge/amd/pi/00730F01/state_machine.c b/src/northbridge/amd/pi/00730F01/state_machine.c
index 4a049e5..d78c575 100644
--- a/src/northbridge/amd/pi/00730F01/state_machine.c
+++ b/src/northbridge/amd/pi/00730F01/state_machine.c
@@ -19,6 +19,7 @@
#include <device/device.h>
#include <northbridge/amd/agesa/state_machine.h>
#include <northbridge/amd/agesa/agesa_helper.h>
+#include <northbridge/amd/pi/nb_common.h>
void platform_BeforeInitReset(struct sysinfo *cb, AMD_RESET_PARAMS *Reset)
{
@@ -63,7 +64,7 @@
/* 0 iGpuVgaAdapter, 1 iGpuVgaNonAdapter; */
Mid->GnbMidConfiguration.iGpuVgaMode = 0;
- Mid->GnbMidConfiguration.GnbIoapicAddress = 0xFEC20000;
+ Mid->GnbMidConfiguration.GnbIoapicAddress = IO_APIC2_ADDR;
}
void platform_BeforeInitLate(struct sysinfo *cb, AMD_LATE_PARAMS *Late)