diff options
Diffstat (limited to 'src/soc/amd/common/block/smbus/smbus.c')
-rw-r--r-- | src/soc/amd/common/block/smbus/smbus.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/amd/common/block/smbus/smbus.c b/src/soc/amd/common/block/smbus/smbus.c index d2faf79e74..1a97e523bb 100644 --- a/src/soc/amd/common/block/smbus/smbus.c +++ b/src/soc/amd/common/block/smbus/smbus.c @@ -2,6 +2,7 @@ #include <inttypes.h> #include <console/console.h> +#include <device/mmio.h> #include <device/smbus_host.h> #include <amdblocks/acpimmio.h> #include <amdblocks/smbus.h> @@ -18,12 +19,12 @@ static u8 controller_read8(const uintptr_t base, const u8 reg) { - return read8((void *)(base + reg)); + return read8p(base + reg); } static void controller_write8(const uintptr_t base, const u8 reg, const u8 val) { - write8((void *)(base + reg), val); + write8p(base + reg, val); } static int smbus_wait_until_ready(uintptr_t mmio) |