power_button_x86: Initialize to on if button is pressed
This change sets the initial power button state to init-on
if the power button is pressed.
BRANCH=none
TEST=Enter recovery mode by power+recovery button press.
@@ -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
