diff options
author | Shobhit Srivastava <shobhit.srivastava@intel.com> | 2015-09-24 11:30:13 +0530 |
---|---|---|
committer | ChromeOS bot <3su6n15k.default@developer.gserviceaccount.com> | 2015-09-25 01:55:21 +0000 |
commit | 6291662d43fac82a8740920aba3f7503c57ccd25 (patch) | |
tree | ec2eef707a5ae2921d962409bbe41826a8ef76f0 | |
parent | 01fb405bb53ab2b1d8802f89e33b4859dedae6c7 (diff) | |
download | chrome-ec-6291662d43fac82a8740920aba3f7503c57ccd25.tar.gz |
Strago: Enable power button as wake pin from EC Hibernate
When DUT reaches critical battery it shutdowns and EC enters
hibernate state. To bring the DUT out of hibernate and boot
the system we need to assign power button as wake source.
BUG=None
BRANCH=firmware-strago-7287.B
TEST=Drain the battery and let DUT enter hibernate state. Press
power button and check DUT boots. Insert charger and check that
charging is happening.
Change-Id: I0fe52eecada2b26c12b6bed72a065df0a558bf9e
Signed-off-by: Shobhit Srivastava <shobhit.srivastava@intel.com>
Reviewed-on: https://chromium-review.googlesource.com/302251
Tested-by: Gomathi Kumar <gomathi.kumar@intel.com>
Reviewed-by: Gomathi Kumar <gomathi.kumar@intel.com>
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Commit-Queue: Divagar Mohandass <divagar.mohandass@intel.com>
-rw-r--r-- | board/strago/board.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/strago/board.c b/board/strago/board.c index a27abfb696..39c3c3f9d9 100644 --- a/board/strago/board.c +++ b/board/strago/board.c @@ -70,9 +70,10 @@ const struct i2c_port_t i2c_ports[] = { const unsigned int i2c_ports_used = ARRAY_SIZE(i2c_ports); const enum gpio_signal hibernate_wake_pins[] = { + GPIO_POWER_BUTTON_L, }; -const int hibernate_wake_pins_used; +const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); /* * Temperature sensors data; must be in same order as enum temp_sensor_id. |