diff options
author | Scott <scollyer@chromium.org> | 2016-12-08 09:39:11 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-09 23:47:28 -0800 |
commit | 72b1fd92132c8e346895b490753a2aca401ef88a (patch) | |
tree | 8924c1d0fbbc5549e80903300748a642f992cbb9 /board/servo_v4/gpio.inc | |
parent | 1765faf803fc2af034938838816790d81f77d4c9 (diff) | |
download | chrome-ec-72b1fd92132c8e346895b490753a2aca401ef88a.tar.gz |
servo_v4: Added initial USB PD support for both CHG/DUT ports
- CHG port can connect as SNK at different voltage levels
- DUT port presents as SNK only
- DUT port uses fixed polarity since it has a fixed cable
- Not supporting ALT or ALT_DP modes in terms of svdm messages at
this point.
- No support yet for USB mux.
BUG=chromium:571476
BRANCH=None
TEST=Manual
CHG port: Tested with Zinger and Plankton and 5/12/20V VBUS levels.
DUT port: Tested against Reef and verified that port reached SNK_READY.
Change-Id: Ib645872790912f9e0a0d4adddc10345a59145d3e
Signed-off-by: Scott <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/424413
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Nick Sanders <nsanders@chromium.org>
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'board/servo_v4/gpio.inc')
-rw-r--r-- | board/servo_v4/gpio.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/board/servo_v4/gpio.inc b/board/servo_v4/gpio.inc index ab146777d9..b0d8f124f1 100644 --- a/board/servo_v4/gpio.inc +++ b/board/servo_v4/gpio.inc @@ -47,7 +47,7 @@ GPIO(USB_DUT_CC2_TX_DATA, PIN(C, 2), GPIO_INPUT) GPIO(USB_DUT_CC1_RP3A0, PIN(C, 0), GPIO_INPUT) GPIO(USB_DUT_CC1_RP1A5, PIN(C, 1), GPIO_INPUT) GPIO(USB_DUT_CC1_RPUSB, PIN(C, 3), GPIO_INPUT) -GPIO(USB_DUT_CC1_RD, PIN(C, 6), GPIO_OUT_LOW) +GPIO(USB_DUT_CC1_RD, PIN(C, 6), GPIO_INPUT) GPIO(USB_DUT_CC1_RA, PIN(C, 7), GPIO_INPUT) GPIO(USB_DUT_CC2_RP3A0, PIN(C, 8), GPIO_INPUT) @@ -62,7 +62,6 @@ GPIO(USB_CHG_TX_CLKIN, PIN(B, 3), GPIO_INPUT) GPIO(USB_DUT_TX_CLKOUT, PIN(B, 15), GPIO_INPUT) GPIO(USB_DUT_TX_CLKIN, PIN(B, 13), GPIO_INPUT) - /* 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, 10), GPIO_INPUT) @@ -75,7 +74,6 @@ UNIMPLEMENTED(WP_L) ALTERNATE(PIN_MASK(C, 0x0030), 1, MODULE_USART, 0) /* USART3: PC4/PC5 - Servo DUT UART */ ALTERNATE(PIN_MASK(C, 0x0C00), 0, MODULE_USART, 0) /* USART4: PC10/PC11 - Servo UART3 */ ALTERNATE(PIN_MASK(B, 0x0C00), 1, MODULE_I2C, GPIO_ODR_HIGH) /* I2C MASTER:PB8/9 */ - ALTERNATE(PIN_MASK(B, 0x0008), 0, MODULE_USB_PD, 0) /* SPI1_SCK: PB3 */ ALTERNATE(PIN_MASK(B, 0x2000), 0, MODULE_USB_PD, 0) /* SPI2_SCK: PB13 */ ALTERNATE(PIN_MASK(B, 0x0100), 2, MODULE_USB_PD, 0) /* TIM16_CH1: PB8 */ |