summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2014-11-19 13:57:49 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-22 00:42:11 +0000
commitf506201873ef0ced86bca843bd75e4d95c6614e2 (patch)
treef612a3e0a19aefb33f98b825b138fae80e45e8c0
parent8bdba23af5598f316d5c5fb6f5e3dd88ac388abf (diff)
downloadvboot-f506201873ef0ced86bca843bd75e4d95c6614e2.tar.gz
vboot: Add GBB flag to disable shutdown when lid is closed
This adds a GBB flag which can be used in VbExShutdownRequested to ignore the state of the lid switch and enable factory to run with the lid closed. BUG=chromium:434462 BRANCH=samus TEST=none in this commit, just adding a new unused flag Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/230884 Reviewed-by: Randall Spangler <rspangler@chromium.org> (cherry picked from commit 57660567b43f5aeabab2c7911ffaec4612b0a3ab) Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Change-Id: Ife93adcc90b2c48e79d4e0c8164d2e64e6326ca7 Reviewed-on: https://chromium-review.googlesource.com/231541 Tested-by: Duncan Laurie <dlaurie@chromium.org> Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Commit-Queue: Duncan Laurie <dlaurie@chromium.org>
-rw-r--r--firmware/include/gbb_header.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/include/gbb_header.h b/firmware/include/gbb_header.h
index 8a457c12..e73ea95b 100644
--- a/firmware/include/gbb_header.h
+++ b/firmware/include/gbb_header.h
@@ -65,6 +65,8 @@
#define GBB_FLAG_DEFAULT_DEV_BOOT_LEGACY 0x00000400
/* Disable PD software sync */
#define GBB_FLAG_DISABLE_PD_SOFTWARE_SYNC 0x00000800
+/* Disable shutdown on lid closed */
+#define GBB_FLAG_DISABLE_LID_SHUTDOWN 0x00001000
#ifdef __cplusplus
extern "C" {