soc/amd/common/psp_verstage/fch: use [read,write]8p to avoid typecasts
Also add missing device/mmio.h include. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I03af0772c735cdc7a4e221770dc528724baa7523 Reviewed-on: https://review.coreboot.org/c/coreboot/+/67983 Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
b7a4a430c0
commit
2e785705f2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue