summaryrefslogtreecommitdiff
path: root/include/hooks.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-01 10:56:33 -0700
committerChromeBot <chrome-bot@google.com>2013-04-02 14:12:57 -0700
commitbdd16f82069f9e07e9a9e3008c318d9581ce0664 (patch)
tree16287a843f975c9505636dcc13fbaef50cb08f9a /include/hooks.h
parent50c53c0d542d6fc3184db09a35196b4c702536c5 (diff)
downloadchrome-ec-bdd16f82069f9e07e9a9e3008c318d9581ce0664.tar.gz
Split lid switch code out of switch.c to its own file
This will allow ARM code to use the same lid switch code (in a subsequent CL). BUG=chrome-os-partner:18343 BRANCH=none TEST=open lid; system boots. close lid; system suspends. open lid; resumes. Change-Id: I83536a3ad24c4446dccf8a6b6e296756659070a8 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47043 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'include/hooks.h')
-rw-r--r--include/hooks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hooks.h b/include/hooks.h
index 6a6bd797cc..71939d05da 100644
--- a/include/hooks.h
+++ b/include/hooks.h
@@ -21,6 +21,8 @@ enum hook_priority {
HOOK_PRIO_INIT_LPC = HOOK_PRIO_FIRST + 1,
/* Chipset inits before modules which need to know its initial state. */
HOOK_PRIO_INIT_CHIPSET = HOOK_PRIO_FIRST + 2,
+ /* Lid switch inits before power button */
+ HOOK_PRIO_INIT_LID = HOOK_PRIO_FIRST + 3,
};
enum hook_type {