diff options
author | Duncan Laurie <dlaurie@google.com> | 2017-06-02 06:54:07 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-06-02 12:25:47 -0700 |
commit | 1444ace29f0b3455a606e685b50085cd6d777a61 (patch) | |
tree | d19b878ef09d7b44ee98b40d7a0c721994b7ee9f /board/eve/gpio.inc | |
parent | 9b28aa45314a86d383b0f5405438e8f465bc7018 (diff) | |
download | chrome-ec-1444ace29f0b3455a606e685b50085cd6d777a61.tar.gz |
eve: Swap volume up and down GPIO
The buton behavior is inverted if we follow the schematic, so swap the
GPIO on these inputs so they match the expected behavior.
BUG=b:62120390
BRANCH=none
TEST=manual test of side volume button behavior
Change-Id: I0ad18b4a15fcc2832d97dfad3b03186180e4517a
Signed-off-by: Duncan Laurie <dlaurie@google.com>
Reviewed-on: https://chromium-review.googlesource.com/522410
Reviewed-by: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'board/eve/gpio.inc')
-rw-r--r-- | board/eve/gpio.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/board/eve/gpio.inc b/board/eve/gpio.inc index 7ae031940c..6413c465ab 100644 --- a/board/eve/gpio.inc +++ b/board/eve/gpio.inc @@ -18,8 +18,9 @@ GPIO_INT(PMIC_DPWROK, PIN(9, 7), GPIO_INT_BOTH, power_signal_interrupt) GPIO_INT(POWER_BUTTON_L, PIN(0, 4), GPIO_INT_BOTH | GPIO_PULL_UP, power_button_interrupt) GPIO_INT(LID_OPEN, PIN(6, 7), GPIO_INT_BOTH, lid_interrupt) GPIO_INT(TABLET_MODE_L, PIN(3, 6), GPIO_INT_BOTH, tablet_mode_interrupt) -GPIO_INT(VOLUME_DOWN_L, PIN(8, 3), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt) -GPIO_INT(VOLUME_UP_L, PIN(8, 2), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt) +/* Volume buttons are swapped in the schematic */ +GPIO_INT(VOLUME_DOWN_L, PIN(8, 2), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt) +GPIO_INT(VOLUME_UP_L, PIN(8, 3), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt) GPIO_INT(WP_L, PIN(4, 0), GPIO_INT_BOTH, switch_interrupt) GPIO_INT(AC_PRESENT, PIN(C, 1), GPIO_INT_BOTH, extpower_interrupt) GPIO_INT(ACCELGYRO3_INT_L, PIN(9, 3), GPIO_INT_FALLING, bmi160_interrupt) |