summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/psp_verstage/fch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/amd/common/psp_verstage/fch.c b/src/soc/amd/common/psp_verstage/fch.c
index fca4c9a0af..d4dcd21b31 100644
--- a/src/soc/amd/common/psp_verstage/fch.c
+++ b/src/soc/amd/common/psp_verstage/fch.c
@@ -12,6 +12,7 @@
#include <bl_uapp/bl_errorcodes_public.h>
#include <bl_uapp/bl_syscall_public.h>
#include <console/console.h>
+#include <device/mmio.h>
#include <soc/i2c.h>
#include <soc/southbridge.h>
#include <stdint.h>
@@ -55,12 +56,12 @@ static void io_set_bar(void *bar)
u8 io_read8(u16 reg)
{
- return read8((void *)(io_bar + reg));
+ return read8p(io_bar + reg);
}
void io_write8(u16 reg, u8 value)
{
- write8((void *)(io_bar + reg), value);
+ write8p(io_bar + reg, value);
}
static void aoac_set_bar(void *bar)