Skip to content

Commit 0f72063

Browse files
LeoCX-TsaiJohnAZoidberg
authored andcommitted
fwk: marigold: clear rtc flag when force shutdown
When we force shutdown, the unit should be forced to G3. so clearing RTC flags will ensure we do not get stuck at keep_pch_power. When system hangs before into s4, RTC wake flags will be set up, when this moment forces shutdown Unit will stuck at S4, and EC will push the solution for force shutdown can't power on. BRANCH=fwk-main BUG=[86equnzvk](https://app.clickup.com/t/86equnzvk) TEST=test on marigold, setup RTC flags by EC cmd (memmap set 0x102 1), and do force shutdown(8s), press power button make sure unit can power up Signed-off-by: LeoCX_Tsai <LeoCX_Tsai@compal.com> (cherry picked from commit 841cbe9)
1 parent 74a8e9a commit 0f72063

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

zephyr/program/framework/marigold/src/power_sequence.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,7 @@ void chipset_force_shutdown(enum chipset_shutdown_reason reason)
262262
report_ap_reset(reason);
263263
force_g3_flags = 1;
264264
chipset_force_g3();
265+
clear_rtcwake();
265266
}
266267
}
267268

0 commit comments

Comments
 (0)