summaryrefslogtreecommitdiff
path: root/board/spring/board.h
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2013-04-23 11:06:16 -0700
committerChromeBot <chrome-bot@google.com>2013-04-24 00:06:00 -0700
commit01279936cb7836ee5cef7e4c2332f6a6338a3162 (patch)
treeee87fca649059c9f5a44661b6489b53c73758610 /board/spring/board.h
parent3def4e04fa3ff2b28cfebdb2c4717fc51913a725 (diff)
downloadchrome-ec-01279936cb7836ee5cef7e4c2332f6a6338a3162.tar.gz
Unify lid switch processing
STM32-based platforms now use the same lid debouncing code as LM4-based platforms, generate lid-open / lid-closed events, and trigger lid-change hooks. This is needed for disabling keyboard scanning when the lid is closed, as well as future changes to mask off wake events when the lid is closed. BUG=chrome-os-partner:18896 BRANCH=spring TEST=build all platforms; check that spring boots when lid is opened Change-Id: I09a6e91119c3739297fe49b7eacac6efda988284 Signed-off-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/48924 Reviewed-by: Vic Yang <victoryang@chromium.org>
Diffstat (limited to 'board/spring/board.h')
-rw-r--r--board/spring/board.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/spring/board.h b/board/spring/board.h
index 4e7ef827e2..93b087e421 100644
--- a/board/spring/board.h
+++ b/board/spring/board.h
@@ -34,6 +34,7 @@
#define CONFIG_I2C
#define CONFIG_I2C_PASSTHROUGH
#define CONFIG_KEYBOARD_PROTOCOL_MKBP
+#define CONFIG_LID_SWITCH
#define CONFIG_LOW_POWER_IDLE /* Use STOP mode when we have nothing to do */
#define CONFIG_LP5562
#define CONFIG_PMU_BOARD_INIT