summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChromeOS Developer <dparker@chromium.org>2014-01-30 15:27:58 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-02-03 17:31:02 +0000
commit93014cc0a2e7152ef864ea188f939b5dc0b802d7 (patch)
treef7d390b09a54bf0589f2dd9cc323a8486a281158 /include
parent3bccbba6105ace4bab6396aae8878b17dadc35a2 (diff)
downloadchrome-ec-93014cc0a2e7152ef864ea188f939b5dc0b802d7.tar.gz
Config option for using power button with lid closed
BUG=chrome-os-partner:24912 BRANCH=baytrail TEST=Manual. Enable CONFIG_POWER_BUTTON_IGNORE_LID on a device, boot it, and go into dock mode with external monitor attached. Fake-close the lid with a magnet or servo. Verify the power button still sends press/release events to the host with evtest. Change-Id: I1b48bdfdd9e7a0e7c9556a23f33396e6ffb1f2bd Original-Change-Id: Idb05375eee0743a8a2c459070854c03fe3afe894 Signed-off-by: Dave Parker <dparker@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/184493 Reviewed-by: Randall Spangler <rspangler@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/184642
Diffstat (limited to 'include')
-rw-r--r--include/config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 17ec83c877..e9a662989a 100644
--- a/include/config.h
+++ b/include/config.h
@@ -577,6 +577,9 @@
/* Compile common code to support power button debouncing */
#undef CONFIG_POWER_BUTTON
+/* Allow the power button to send events while the lid is closed */
+#undef CONFIG_POWER_BUTTON_IGNORE_LID
+
/* Support sending the power button signal to x86 chipsets */
#undef CONFIG_POWER_BUTTON_X86