diff options
author | Jett Rink <jettrink@chromium.org> | 2019-05-06 10:33:11 -0600 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-05-28 21:11:21 -0700 |
commit | e11d78dcf4ca4ecfe6ceecad0b892fd4993cb67c (patch) | |
tree | 72a3ce27d0980e14d901b51f07d11f3e0082215a /board/arcada_ish/gpio.inc | |
parent | 325d65d3b08903e7bd3c70d14875cc1dfbf1686d (diff) | |
download | chrome-ec-e11d78dcf4ca4ecfe6ceecad0b892fd4993cb67c.tar.gz |
arcada_ish: hook up 360 hall sensor to ISR
Ensure that 360-degree-hall sensor is hooked up to the tablet mode ISR,
which should in turn ignore any weird lid angle calculations when the
hall sensor is active (i.e. lid is at 360 degrees)
BRANCH=R75
BUG=b:131785573
TEST=arcada does not have spurious edges on the NB_MODE# signal when
the lid is all the way open in 360 degree mode.
Cq-Depend: chrome-internal:1329664
Change-Id: I1756bd909e5ecba7caa4565376f98f6d0dad6b06
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1597190
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Diffstat (limited to 'board/arcada_ish/gpio.inc')
-rw-r--r-- | board/arcada_ish/gpio.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/arcada_ish/gpio.inc b/board/arcada_ish/gpio.inc index 96a309d042..91c25fe632 100644 --- a/board/arcada_ish/gpio.inc +++ b/board/arcada_ish/gpio.inc @@ -6,10 +6,10 @@ */ GPIO_INT(ACCEL_GYRO_INT_L, PIN(0), GPIO_INT_FALLING, lsm6dsm_interrupt) -GPIO_INT(LID_OPEN, PIN(5), GPIO_INT_BOTH, lid_interrupt) /* LID_CL_NB_L */ +GPIO_INT(LID_OPEN, PIN(5), GPIO_INT_BOTH, lid_interrupt) /* LID_CL_NB_L */ +GPIO_INT(TABLET_MODE_L, PIN(6), GPIO_INT_BOTH, hall_sensor_isr) /* LID_CL_TAB_L */ -GPIO(NB_MODE_L, PIN(4), GPIO_OUT_LOW) -GPIO(LID_CL_TAB_L, PIN(6), GPIO_INPUT) +GPIO(NB_MODE_L, PIN(4), GPIO_OUT_LOW) /* * We don't have a ENTERING_RW signal wired to the cr50 but common code needs |