summaryrefslogtreecommitdiff
path: root/board/eve/gpio.inc
diff options
context:
space:
mode:
authorJagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com>2018-03-13 12:01:04 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-03-21 23:23:38 -0700
commitb073dba72adb9642fd3ec874ddb49fcb071afbfa (patch)
tree0210ee5694e6af1d4b1ab1e852487dcb82416058 /board/eve/gpio.inc
parenta615f3c7d3787b8f7be9a82c292228ed26eda963 (diff)
downloadchrome-ec-b073dba72adb9642fd3ec874ddb49fcb071afbfa.tar.gz
Eve: Enable usb device modefactory-poppy-10509.B
For the dual data role, when the state is UFP assert the otg pins to activate the usb device controller. This will enable usb gadget mode and the board will act as usb device instead of host. For DFP state, de-assert the otg pins to activate the host mode. BUG=b:74339386 BRANCH=NONE TEST=Connect two Eve boards with the usb type c cable. On ec console, type the command usb pd 0 swap data. pd 0 state should return UFP mode. Verify that the otg pins are high (USB2_OTG_ID and USB2_OTG_VBUSSENSE). Change-Id: I0efb08ae3946ff09ce9dfeb89cff049e551fe000 Signed-off-by: Jagadish Krishnamoorthy <jagadish.krishnamoorthy@intel.com> Reviewed-on: https://chromium-review.googlesource.com/961381 Reviewed-by: Divya S Sasidharan <divya.s.sasidharan@intel.com> Reviewed-by: Duncan Laurie <dlaurie@google.com>
Diffstat (limited to 'board/eve/gpio.inc')
-rw-r--r--board/eve/gpio.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/eve/gpio.inc b/board/eve/gpio.inc
index fe10d3cdee..f9b0c3cfc4 100644
--- a/board/eve/gpio.inc
+++ b/board/eve/gpio.inc
@@ -84,7 +84,7 @@ GPIO(USB_C0_DP_HPD, PIN(9, 4), GPIO_INPUT) /* C0 DP Hotplug Detect */
GPIO(USB_C1_DP_HPD, PIN(A, 5), GPIO_INPUT) /* C1 DP Hotplug Detect */
GPIO(USB_C0_TCPC_PWR, PIN(8, 4), GPIO_OUT_LOW) /* Enable C0 TCPC Power */
GPIO(USB_C1_TCPC_PWR, PIN(0, 0), GPIO_OUT_LOW) /* Enable C1 TCPC Power */
-GPIO(USB2_OTG_ID, PIN(A, 1), GPIO_ODR_LOW) /* OTG ID */
+GPIO(USB2_OTG_ID, PIN(A, 1), GPIO_OUT_LOW) /* OTG ID */
GPIO(USB2_OTG_VBUSSENSE, PIN(9, 5), GPIO_OUT_LOW) /* OTG VBUS Sense */
/* Board ID */