From ecc3921019488641e61c9faa1e58134c257ce823 Mon Sep 17 00:00:00 2001 From: zack_yang Date: Thu, 14 Mar 2019 19:27:29 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1523269 Commit-Ready: Zack Yang Tested-by: Furquan Shaikh Tested-by: Zack Yang Reviewed-by: Furquan Shaikh Reviewed-by: Zack Yang --- baseboard/hatch/baseboard.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'baseboard') 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 -- cgit v1.2.1