Skip to content

Commit 60afc1b

Browse files
LeoCX-TsaiJohnAZoidberg
authored andcommitted
fwk: lotus: 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 lotus, 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 273d62f)
1 parent 0157778 commit 60afc1b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ void chipset_force_shutdown(enum chipset_shutdown_reason reason)
313313
report_ap_reset(reason);
314314
force_shoutdown_flags = 1;
315315
task_wake(TASK_ID_CHIPSET);
316+
clear_rtcwake();
316317
}
317318
}
318319

0 commit comments

Comments
 (0)