From 317d06b1008b019d79a1ce02be550db5d15ebff4 Mon Sep 17 00:00:00 2001 From: Dino Li Date: Thu, 28 Sep 2017 17:16:14 +0800 Subject: board: reef_it8320: Report device orientation isn't tablet mode We need to response EC ACPI device orientation command or keyboard/trackpad didn't work on OS image version R58 and after. BRANCH=none BUG=none TEST=keyboard and trackpad work on R58 and after. Change-Id: I49f9c90e73a5e529eb228169e4148f4dcd4a45e6 Signed-off-by: Dino Li Reviewed-on: https://chromium-review.googlesource.com/689715 Reviewed-by: Shawn N --- board/reef_it8320/board.c | 10 ++++++++++ board/reef_it8320/board.h | 2 ++ 2 files changed, 12 insertions(+) (limited to 'board/reef_it8320') diff --git a/board/reef_it8320/board.c b/board/reef_it8320/board.c index 8e9f97ad58..0b28899e02 100644 --- a/board/reef_it8320/board.c +++ b/board/reef_it8320/board.c @@ -311,11 +311,21 @@ static void chipset_pre_init(void) } DECLARE_HOOK(HOOK_CHIPSET_PRE_INIT, chipset_pre_init, HOOK_PRIO_DEFAULT); +static void board_set_tablet_mode(void) +{ + /* + * Always report device isn't in tablet mode because + * our id is clamshell and no TABLET_MODE_L pin + */ + tablet_set_mode(0); +} + /* Initialize board. */ static void board_init(void) { int port; + board_set_tablet_mode(); /* Enable charger interrupts */ gpio_enable_interrupt(GPIO_CHARGER_INT_L); diff --git a/board/reef_it8320/board.h b/board/reef_it8320/board.h index 44f2bd6d7c..952fcc63cf 100644 --- a/board/reef_it8320/board.h +++ b/board/reef_it8320/board.h @@ -115,9 +115,11 @@ #define CONFIG_LID_SWITCH #define CONFIG_LOW_POWER_IDLE #define CONFIG_POWER_SIGNAL_INTERRUPT_STORM_DETECT_THRESHOLD 30 +#define CONFIG_TABLET_MODE #define CONFIG_TEMP_SENSOR #define CONFIG_THERMISTOR_NCP15WB #define CONFIG_DPTF +#define CONFIG_DPTF_DEVICE_ORIENTATION #define CONFIG_SCI_GPIO GPIO_PCH_SCI_L #define CONFIG_VBOOT_HASH #define CONFIG_BACKLIGHT_LID -- cgit v1.2.1