diff options
author | Edward Hill <ecgh@chromium.org> | 2019-06-13 13:59:10 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-14 22:04:37 +0000 |
commit | 6cffee1382bb8f918fc6fcd8f20a160d7d16d6e9 (patch) | |
tree | 3a8a0ea54de3388dc4e03e8394b38fbe1700c5f0 /board/grunt | |
parent | 960cdb51520dd95175869e3efce80f585c5c5571 (diff) | |
download | chrome-ec-6cffee1382bb8f918fc6fcd8f20a160d7d16d6e9.tar.gz |
grunt: Wake from hibernate on EC reset
Add GPIO_EC_RST_ODL to hibernate_wake_pins[] for Aleena + Careena + Liara
since the HW supports this as a PSL wake input.
BUG=b:122833270
BRANCH=grunt
TEST='dut-control cold_reset:on cold_reset:off' with ServoV2
Change-Id: I24a878be5e2c822b052a7d65b1964dcb6ed2ce94
Signed-off-by: Edward Hill <ecgh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1658524
Reviewed-by: Raul E Rangel <rrangel@chromium.org>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/grunt')
-rw-r--r-- | board/grunt/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/grunt/board.c b/board/grunt/board.c index 13e062589a..bac35ddac4 100644 --- a/board/grunt/board.c +++ b/board/grunt/board.c @@ -85,6 +85,13 @@ static void ppc_interrupt(enum gpio_signal signal) #include "gpio_list.h" +const enum gpio_signal hibernate_wake_pins[] = { + GPIO_LID_OPEN, + GPIO_AC_PRESENT, + GPIO_POWER_BUTTON_L, +}; +const int hibernate_wake_pins_used = ARRAY_SIZE(hibernate_wake_pins); + /* I2C port map. */ const struct i2c_port_t i2c_ports[] = { {"power", I2C_PORT_POWER, 100, GPIO_I2C0_SCL, GPIO_I2C0_SDA}, |