summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2017-08-21 17:11:45 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-08-22 12:38:46 -0700
commitaf6024cc08753d47d05582759a5001ae9c81b93a (patch)
tree3cce1a9349092bc211a22bf6a6cb655438f072e6
parent00e022272938d3c3f8b5d60f11c960d9da5546ac (diff)
downloadchrome-ec-af6024cc08753d47d05582759a5001ae9c81b93a.tar.gz
coral: Remove volume up/dn button flip in gpio.inc
The Coral schematics are being changed to reflect that volume up is connected to GPIO83 and volume down to GPIO82. The current EC code implemented this same assignment, but introduced an intermediate signal name to match with previous schematics which had the opposite assignment. With the signal names fixed on the schematic, the intermediate #defines are no longer needed. BUG=b:64012307 BRANCH=None TEST=manual testing on Coral proto. Verified that up button presses cause the volume bar to go up and volume down button presses cause the volume bar to go down. Change-Id: Ib04f8416e8f36271972fc650bf1593a4babaeb82 Signed-off-by: Scott Collyer <scollyer@google.com> Reviewed-on: https://chromium-review.googlesource.com/625063 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
-rw-r--r--board/coral/gpio.inc10
1 files changed, 3 insertions, 7 deletions
diff --git a/board/coral/gpio.inc b/board/coral/gpio.inc
index 92b85071a5..d9074649d8 100644
--- a/board/coral/gpio.inc
+++ b/board/coral/gpio.inc
@@ -31,13 +31,9 @@ GPIO_INT(AC_PRESENT, PIN(C, 1), GPIO_INT_BOTH, extpower_interrupt) /* ACOK_OD
/* TODO: We might remove external pull-up for POWER_BUTTON_L in EVT */
GPIO_INT(POWER_BUTTON_L, PIN(0, 4), GPIO_INT_BOTH, power_button_interrupt) /* MECH_PWR_BTN_ODL */
GPIO_INT(LID_OPEN, PIN(6, 7), GPIO_INT_BOTH, lid_interrupt)
-/* Volume up and down buttons need to be swapped. The one closer to the hinge
- * should be volume up and the one closer to the user should be volume down.
- * (cros.bug/p/60057) */
-GPIO_INT(EC_VOLDN_BTN_ODL_SWAPPED, PIN(8, 3), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)
-GPIO_INT(EC_VOLUP_BTN_ODL_SWAPPED, PIN(8, 2), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)
-#define GPIO_EC_VOLDN_BTN_ODL GPIO_EC_VOLUP_BTN_ODL_SWAPPED
-#define GPIO_EC_VOLUP_BTN_ODL GPIO_EC_VOLDN_BTN_ODL_SWAPPED
+GPIO_INT(EC_VOLDN_BTN_ODL, PIN(8, 2), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)
+GPIO_INT(EC_VOLUP_BTN_ODL, PIN(8, 3), GPIO_INT_BOTH | GPIO_PULL_UP, button_interrupt)
+
/* Tablet switch is active-low. L: lid is attached (360 position) H: detached */
GPIO_INT(TABLET_MODE_L, PIN(3, 6), GPIO_INT_BOTH, tablet_mode_interrupt)