diff options
author | Sue Chen <sue.chen@quanta.corp-partner.google.com> | 2020-10-26 09:07:39 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-02 02:30:12 +0000 |
commit | 5e58c9687bfe09c0e98ce5ece32944f9a9bf0a3d (patch) | |
tree | 4ac2923618d781a4da034b748808a496613aa8c4 /include/system.h | |
parent | 4170ffcb8ba7ba7bcefdcd7c4c8f21b8366576df (diff) | |
download | chrome-ec-5e58c9687bfe09c0e98ce5ece32944f9a9bf0a3d.tar.gz |
System: shutdown chipset before enter hibernate
Pressing Alt + h + Volume Up cannot enter hibernate on lazor.
The DUT would boot up immediately. To ensure the KB hibernate
successfully, the AP needs fully shutdown before hibernating.
BUG=b:171731177
BRANCH=none
TEST=Pressing Alt+h+VolumeUp can enter hibernate in S0, and can
wake up by plugging AC, pressing power button.
make buildall -j2
Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com>
Change-Id: I3c09c0d339ebbaab33635a283fd57bac61ebf08f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2497371
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 7c540e1d5e..4eed668e64 100644 --- a/include/system.h +++ b/include/system.h @@ -48,6 +48,11 @@ void system_common_pre_init(void); int system_is_manual_recovery(void); /** + * Make sure AP shutdown completely, before call system_hibernate + */ +void system_enter_hibernate(uint32_t seconds, uint32_t microseconds); + +/** * System common re-initialization; called to reset persistent state * left by system_common_pre_init(). This is useful for testing * scenarios calling system_common_pre_init() multiple times. |