diff options
author | Philip Chen <philipchen@google.com> | 2017-04-06 17:43:16 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-04-14 13:49:31 -0700 |
commit | 20c439be209a9cc0bb949ad21f289c453126395f (patch) | |
tree | b7e5d1a9cab98819b78b952edea09b678f598bd2 /include | |
parent | c487e18a3f203dc8793e884730eb66b2706deb26 (diff) | |
download | chrome-ec-20c439be209a9cc0bb949ad21f289c453126395f.tar.gz |
system: Shutdown AP before entering hibernate mode
BUG=chromium:702451
BRANCH=none
TEST=manually test on gru: confirm
'Alt+VolUp+h' puts gru in hibernate mode and
AC plug-in wakes it up.
Change-Id: I3e1134b866dea5d3cc61f9b3dad31c3ff0bd9096
Reviewed-on: https://chromium-review.googlesource.com/470787
Commit-Ready: Philip Chen <philipchen@chromium.org>
Tested-by: Philip Chen <philipchen@chromium.org>
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/system.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 26a57d9d61..48af1c332a 100644 --- a/include/system.h +++ b/include/system.h @@ -322,6 +322,12 @@ int system_set_bbram(enum system_bbram_idx idx, uint8_t value); void system_hibernate(uint32_t seconds, uint32_t microseconds); /** + * Chip-level callback functions called in system_hibernate() after we force + * to shutdown the chipset and get ready to enter hibernate mode. + */ +void chip_hibernate(uint32_t seconds, uint32_t microseconds); + +/** * Optional board-level callback functions called before and after initiating * chip-level hibernate sequence. These function may or may not return, * depending if the board implements an alternate hibernate method. The _late |