diff options
author | Devin Lu <Devin.Lu@quantatw.com> | 2020-10-07 20:15:58 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-13 08:08:50 +0000 |
commit | 917504d719b1c0b9ec81602dc6fc5b15694cd83e (patch) | |
tree | 7775dd637434e40e965e6d2ab0ee82e78cc8b939 | |
parent | 1ad956ffad4ef43e92924974a8bc180675f18bcc (diff) | |
download | chrome-ec-917504d719b1c0b9ec81602dc6fc5b15694cd83e.tar.gz |
Esche: Turn off tablet mode
Burnt and Esche has been merged to the same firmware, Burnet have GMR
sensor for tablet mode, but Esche not. This patch turns off tablet mode
and GMR interrupt on Esche.
BUG=none
BRANCH=firmware-kukui-12573.B
TEST=Make sure keyboard works on Esche.
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Change-Id: Ifa909a3b18560d134077a7f1d605f33c410ced08
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2455827
Reviewed-by: Ting Shen <phoenixshen@chromium.org>
(cherry picked from commit 8854567015d6f8f6c6edb8f10a33ebff4366369a)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2467596
Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r-- | board/burnet/board.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/burnet/board.c b/board/burnet/board.c index 77d9cbe780..a9555ce95d 100644 --- a/board/burnet/board.c +++ b/board/burnet/board.c @@ -416,6 +416,10 @@ static void board_init(void) board_spi_enable(); } else { motion_sensor_count = 0; + /* Device is clamshell only */ + tablet_set_mode(0); + /* Turn off GMR interrupt */ + gmr_tablet_switch_disable(); /* Base accel is not stuffed, don't allow line to float */ gpio_set_flags(GPIO_ACCEL_INT_ODL, GPIO_INPUT | GPIO_PULL_DOWN); |