From 97713dba84a45d78445c9e50f28054c6d7ee5011 Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Tue, 1 Dec 2015 18:32:36 -0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/315221 Commit-Ready: Aaron Durbin Tested-by: Aaron Durbin Reviewed-by: Shawn N --- common/hooks.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common/hooks.c') diff --git a/common/hooks.c b/common/hooks.c index 6cca00c914..f8e368c36d 100644 --- a/common/hooks.c +++ b/common/hooks.c @@ -41,6 +41,7 @@ static const struct hook_ptrs hook_list[] = { {__hooks_chipset_resume, __hooks_chipset_resume_end}, {__hooks_chipset_suspend, __hooks_chipset_suspend_end}, {__hooks_chipset_shutdown, __hooks_chipset_shutdown_end}, + {__hooks_chipset_reset, __hooks_chipset_reset_end}, {__hooks_ac_change, __hooks_ac_change_end}, {__hooks_lid_change, __hooks_lid_change_end}, {__hooks_pwrbtn_change, __hooks_pwrbtn_change_end}, -- cgit v1.2.1