summaryrefslogtreecommitdiff
path: root/board/hammer/gpio.inc
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@google.com>2016-11-04 17:09:50 +0800
committerchrome-bot <chrome-bot@chromium.org>2016-11-09 04:41:10 -0800
commit3857a3487340b246e66bcc3d146b36db0daf62e4 (patch)
treefa25bfa7364ef85dc3a2391c1813a1e5176956dd /board/hammer/gpio.inc
parentde0f53afef1822cd32c917d91452ff6eec5fd17f (diff)
downloadchrome-ec-3857a3487340b246e66bcc3d146b36db0daf62e4.tar.gz
hammer: Add elan trackpad supportstabilize-8975.B
BRANCH=none BUG=chrome-os-partner:59083 TEST=make BOARD=hammer -j && bash flash_hammer Change-Id: I8b0e2f3e33f48622097ce698c9548d3e96ac75f1 Reviewed-on: https://chromium-review.googlesource.com/407741 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/hammer/gpio.inc')
-rw-r--r--board/hammer/gpio.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/hammer/gpio.inc b/board/hammer/gpio.inc
index 5825d08310..8bba90b5da 100644
--- a/board/hammer/gpio.inc
+++ b/board/hammer/gpio.inc
@@ -5,6 +5,11 @@
* found in the LICENSE file.
*/
+/* Declare symbolic names for all the GPIOs that we care about.
+ * Note: Those with interrupt handlers must be declared first. */
+
+GPIO_INT(TOUCHPAD_INT, PIN(A, 1), GPIO_INT_FALLING | GPIO_PULL_UP, elan_tp_interrupt)
+
/* I2C pins should be configured as inputs until I2C module is */
/* initialized. This will avoid driving the lines unintentionally.*/
GPIO(MASTER_I2C_SCL, PIN(B, 8), GPIO_INPUT)