diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-07-23 07:52:07 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-23 09:27:23 -0700 |
commit | fb4b73d341948f46597c7a7ca83a194a755c23b6 (patch) | |
tree | e70c3876faae3cf39e3c5fbbf32c7af2bbd86a94 /power/mt8183.c | |
parent | d12b65708437b586ad8d84dd637d1bae9dfb1549 (diff) | |
download | chrome-ec-fb4b73d341948f46597c7a7ca83a194a755c23b6.tar.gz |
power/mt8183: Fix PMIC_EN_ODL polarity, watchdog signal
Watchdog signal should on high by default (and only pulsed to
shut down the PMIC).
Also, PMIC_EN_ODL is active-low, fix polarity.
BRANCH=none
BUG=b:109850749
TEST=make BOARD=kukui -j => Boot to FW
Change-Id: I3f69bfd75c02ae958785153593d4494c02f39172
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1146132
Reviewed-by: Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'power/mt8183.c')
-rw-r--r-- | power/mt8183.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/power/mt8183.c b/power/mt8183.c index 64868778b0..7e8d5ba57b 100644 --- a/power/mt8183.c +++ b/power/mt8183.c @@ -200,9 +200,9 @@ enum power_state power_handle_state(enum power_state state) /* If PMIC is off, switch it on by pulsing PMIC enable. */ if (!power_has_signals(IN_PGOOD_PMIC)) { - gpio_set_level(GPIO_PMIC_EN_ODL, 1); - msleep(PMIC_EN_PULSE_MS); gpio_set_level(GPIO_PMIC_EN_ODL, 0); + msleep(PMIC_EN_PULSE_MS); + gpio_set_level(GPIO_PMIC_EN_ODL, 1); } /* If EC is in RW, reboot to RO. */ |