Skip to content

Commit de062e0

Browse files
LeoCX-TsaiTerrails
authored andcommitted
fwk: azalea: 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 azalea, 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 15b9baf)
1 parent df9aa14 commit de062e0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ void chipset_force_shutdown(enum chipset_shutdown_reason reason)
260260
report_ap_reset(reason);
261261
force_g3_flags = 1;
262262
chipset_force_g3();
263+
clear_rtcwake();
263264
}
264265
}
265266

0 commit comments

Comments
 (0)