diff options
author | Felix Held <felix-coreboot@felixheld.de> | 2022-04-29 18:55:23 +0200 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-05-02 13:56:37 +0000 |
commit | 8b4369e4524ef7d1cf22fe2945c9f2fc4328c23e (patch) | |
tree | 3a977c7d69b8e45928775bca843824d19c2b03eb /src/soc/amd | |
parent | 4452400b6031aa98c8c82ebc591a618fa62f2405 (diff) |
soc/amd/common/block/psp/psp_gen2: use read32p instead of typecast
Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: I50b8fc270669f079d4f2ec21aec40388afc1705f
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63965
Reviewed-by: Raul Rangel <rrangel@chromium.org>
Reviewed-by: Fred Reitberger <reitbergerfred@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r-- | src/soc/amd/common/block/psp/psp_gen2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |