summaryrefslogtreecommitdiff
path: root/board/gumboz
diff options
context:
space:
mode:
authorJason.Guo <jason.guo@quanta.corp-partner.google.com>2020-12-09 16:55:02 +0800
committerCommit Bot <commit-bot@chromium.org>2020-12-18 15:16:09 +0000
commit7bdb869c673ef8a98e5a4bf70753dd26d9098685 (patch)
tree4a92f25c5768151adc90420e118712098b8fb13f /board/gumboz
parentdc600167b10cef3561b9d1cef591b82776a33b77 (diff)
downloadchrome-ec-7bdb869c673ef8a98e5a4bf70753dd26d9098685.tar.gz
gumboz: enable GMR sensor for tablet mode
BUG=none BRANCH=zork TEST=Check screen rotation with tablet mode. Check keyboard disabled and on-screen keyboard enabled with tablet mode. Signed-off-by: jason.guo@quanta.corp-partner.google.com Change-Id: Ieb0935d39d385cc8d4c0bb35379ddd1370b15b8b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2581134 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Edward Hill <ecgh@chromium.org>
Diffstat (limited to 'board/gumboz')
-rw-r--r--board/gumboz/board.h2
-rw-r--r--board/gumboz/gpio.inc1
2 files changed, 3 insertions, 0 deletions
diff --git a/board/gumboz/board.h b/board/gumboz/board.h
index 23912d5ff1..178ee0a013 100644
--- a/board/gumboz/board.h
+++ b/board/gumboz/board.h
@@ -42,6 +42,8 @@
#define CONFIG_CMD_ACCELS
#define CONFIG_CMD_ACCEL_INFO
#define CONFIG_TABLET_MODE
+#define CONFIG_GMR_TABLET_MODE
+#define GMR_TABLET_MODE_GPIO_L GPIO_TABLET_MODE_L
#define CONFIG_LID_ANGLE
#define CONFIG_LID_ANGLE_UPDATE
#define CONFIG_LID_ANGLE_SENSOR_BASE BASE_ACCEL
diff --git a/board/gumboz/gpio.inc b/board/gumboz/gpio.inc
index 273386e856..9beaecc17a 100644
--- a/board/gumboz/gpio.inc
+++ b/board/gumboz/gpio.inc
@@ -20,6 +20,7 @@ GPIO_INT(S0_PWROK_OD, PIN(5, 6), GPIO_INT_BOTH, power_signal_interrupt)
GPIO_INT(EC_PWROK_OD, PIN(3, 7), GPIO_INT_BOTH, power_signal_interrupt)
GPIO_INT(EC_PWR_BTN_ODL, PIN(0, 1), GPIO_INT_BOTH, power_button_interrupt)
GPIO_INT(LID_OPEN, PIN(D, 2), GPIO_INT_BOTH | GPIO_HIB_WAKE_HIGH, lid_interrupt)
+GPIO_INT(TABLET_MODE_L, PIN(4, 4), GPIO_INT_BOTH, gmr_tablet_switch_isr)
GPIO_INT(ACOK_OD, PIN(0, 0), GPIO_INT_BOTH | GPIO_HIB_WAKE_HIGH, extpower_interrupt)
GPIO_INT(EC_WP_L, PIN(5, 0), GPIO_INT_BOTH, switch_interrupt)
GPIO_INT(VOLDN_BTN_ODL, PIN(A, 6), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)