diff options
author | Hsin-Hsiung Wang <hsin-hsiung.wang@mediatek.com> | 2021-01-06 15:41:06 +0800 |
---|---|---|
committer | Hung-Te Lin <hungte@chromium.org> | 2021-01-19 08:27:27 +0000 |
commit | 54971943344301d7ffb10701ee91605e8e136ba2 (patch) | |
tree | 12f49e90d538fc8a067d3ce1d899269f9fafc9e3 /src/soc/mediatek | |
parent | cad3f47cda1e804870671ef2031a85c12c593746 (diff) | |
download | coreboot-54971943344301d7ffb10701ee91605e8e136ba2.tar.xz |
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>
Diffstat (limited to 'src/soc/mediatek')
-rw-r--r-- | src/soc/mediatek/mt8192/mt6359p.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/soc/mediatek/mt8192/mt6359p.c b/src/soc/mediatek/mt8192/mt6359p.c index 68af6f2c42..facf70b37d 100644 --- a/src/soc/mediatek/mt8192/mt6359p.c +++ b/src/soc/mediatek/mt8192/mt6359p.c @@ -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}, |