From 8b4369e4524ef7d1cf22fe2945c9f2fc4328c23e Mon Sep 17 00:00:00 2001 From: Felix Held Date: Fri, 29 Apr 2022 18:55:23 +0200 Subject: soc/amd/common/block/psp/psp_gen2: use read32p instead of typecast Signed-off-by: Felix Held Change-Id: I50b8fc270669f079d4f2ec21aec40388afc1705f Reviewed-on: https://review.coreboot.org/c/coreboot/+/63965 Reviewed-by: Raul Rangel Reviewed-by: Fred Reitberger Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/psp/psp_gen2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/amd') diff --git a/src/soc/amd/common/block/psp/psp_gen2.c b/src/soc/amd/common/block/psp/psp_gen2.c index 22e19fa4ef..ddd9a648ab 100644 --- a/src/soc/amd/common/block/psp/psp_gen2.c +++ b/src/soc/amd/common/block/psp/psp_gen2.c @@ -137,7 +137,7 @@ enum cb_err soc_read_c2p38(uint32_t *msg_38_value) printk(BIOS_WARNING, "PSP: PSP_ADDR_MSR uninitialized\n"); return CB_ERR; } - *msg_38_value = read32((void *)psp_mmio + CORE_2_PSP_MSG_38_OFFSET); + *msg_38_value = read32p(psp_mmio + CORE_2_PSP_MSG_38_OFFSET); return CB_SUCCESS; } -- cgit v1.2.3