From 50f651baeaea0143b329d72ac5e1ad77f7aa9714 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 11 Dec 2022 10:21:59 +0100 Subject: [PATCH] soc/mediatek/common: Use write32p() Change-Id: I83707071fe1801322dffad7fc89afaef5617f3c7 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/70577 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Yu-Ping Wu --- src/soc/mediatek/common/mcupm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/mediatek/common/mcupm.c b/src/soc/mediatek/common/mcupm.c index dde10e21ca..9e58f073d9 100644 --- a/src/soc/mediatek/common/mcupm.c +++ b/src/soc/mediatek/common/mcupm.c @@ -11,7 +11,7 @@ static void reset_mcupm(struct mtk_mcu *mcu) { /* Clear abnormal boot register */ - write32((void *)ABNORMALBOOT_REG, 0x0); + write32p(ABNORMALBOOT_REG, 0x0); write32(&mcupm_reg->sw_rstn, 0x1); }