From 0e5f51e186ea1a88618db85e0e1bb98c233afcf1 Mon Sep 17 00:00:00 2001 From: Sen Chu Date: Wed, 8 Mar 2023 15:51:51 +0800 Subject: [PATCH] soc/mediatek/mt8186: Shut down PMIC on power key long press Currently on power key long press, PMIC will be reset. It would cause an unwanted reset pulse in the power-off sequence. To match expected sequence, change PMIC behavior to "force shutdown". BUG=b:271771606 TEST=long-pressing power key doesn't trigger PMIC_AP_RST_L pulse BRANCH=corsola Change-Id: I9ab35d82e57f43bac99fa8bd7bb69fcf52250311 Signed-off-by: Sen Chu Signed-off-by: jason-ch chen Reviewed-on: https://review.coreboot.org/c/coreboot/+/73705 Reviewed-by: Yu-Ping Wu Reviewed-by: Yidi Lin Tested-by: build bot (Jenkins) Reviewed-by: Rex-BC Chen Reviewed-by: Eric Lai --- src/soc/mediatek/mt8186/mt6366.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/mediatek/mt8186/mt6366.c b/src/soc/mediatek/mt8186/mt6366.c index 92174c0fe3..7ef8c24637 100644 --- a/src/soc/mediatek/mt8186/mt6366.c +++ b/src/soc/mediatek/mt8186/mt6366.c @@ -37,7 +37,7 @@ static struct pmic_setting init_setting[] = { {0xA08, 0x1, 0x1, 0}, {0xA24, 0x1E00, 0x1F00, 0}, {0xA38, 0x0, 0x100, 0}, - {0xA3C, 0x81E0, 0x81E0, 0}, + {0xA3C, 0x81F2, 0x81F2, 0}, {0xA44, 0xFFFF, 0xFFFF, 0}, {0xA46, 0xFC00, 0xFC00, 0}, {0xC8A, 0x4, 0xC, 0},