diff options
author | Edward Hill <ecgh@chromium.org> | 2019-03-28 14:56:00 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-03-30 16:55:35 -0700 |
commit | 77babe86a1b7f3e9bedc32e255d76279c8a3c03e (patch) | |
tree | aaea76c1d97c47282c3c2bcf51f6e00c8ec7faff /board/aleena | |
parent | 84ba15bdb58a9f2a13d1aabbc095d96ffaa1c09b (diff) | |
download | chrome-ec-77babe86a1b7f3e9bedc32e255d76279c8a3c03e.tar.gz |
aleena: Set mode to clamshell for non-convertible SKUs
For clamshell Aleena SKUs, a call to tablet_set_mode(0) is required
on boot. Otherwise we default to tablet mode.
BUG=b:129416203
BRANCH=grunt
TEST=Keyboard and touchpad work on Kasumi
Change-Id: I61dedead5d883335fca06d95dd0dcdddaf831e33
Signed-off-by: Edward Hill <ecgh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1544635
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/aleena')
-rw-r--r-- | board/aleena/board.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/board/aleena/board.c b/board/aleena/board.c index 5c235b7cad..50d310a5b8 100644 --- a/board/aleena/board.c +++ b/board/aleena/board.c @@ -34,6 +34,7 @@ #include "registers.h" #include "switch.h" #include "system.h" +#include "tablet_mode.h" #include "task.h" #include "tcpci.h" #include "temp_sensor.h" @@ -110,6 +111,8 @@ void board_update_sensor_config_from_sku(void) gpio_enable_interrupt(GPIO_6AXIS_INT_L); } else { motion_sensor_count = 0; + /* Device is clamshell only */ + tablet_set_mode(0); /* Gyro is not present, don't allow line to float */ gpio_set_flags(GPIO_6AXIS_INT_L, GPIO_INPUT | GPIO_PULL_DOWN); |