Skip to content

Commit 9faff3b

Browse files
committed
fix hibernate on critical battery
if we hibernate but then immediately plug back in, I do not think the nRESETI has time to decay so some registers are persisted and the EC will not turn on until several seconds later Signed-off-by: Kieran Levin <[email protected]>
1 parent a740b0b commit 9faff3b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

board/hx20/board.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,16 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND,
577577
board_chipset_suspend,
578578
HOOK_PRIO_DEFAULT);
579579

580+
void board_hibernate(void)
581+
{
582+
board_power_off_deferred();
583+
}
580584
void board_hibernate_late(void)
581585
{
582586
/* put host chipset into reset */
583587
gpio_set_level(GPIO_SYS_RESET_L, 0);
584588

585-
board_power_off_deferred();
589+
586590
}
587591

588592
/* according to Panel team suggest, delay 60ms to meet spec */

0 commit comments

Comments
 (0)