summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzack_yang <zack_yang@compal.corp-partner.google.com>2019-03-14 19:27:29 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-03-19 09:40:55 -0700
commitecc3921019488641e61c9faa1e58134c257ce823 (patch)
tree2eecb78f7dc3cb3663ac4ae52e99d130320d09f6
parent38b2b6e589010e73a0cb7d26e04b89eef35aa7f8 (diff)
downloadchrome-ec-ecc3921019488641e61c9faa1e58134c257ce823.tar.gz
hatch: Enabling tablet mode
EC should send an event to host when the mode change BUG=b:125355874 BRANCH=none TEST= On proto boards, rotate your lid sensor until the lid_angle is 270 degree, you will see the log in ec console. [146.851540 tablet mode enabled] [146.851961 event set 0x0000000010000000] And then rotate it back to 90 degree, you will see the log in ec console. [219.552181 tablet mode disabled] [219.552606 event set 0x0000000010000000] Change-Id: Id0f3b5b18fdfd5117fc5feab4472cd2709cb1705 Signed-off-by: zack_yang <zack_yang@compal.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/1523269 Commit-Ready: Zack Yang <zack_yang@compal.corp-partner.google.com> Tested-by: Furquan Shaikh <furquan@chromium.org> Tested-by: Zack Yang <zack_yang@compal.corp-partner.google.com> Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Zack Yang <zack_yang@compal.corp-partner.google.com>
-rw-r--r--baseboard/hatch/baseboard.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/baseboard/hatch/baseboard.h b/baseboard/hatch/baseboard.h
index 88f4519a2c..3bfb1e06cd 100644
--- a/baseboard/hatch/baseboard.h
+++ b/baseboard/hatch/baseboard.h
@@ -119,6 +119,9 @@
#define CONFIG_USB_CHARGER
#define CONFIG_BC12_DETECT_PI3USB9201
+/* Common Sensor Defines */
+#define CONFIG_TABLET_MODE
+
/* USB Type A Features */
#define CONFIG_USB_PORT_POWER_SMART
#undef CONFIG_USB_PORT_POWER_SMART_PORT_COUNT