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 /board/host | |
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 'board/host')
-rw-r--r-- | board/host/chipset.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/host/chipset.c b/board/host/chipset.c index 0b52432e72..3cb859eb29 100644 --- a/board/host/chipset.c +++ b/board/host/chipset.c @@ -71,5 +71,6 @@ test_mockable void chipset_task(void) power_off_req = 0; chipset_state = CHIPSET_STATE_SOFT_OFF; hook_notify(HOOK_CHIPSET_SHUTDOWN); + hook_notify(HOOK_CHIPSET_SHUTDOWN_COMPLETE); } } |