summaryrefslogtreecommitdiff
path: root/common/hooks.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2012-05-08 16:56:59 -0700
committerRandall Spangler <rspangler@chromium.org>2012-05-09 16:09:10 -0700
commit1655c8727a82d8a344400f1708d315decb57c73c (patch)
tree8df68e9691978bdc0a320b24b36ef6dcd30302ae /common/hooks.c
parent33422ee34169123a53bf47366e3ce474a6acfb3a (diff)
downloadchrome-ec-1655c8727a82d8a344400f1708d315decb57c73c.tar.gz
Add hooks for chipset power transitions
This is cleaner than having x86_power explicitly know about everything else in the system that cares about power transitions. Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=boot and shutdown system; still works. Mouse powered to system is off in S5. Change-Id: Ib673ca2d9edd5473334e7604e98b99b02b768419
Diffstat (limited to 'common/hooks.c')
-rw-r--r--common/hooks.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/hooks.c b/common/hooks.c
index b2626a9aa9..f83c2e88b2 100644
--- a/common/hooks.c
+++ b/common/hooks.c
@@ -20,6 +20,10 @@ static const struct hook_ptrs hook_list[] = {
{__hooks_init, __hooks_init_end},
{__hooks_freq_change, __hooks_freq_change_end},
{__hooks_sysjump, __hooks_sysjump_end},
+ {__hooks_chipset_startup, __hooks_chipset_startup_end},
+ {__hooks_chipset_resume, __hooks_chipset_resume_end},
+ {__hooks_chipset_suspend, __hooks_chipset_suspend_end},
+ {__hooks_chipset_shutdown, __hooks_chipset_shutdown_end},
};