diff options
author | tony.tang <tony.tang@lcfc.corp-partner.google.com> | 2022-01-18 15:37:03 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-19 06:38:26 +0000 |
commit | 19d3f435b93c6c93d9cea34a40b3ccfdf9c02e5b (patch) | |
tree | 63acf5ce736e2a83c3f9da9750db822f2e5f66ed /board/taniks | |
parent | bf45efbbe3497a01364bfad793489cfddbd7d34c (diff) | |
download | chrome-ec-19d3f435b93c6c93d9cea34a40b3ccfdf9c02e5b.tar.gz |
taniks: Remove G sensor/motionsense support
Remove G sensor/motionsense support
BRANCH=brya
BUG=b:211078551
TEST=make buildall -j
Signed-off-by: tony.tang <tony.tang@lcfc.corp-partner.google.com>
Change-Id: Ia130b58bf500a0e387761d28392ee24e355e062a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3397560
Reviewed-by: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/taniks')
-rw-r--r-- | board/taniks/sensors.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/taniks/sensors.c b/board/taniks/sensors.c index ca8afa7f8d..e546e0e42b 100644 --- a/board/taniks/sensors.c +++ b/board/taniks/sensors.c @@ -18,8 +18,9 @@ #include "temp_sensor.h" #include "thermal.h" #include "temp_sensor/thermistor.h" +#include "tablet_mode.h" -#if 0 +#if 1 #define CPRINTS(format, args...) ccprints(format, ## args) #define CPRINTF(format, args...) ccprintf(format, ## args) #else @@ -314,6 +315,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); |