summaryrefslogtreecommitdiff
path: root/board/twinkie/gpio.inc
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2014-06-09 15:03:35 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-11 02:22:50 +0000
commitb50e5a8b3066cdab6cb98f25038ef8649410ce2a (patch)
tree54d207d5e9f8153f017711f63649e6024ba0174b /board/twinkie/gpio.inc
parent5822d01f99f09443dc81dd9a85143047a0e1a1c7 (diff)
downloadchrome-ec-b50e5a8b3066cdab6cb98f25038ef8649410ce2a.tar.gz
twinkie: add config to behave as a PD message injector
Add a compile-time configuration to make Twinkie behave as a USB Power Delivery consumer/provider device rather than a transparent sniffer. To use it, edit board/twinkie/ec.tasklist: enable the PD task and comment out the SNIFFER task. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=none BUG=none TEST=connect it to a Fruitpie and use "pd charger" command on Twinkie console, see the Fruitpie receiving the source capabilities and answering. Change-Id: Ic2b4ba2d166ea1d3f5f9be410453a030a4ee7b68 Reviewed-on: https://chromium-review.googlesource.com/204168 Reviewed-by: Todd Broch <tbroch@chromium.org> Commit-Queue: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/twinkie/gpio.inc')
-rw-r--r--board/twinkie/gpio.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/twinkie/gpio.inc b/board/twinkie/gpio.inc
index cfb565c753..181603148c 100644
--- a/board/twinkie/gpio.inc
+++ b/board/twinkie/gpio.inc
@@ -4,8 +4,8 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
-GPIO(CC2_ALERT_L, A, 7, GPIO_INT_FALLING, cc2_event)
-GPIO(VBUS_ALERT_L, B, 2, GPIO_INT_FALLING, vbus_event)
+GPIO(CC2_ALERT_L, A, 7, GPIO_INT_BOTH | GPIO_PULL_UP, cc2_event)
+GPIO(VBUS_ALERT_L, B, 2, GPIO_INT_BOTH | GPIO_PULL_UP, vbus_event)
GPIO(CC1_EN, A, 0, GPIO_OUT_HIGH, NULL)
GPIO(CC1_PD, A, 1, GPIO_ANALOG, NULL)