From 670cd9719e2b898910079cc87a60e5956a7f7f29 Mon Sep 17 00:00:00 2001 From: Hsin-Hsiung Wang Date: Thu, 4 Mar 2021 10:39:38 +0800 Subject: soc/mediatek/mt8192: mt6315: update correct slave id The initial settings for MT6315 were not applied correctly because the setup process didn't specify correct slave id (incorrectly always sending 0), and may cause failure in power off sequence. BUG=b:179000151 BRANCH=none TEST=boot asurada correctly Signed-off-by: Hsin-Hsiung Wang Change-Id: Ifd04da8ac55bcc9f9fdbc088d430522c2725ad47 Reviewed-on: https://review.coreboot.org/c/coreboot/+/51056 Tested-by: build bot (Jenkins) Reviewed-by: Hung-Te Lin --- src/soc/mediatek/mt8192/mt6315.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/mediatek/mt8192/mt6315.c b/src/soc/mediatek/mt8192/mt6315.c index 76534953e3..1cb1fe3042 100644 --- a/src/soc/mediatek/mt8192/mt6315.c +++ b/src/soc/mediatek/mt8192/mt6315.c @@ -207,7 +207,7 @@ static void mt6315_write(u32 slvid, u32 reg, u32 data) static void mt6315_write_field(u32 slvid, u32 reg, u32 val, u32 mask, u32 shift) { - pmif_arb->write_field(pmif_arb, 0, reg, val, mask, shift); + pmif_arb->write_field(pmif_arb, slvid, reg, val, mask, shift); } static void mt6315_wdt_enable(u32 slvid) -- cgit v1.2.3