From 917504d719b1c0b9ec81602dc6fc5b15694cd83e Mon Sep 17 00:00:00 2001 From: Devin Lu Date: Wed, 7 Oct 2020 20:15:58 +0800 Subject: 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 Change-Id: Ifa909a3b18560d134077a7f1d605f33c410ced08 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2455827 Reviewed-by: Ting Shen (cherry picked from commit 8854567015d6f8f6c6edb8f10a33ebff4366369a) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2467596 Commit-Queue: Ting Shen --- board/burnet/board.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1