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/link_defs.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/link_defs.h')
-rw-r--r-- | include/link_defs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/link_defs.h b/include/link_defs.h index ff443557b2..95fec83fff 100644 --- a/include/link_defs.h +++ b/include/link_defs.h @@ -42,6 +42,8 @@ extern const struct hook_data __hooks_chipset_suspend[]; extern const struct hook_data __hooks_chipset_suspend_end[]; extern const struct hook_data __hooks_chipset_shutdown[]; extern const struct hook_data __hooks_chipset_shutdown_end[]; +extern const struct hook_data __hooks_chipset_reset[]; +extern const struct hook_data __hooks_chipset_reset_end[]; extern const struct hook_data __hooks_ac_change[]; extern const struct hook_data __hooks_ac_change_end[]; extern const struct hook_data __hooks_lid_change[]; |