summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramber.chen <amber.chen@lcfc.corp-partner.google.com>2022-01-20 10:23:09 +0800
committerCommit Bot <commit-bot@chromium.org>2022-01-20 11:45:52 +0000
commit765d56243a2a8d612c1f82418d174d8421fe0530 (patch)
tree5e75f57d1450a87115c6d7e4eb15ecd69a327c63
parent68c100aa8208905512e5e1a577b0405204e4913d (diff)
downloadchrome-ec-stabilize-14469.9.B-main.tar.gz
De-feature G sensor BRANCH=main BUG=b:214317519 TEST=make -j BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: I226041c1e52230b444e4d8c48d1785fd3106c918 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3403359 Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r--board/taeko/sensors.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/taeko/sensors.c b/board/taeko/sensors.c
index f12e2a9f94..4d5d72b062 100644
--- a/board/taeko/sensors.c
+++ b/board/taeko/sensors.c
@@ -18,6 +18,7 @@
#include "temp_sensor.h"
#include "thermal.h"
#include "temp_sensor/thermistor.h"
+#include "tablet_mode.h"
#if 0
#define CPRINTS(format, args...) ccprints(format, ## args)
@@ -331,6 +332,8 @@ static void baseboard_sensors_init(void)
} else {
CPRINTS("Clamshell");
motion_sensor_count = 0;
+ gmr_tablet_switch_disable();
+ gpio_set_flags(GPIO_TABLET_MODE_L, GPIO_INPUT | GPIO_PULL_DOWN);
/* Gyro is not present, don't allow line to float */
gpio_set_flags(GPIO_EC_IMU_INT_R_L, GPIO_INPUT |
GPIO_PULL_DOWN);