Skip to content

Commit 21264cb

Browse files
author
Josh Tsai
committed
Clear the wake source when forcing shutdown.
We also need to clear the wake source when forcing shutdown to remove all power Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com>
1 parent 27607f1 commit 21264cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

board/hx20/power_sequence.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ void chipset_force_shutdown(enum chipset_shutdown_reason reason)
7878
forcing_shutdown = 1;
7979
custom_forcing_shutdown = 1;
8080
chipset_force_g3();
81+
/* we need to clear the wake source to avoid the wrong power state */
82+
*host_get_customer_memmap(0x02) = 0x00;
83+
system_set_bbram(SYSTEM_BBRAM_IDX_VPRO_STATUS, 0);
8184
}
8285
}
8386

0 commit comments

Comments
 (0)