soc/amd/common/psp_verstage: Remove arch/io.h

The arch include files are overshadowed by PSP verstage include files.
The reason is that psp_verstage implements its own set of inb() and
outb() functions, which use a runtime configurable IO base address
instead of a built time constant.

But this works at the moment only because of the order in which the
include files are added. Since that is very error prone, this patch
introduces another solution to the problem.

Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com>
Change-Id: I16fa4a4cb5168024aaef30119e9aa8a34dbaacbe
Reviewed-on: https://review.coreboot.org/c/coreboot/+/86874
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
Maximilian Brune 2025-03-17 02:50:10 +01:00 committed by Matt DeVillier
commit 22fd605d23
8 changed files with 19 additions and 43 deletions

View file

@ -30,9 +30,6 @@ config ECAM_MMCONF_BASE_ADDRESS
config ECAM_MMCONF_BUS_NUMBER
default 256
config PCI_IOBASE
default 0x3eff0000
config MEMLAYOUT_LD_FILE
string
default "src/mainboard/emulation/qemu-aarch64/memlayout.ld"

View file

@ -3,6 +3,8 @@
#include <console/uart.h>
#include <mainboard/addressmap.h>
uintptr_t io_port_mmio_base = 0x3eff0000;
uintptr_t uart_platform_base(unsigned int idx)
{
return VIRT_UART_BASE;