summaryrefslogtreecommitdiff
path: root/board/lazor/gpio.inc
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-03-26 15:57:07 -0700
committerCommit Bot <commit-bot@chromium.org>2020-04-09 01:39:48 +0000
commit1fa8c8eb918d7f7fd136bd31a3ac24f88b34cb6d (patch)
tree50aff6b4553ccf8dbe543d2494c7b864a6a3a11f /board/lazor/gpio.inc
parent3b831bbf6ee24a09ef65064d7374e6ef7960eedf (diff)
downloadchrome-ec-1fa8c8eb918d7f7fd136bd31a3ac24f88b34cb6d.tar.gz
Lazor: Support tablet mode
Add functions to support tablet mode: * Lid acceleration definitions * TABLET_MODE_L interrupt * Lid angle detection that disables keyboard BRANCH=None BUG=b:150793669 TEST=Built the Lazor image successfully. Change-Id: I2622bdb1c4899f70b8dd1321b33cac9306fd4abb Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2122838 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'board/lazor/gpio.inc')
-rw-r--r--board/lazor/gpio.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/lazor/gpio.inc b/board/lazor/gpio.inc
index cfbdbbf9cd..935bb5376d 100644
--- a/board/lazor/gpio.inc
+++ b/board/lazor/gpio.inc
@@ -40,6 +40,7 @@ GPIO_INT(WARM_RESET_L, PIN(F, 4), GPIO_INT_BOTH | GPIO_SEL_1P8V, chipset_wa
GPIO_INT(AP_EC_SPI_CS_L, PIN(5, 3), GPIO_INT_FALLING | GPIO_PULL_DOWN, shi_cs_event) /* EC SPI Chip Select */
/* Sensor interrupts */
+GPIO_INT(TABLET_MODE_L, PIN(C, 6), GPIO_INT_BOTH, gmr_tablet_switch_isr)
GPIO_INT(ACCEL_GYRO_INT_L, PIN(A, 0), GPIO_INT_FALLING | GPIO_SEL_1P8V, bmi160_interrupt) /* Accelerometer/gyro interrupt */
/*
@@ -71,7 +72,6 @@ GPIO(EN_PP5000_A, PIN(6, 7), GPIO_OUT_LOW) /* Enable PP5000 */
GPIO(EC_BL_DISABLE_L, PIN(B, 6), GPIO_OUT_LOW) /* Backlight disable signal from EC */
/* Sensors */
-GPIO(TABLET_MODE_L, PIN(C, 6), GPIO_INPUT)
GPIO(LID_ACCEL_INT_L, PIN(5, 6), GPIO_INPUT) /* Lid accel sensor interrupt */
/* Control the gate for trackpad IRQ. High closes the gate.
* This is always set low so that the OS can manage the trackpad. */