summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben.chen2@quanta.corp-partner.google.com <ben.chen2@quanta.corp-partner.google.com>2019-09-26 20:25:50 +0800
committerCommit Bot <commit-bot@chromium.org>2019-09-27 08:08:44 +0000
commit06965455e406e113eb0aa497e29d7b4d291c6b32 (patch)
tree349229bb6f5f473fe6a4a1fd32f103cdf400c444
parent7d3b318f8d77f039eb1fa6c7df7f33a7ca77b262 (diff)
downloadchrome-ec-06965455e406e113eb0aa497e29d7b4d291c6b32.tar.gz
Kindred:Disable tablet mode depends on sku id define
Fix sku id define convertible and clamshell only. BUG=b:141597200 BRANCH=Master TEST=check ec console log, tablet mode disabled message Change-Id: I0df7b893504f7cfafb2068c1bad4f4cc5f67aa70 Signed-off-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1826698 Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rw-r--r--board/kindred/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/kindred/board.c b/board/kindred/board.c
index f458e38f7e..2157deb4b7 100644
--- a/board/kindred/board.c
+++ b/board/kindred/board.c
@@ -33,6 +33,7 @@
#include "spi.h"
#include "switch.h"
#include "system.h"
+#include "tablet_mode.h"
#include "task.h"
#include "temp_sensor.h"
#include "thermal.h"
@@ -418,6 +419,8 @@ static void board_update_sensor_config_from_sku(void)
CPRINTS("Motion Sensor Count = %d", motion_sensor_count);
} else {
motion_sensor_count = 0;
+ /* Device is clamshell only */
+ tablet_disable();
/* Base accel is not stuffed, don't allow line to float */
gpio_set_flags(GPIO_BASE_SIXAXIS_INT_L,
GPIO_INPUT | GPIO_PULL_DOWN);