summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/power_button_x86.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c
index ed8a677613..7fd7101c29 100644
--- a/common/power_button_x86.c
+++ b/common/power_button_x86.c
@@ -227,6 +227,9 @@ static void set_initial_pwrbtn_state(void)
*/
CPRINTS("PB init-off");
power_button_pch_release();
+ } else if (power_button_is_pressed()) {
+ CPRINTS("PB init-on");
+ pwrbtn_state = PWRBTN_STATE_INIT_ON;
} else {
/*
* All other EC reset conditions power on the main processor so