diff options
author | Nick Sanders <nsanders@chromium.org> | 2018-05-21 19:20:32 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-15 20:36:10 -0700 |
commit | 0c94bad3ebecb4f33544ffb3b136746d044c4ea9 (patch) | |
tree | 0afb0d601c129e794388eacf235a238cdbed5929 /board/plankton | |
parent | 84d2e6824b8eaa68dc0d0920822a5c6489005683 (diff) | |
download | chrome-ec-0c94bad3ebecb4f33544ffb3b136746d044c4ea9.tar.gz |
servo_v4: add per port dualrole setting
This adds support to configure dualrole setting
per port, so that servo v4 can adjust charge and
dut port separately.
servo will detect charge capability on CHG port
and choose source or sink as appropriate.
Fix null dereference bug in genvif duel to dynamic src_pdo.
"cc" command allows src, snk, srcdts, snkdts configurations.
BRANCH=None
BUG=b:72557427
TEST=charge through and also passive hub. Note Dru doesn't accept DTS hub.
TEST=make buildall -j
Change-Id: I19f1d1a5c37647fec72202191faa4821c06fb460
Signed-off-by: Nick Sanders <nsanders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1096654
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/plankton')
-rw-r--r-- | board/plankton/board.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/plankton/board.c b/board/plankton/board.c index b725989047..5cd9e54486 100644 --- a/board/plankton/board.c +++ b/board/plankton/board.c @@ -279,7 +279,7 @@ static void update_usbc_dual_role(int dual_role) hook_call_deferred(&detect_cc_cable_data, 0); } /* Update dual role setting used in USB PD protocol state machine */ - pd_set_dual_role(dual_role); + pd_set_dual_role(0, dual_role); cprintf(CC_USBPD, "DRP = %d, host_mode = %d\n", drp_enable, host_mode); } |