summaryrefslogtreecommitdiff
path: root/power/mt8183.c
diff options
context:
space:
mode:
Diffstat (limited to 'power/mt8183.c')
-rw-r--r--power/mt8183.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/power/mt8183.c b/power/mt8183.c
index 631f2f3c7f..ff842ba01c 100644
--- a/power/mt8183.c
+++ b/power/mt8183.c
@@ -140,11 +140,16 @@ DECLARE_DEFERRED(chipset_force_shutdown_button);
/* If chipset needs to be reset, EC also reboots to RO. */
void chipset_reset(enum chipset_reset_reason reason)
{
+ int flags = SYSTEM_RESET_HARD;
+
CPRINTS("%s: %d", __func__, reason);
report_ap_reset(reason);
cflush();
- system_reset(SYSTEM_RESET_HARD);
+ if (reason == CHIPSET_RESET_AP_WATCHDOG)
+ flags |= SYSTEM_RESET_AP_WATCHDOG;
+
+ system_reset(flags);
/* This should not be reachable. */
while (1)