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>
This commit is contained in:
Felix Held 2022-04-29 18:55:23 +02:00
parent 4452400b60
commit 8b4369e452
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}