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 <[email protected]> (cherry picked from commit 841cbe9431485c96e962c63e04a67297475a75bb)
1 parent 74a8e9a commit 0f72063

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)