diff options
author | Scott <scollyer@chromium.org> | 2017-01-12 18:38:39 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-01-26 23:16:40 -0800 |
commit | 58e18da39fb2f93d72ac8009f71cddc9e500b2f2 (patch) | |
tree | 217d3f06968f7c61b464ce6823f69120c42be24e /driver | |
parent | f102027b106071ac515cf487abc70558e8e4f4ea (diff) | |
download | chrome-ec-58e18da39fb2f93d72ac8009f71cddc9e500b2f2.tar.gz |
servo_v4: pd: Added Device Test System support
- Modified src attach state to enable vbus when debug accessory is
detected.
- servo_v4 has two pd ports, but each port requires a different default
power role. Port 0 can only ever be a SNK, but port 1 which acts is
intended to be a DTS port should default to a SRC so it can be be a
source debug accessory. It may also act as a sink debug accessory, but
is not intended to toggle automatically but will swap roles if
necessary via pd role swap messaging.
- Add hook for ccd enable/disable for DTS mode
BUG=chrome-os-partner:61878
BRANCH=servo
TEST=Manual Verfied that can still build servo_v4 project. All changes
in this CL are contingent on config option CONFIG_USB_PD_DTS being enabled.
Change-Id: Iab968b6fbdfc8f2d155c4f8618921b32f313b9ec
Signed-off-by: Scott <scollyer@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/428308
Commit-Ready: Scott Collyer <scollyer@chromium.org>
Tested-by: Scott Collyer <scollyer@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/tcpm/it83xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/tcpm/it83xx.c b/driver/tcpm/it83xx.c index d31a00ecec..4c24a84b13 100644 --- a/driver/tcpm/it83xx.c +++ b/driver/tcpm/it83xx.c @@ -321,7 +321,7 @@ static void it83xx_set_cc(enum usbpd_port port, int pull) static int it83xx_tcpm_init(int port) { /* Initialize physical layer */ - it83xx_init(port, PD_ROLE_DEFAULT); + it83xx_init(port, PD_ROLE_DEFAULT(port)); return EC_SUCCESS; } |