summaryrefslogtreecommitdiff
path: root/board/reef_it8320
diff options
context:
space:
mode:
authorDino Li <Dino.Li@ite.com.tw>2017-09-28 17:16:14 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-09-28 23:26:22 -0700
commit317d06b1008b019d79a1ce02be550db5d15ebff4 (patch)
tree718604c4c0c8e545c0c249838692c1e56ae8b6d1 /board/reef_it8320
parentdbe97d185196933580840f737b7da98767a66b84 (diff)
downloadchrome-ec-317d06b1008b019d79a1ce02be550db5d15ebff4.tar.gz
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 <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/689715 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/reef_it8320')
-rw-r--r--board/reef_it8320/board.c10
-rw-r--r--board/reef_it8320/board.h2
2 files changed, 12 insertions, 0 deletions
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