diff options
author | Duncan Laurie <dlaurie@chromium.org> | 2015-12-01 18:32:36 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-01-25 21:46:48 -0800 |
commit | 97713dba84a45d78445c9e50f28054c6d7ee5011 (patch) | |
tree | 04ab4d6b482f1444a1bf9b5e23903b170386c75c /include/hooks.h | |
parent | 8c9210b81e83c94d9d34497d202476c4fa6fb34b (diff) | |
download | chrome-ec-97713dba84a45d78445c9e50f28054c6d7ee5011.tar.gz |
ec: Add a chipset reset hook
There are hooks for chipset power sequencing but not one to indicate
that the system has reset at runtime. Add a hook for this and
implement for lm4 and mec1322. The hook is notified on any platform
reset, including those that happen on the way into S3/S5 state.
There is a new config variable added because the hook is notified in
the interrupt handler and needs a deferrable function that needs to
be added to every board.
BUG=chrome-os-partner:46049
BRANCH=none
TEST=tested on glados and samus
Change-Id: I3be639414e18586344e0ec84632a50dfc1df586b
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/315221
Commit-Ready: Aaron Durbin <adurbin@chromium.org>
Tested-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/hooks.h')
-rw-r--r-- | include/hooks.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h index 49617aba95..c2b48ccd6c 100644 --- a/include/hooks.h +++ b/include/hooks.h @@ -109,6 +109,13 @@ enum hook_type { HOOK_CHIPSET_SHUTDOWN, /* + * System reset in S0. All rails are still up. + * + * Hook routines are called from the chipset task. + */ + HOOK_CHIPSET_RESET, + + /* * AC power plugged in or removed. * * Hook routines are called from the TICK task. |