summaryrefslogtreecommitdiff
path: root/board/volteer/gpio.inc
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2019-08-15 13:04:43 -0600
committerCommit Bot <commit-bot@chromium.org>2019-08-20 15:32:39 +0000
commit6fe0f643a1012d6aff2fe9874619238aa2e2284b (patch)
tree9890f9553e67cc2e3fd4193baa345371ad7b7934 /board/volteer/gpio.inc
parentd7bb1b0e0a24571f01ca048185bd8b9d882c4f8f (diff)
downloadchrome-ec-6fe0f643a1012d6aff2fe9874619238aa2e2284b.tar.gz
Volteer: initial EC board setup
Create Volteer skeleton build. Only includes base NPCX7 configuration required to build. BUG=none BRANCH=none TEST=make BOARD=volteer, make buildall TEST=Booted skeleton volteer EC image on careena board. Change-Id: I07769edfac9818320f18bbc9d0ebcd8f345fb8bb Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1758532 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/volteer/gpio.inc')
-rw-r--r--board/volteer/gpio.inc34
1 files changed, 34 insertions, 0 deletions
diff --git a/board/volteer/gpio.inc b/board/volteer/gpio.inc
new file mode 100644
index 0000000000..7b9ee14a04
--- /dev/null
+++ b/board/volteer/gpio.inc
@@ -0,0 +1,34 @@
+/* -*- mode:c -*-
+ *
+ * Copyright 2019 The Chromium OS Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * 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. */
+
+/* Wake Source interrupts */
+GPIO_INT(EC_LID_OPEN, PIN(D, 2), GPIO_INT_BOTH | GPIO_HIB_WAKE_HIGH, lid_interrupt)
+GPIO_INT(EC_WP_L, PIN(A, 1), GPIO_INT_BOTH, switch_interrupt)
+
+/* Power sequencing interrupts */
+
+/* Sensor Interrupts */
+
+/* USB-C interrupts */
+
+/* HDMI interrupts */
+
+/* Volume button interrupts */
+
+/* AP Signals */
+GPIO(EC_ENTERING_RW, PIN(E, 3), GPIO_OUT_LOW)
+
+/* USB and USBC Signals */
+
+/* Misc Signals */
+
+/* UART */
+ALTERNATE(PIN_MASK(6, BIT(5) | BIT(4)), 0, MODULE_UART, 0) /* UART from EC to Servo */
+