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:
parent
02fa23724f
commit
22fd605d23
8 changed files with 19 additions and 43 deletions
|
|
@ -291,6 +291,10 @@ postcar-y += rmodule.c
|
|||
postcar-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
|
||||
postcar-$(CONFIG_GENERIC_UDELAY) += timer.c
|
||||
|
||||
all-$(CONFIG_ARCH_ARM) += io.c
|
||||
all-$(CONFIG_ARCH_ARM64) += io.c
|
||||
all-$(CONFIG_ARCH_RISCV) += io.c
|
||||
|
||||
# Use program.ld for all the platforms which use C fo the bootblock.
|
||||
bootblock-y += program.ld
|
||||
|
||||
|
|
|
|||
5
src/lib/io.c
Normal file
5
src/lib/io.c
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
uintptr_t __weak io_port_mmio_base = 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue