summaryrefslogtreecommitdiff
path: root/common/power_button_x86.c
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2017-04-21 16:13:24 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-05-18 18:08:01 -0700
commit30f6c60bcb851620d14c4871f16e85c3fe769056 (patch)
tree33c4244c92fdb942be2c1ab61894219d39a48f9c /common/power_button_x86.c
parent432f3f46869b011addeca306d8469d8a033088dd (diff)
downloadchrome-ec-30f6c60bcb851620d14c4871f16e85c3fe769056.tar.gz
power_button: Allow PB to be idle at power-on
This change adds CONFIG_POWER_BUTTON_INIT_IDLE. When it's set, the system starts with the power button state idle. It means when the board boots from power-off, it stays at G3. BUG=b:37536389 BRANCH=none TEST=Power on Fizz. Verify it stays at G3. Verify it boots by pressing power button. Change-Id: I09a62a69d9f201b2dc261838cc9b4425fe3a8dc1 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/486945 Reviewed-by: Duncan Laurie <dlaurie@google.com>
Diffstat (limited to 'common/power_button_x86.c')
-rw-r--r--common/power_button_x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c
index 658a422463..ed8a677613 100644
--- a/common/power_button_x86.c
+++ b/common/power_button_x86.c
@@ -232,7 +232,7 @@ static void set_initial_pwrbtn_state(void)
* All other EC reset conditions power on the main processor so
* it can verify the EC.
*/
-#ifdef CONFIG_BRINGUP
+#if defined(CONFIG_BRINGUP) || defined(CONFIG_POWER_BUTTON_INIT_IDLE)
CPRINTS("PB idle");
pwrbtn_state = PWRBTN_STATE_IDLE;
#else