summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--power/mt8183.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/power/mt8183.c b/power/mt8183.c
index ff842ba01c..7fce482e95 100644
--- a/power/mt8183.c
+++ b/power/mt8183.c
@@ -168,7 +168,13 @@ enum power_state power_chipset_init(void)
CPRINTS("already in S0");
return POWER_S0;
}
- } else if (!(system_get_reset_flags() & RESET_FLAG_AP_OFF)) {
+ } else if (system_get_reset_flags() & RESET_FLAG_AP_OFF) {
+ /* Force shutdown from S5 if the PMIC is already up. */
+ if (power_get_signals() & IN_PGOOD_PMIC) {
+ forcing_shutdown = 1;
+ return POWER_S5;
+ }
+ } else {
/* Auto-power on */
chipset_exit_hard_off();
}