soc/mediatek/mt8192: pmic: enable pwrkey long-press shutdown setting

Update the settings of long press shutdown to avoid rtc alarm boot.

BUG=b:174546890
BRANCH=none
TEST=boot asurada correctly

Signed-off-by: Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com>
Change-Id: I0841e55674f6b26f355ab678a73d4060fe93f27c
Reviewed-on: https://review.coreboot.org/c/coreboot/+/49354
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Hsin-Hsiung Wang 2021-01-06 15:41:06 +08:00 committed by Hung-Te Lin
parent cad3f47cda
commit 5497194334
1 changed files with 5 additions and 1 deletions

View File

@ -27,7 +27,11 @@ static const struct pmic_setting init_setting[] = {
{0xA08, 0x1, 0x1, 0},
{0xA0C, 0x300, 0x300, 0},
{0xA10, 0x0, 0x4000, 0},
{0xA12, 0x1E0, 0x1E0, 0},
/*
* RG_STRUP_LONG_PRESS_EXT_SEL
* only allow pwrkey boot after long-press shutdown.
*/
{0xA12, 0x1F2, 0x1F3, 0},
{0xA24, 0xFFFF, 0xFFFF, 0},
{0xA26, 0xFFE0, 0xFFE0, 0},
{0xA2C, 0xC0DF, 0xC0DF, 0},