diff options
author | Wai-Hong Tam <waihong@google.com> | 2020-06-02 19:54:18 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-06 05:51:51 +0000 |
commit | 8565d057518369a9e21d596d76a2dcf0c2fa7a7f (patch) | |
tree | ec6afae25be072e8f1461c53c8249c9d430766ab /power/sdm845.c | |
parent | e4bfe793ce90d7e9a42ab4a2c6427381ab7f4092 (diff) | |
download | chrome-ec-8565d057518369a9e21d596d76a2dcf0c2fa7a7f.tar.gz |
hooks: Introduce HOOK_CHIPSET_SHUTDOWN_COMPLETE
A new hook HOOK_CHIPSET_SHUTDOWN_COMPLETE is introduced, which are
called from the chipset task, while the system has already shut down
and all the suspend rails are already off.
It will be used for executing pending EC reboot at the chipset shutdown.
The EC reboot should be executed when the chipset is completely off.
BRANCH=None
BUG=b:156981868
TEST=Built all boards.
Change-Id: I12f26957e46a1bb34ef079f127b0bddd133cd4e7
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2228395
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'power/sdm845.c')
-rw-r--r-- | power/sdm845.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/power/sdm845.c b/power/sdm845.c index 79dde38f9f..1556dbb111 100644 --- a/power/sdm845.c +++ b/power/sdm845.c @@ -479,6 +479,9 @@ static void power_off(void) lid_opened = 0; enable_sleep(SLEEP_MASK_AP_RUN); CPRINTS("power shutdown complete"); + + /* Call hooks after we drop power rails */ + hook_notify(HOOK_CHIPSET_SHUTDOWN_COMPLETE); } /** |