summaryrefslogtreecommitdiff
path: root/common/power_button_x86.c
diff options
context:
space:
mode:
authorDivya Jyothi <divya.jyothi@intel.com>2014-10-27 09:48:38 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-06 09:26:21 +0000
commit75ced738383d4b3bdf4e95b31c193cb0366e69cf (patch)
tree304e1fef1e803c3fb0af2241b9fd60c1c4815f5e /common/power_button_x86.c
parent41cde665166da1aced2ece17f7b503c78cdb5c8f (diff)
downloadchrome-ec-75ced738383d4b3bdf4e95b31c193cb0366e69cf.tar.gz
Strago: Initial Version of Strago Board added.
Modules that are enabled are listed below: - Power Sequencing - Keyboard Scan and Protocol - LPC to support Keyboard - Power Button Task ec.spi.bin has to be generated manualy using pack_ec.py BUG=None BRANCH=None TEST=Tested on Stargo-Proto board Change-Id: Ic5d504c3d6e9c7c5f3482fb7e9e37800b6274824 Signed-off-by: Divya Jyothi <divya.jyothi@intel.com> Reviewed-on: https://chromium-review.googlesource.com/226303 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'common/power_button_x86.c')
-rw-r--r--common/power_button_x86.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/power_button_x86.c b/common/power_button_x86.c
index 539bfce347..8b221b8e30 100644
--- a/common/power_button_x86.c
+++ b/common/power_button_x86.c
@@ -118,11 +118,12 @@ static void set_pwrbtn_to_pch(int high)
* If the battery is discharging and low enough we'd shut down the
* system, don't press the power button.
*/
+#ifdef CONFIG_CHARGER
if (!high && charge_want_shutdown()) {
CPRINTS("PB PCH pwrbtn ignored due to battery level");
high = 1;
}
-
+#endif
CPRINTS("PB PCH pwrbtn=%s", high ? "HIGH" : "LOW");
gpio_set_level(GPIO_PCH_PWRBTN_L, high);
}