summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSue Chen <sue.chen@quanta.corp-partner.google.com>2021-09-16 14:53:53 +0800
committerCommit Bot <commit-bot@chromium.org>2021-09-28 04:21:01 +0000
commitae34721d1c0eea14baceda8ccbd95f8204f2240c (patch)
treeee455ca4fde57e863d8f81979591ebd38996bf1e
parent177a8a8bb7fe0bcb0d7ad8c1fd1a496d2462ccd8 (diff)
downloadchrome-ec-ae34721d1c0eea14baceda8ccbd95f8204f2240c.tar.gz
Pico: enable TABLET_MODE_L interrupt
BUG=b:200098147 BRANCH=icarus TEST=1. Switch to tablet mode for DUT 2. Reboot the DUT 3. Closing the lid to NB mode make sure DUT leave tablet mode. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I7f3dfbd5950370dd9615ec4568da3b1ca8512b80 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162468 Reviewed-by: Chen-Tsung Hsieh <chentsung@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/pico/gpio.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/pico/gpio.inc b/board/pico/gpio.inc
index dc12c5ce3f..34ac5cf7af 100644
--- a/board/pico/gpio.inc
+++ b/board/pico/gpio.inc
@@ -35,8 +35,9 @@ GPIO_INT(AP_EC_WATCHDOG_L, PIN(C, 7), GPIO_INT_FALLING | GPIO_SEL_1P8V,
chipset_watchdog_interrupt)
GPIO_INT(UART1_RX, PIN(B, 0), GPIO_INT_FALLING,
uart_deepsleep_interrupt) /* UART_DEBUG_TX_EC_RX */
+GPIO_INT(TABLET_MODE_L, PIN(J, 7), GPIO_INT_BOTH,
+ gmr_tablet_switch_isr)
/* Unimplemented interrupts */
-GPIO(TABLET_MODE_L, PIN(J, 7), GPIO_INPUT)
GPIO(VOLUME_DOWN_L, PIN(D, 5), GPIO_INPUT)
GPIO(VOLUME_UP_L, PIN(D, 6), GPIO_INPUT)
GPIO(ALS_RGB_INT_ODL, PIN(F, 0), GPIO_INPUT)