diff options
author | Eric Yilun Lin <yllin@chromium.org> | 2020-02-26 16:38:55 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-03-03 09:29:25 +0000 |
commit | 8bd1645dd4c3777db7070702711c3445b365ebb4 (patch) | |
tree | 778d2f42dcfb3ca4289daa9326c3e3fcf66e3d3d /board/servo_v4 | |
parent | 6020472e12860d58ec3cf2d6336e4eecc2017b63 (diff) | |
download | chrome-ec-8bd1645dd4c3777db7070702711c3445b365ebb4.tar.gz |
servo_v4: print PD-comm capability with cc command
Support to print the PD-comm information for FAFT.
BRANCH=servo
BUG=b:150185455
TEST=ensure cc print the correct output at SNK/SRC roles
Cq-Depend: chromium:2072543, chromium:2073423
Change-Id: Ia8c8a373eaab31a13f70e3422bf6dafcc27f92f1
Signed-off-by: Eric Yilun Lin <yllin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2072567
Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'board/servo_v4')
-rw-r--r-- | board/servo_v4/usb_pd_policy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/board/servo_v4/usb_pd_policy.c b/board/servo_v4/usb_pd_policy.c index 1759d18b54..23814a1d64 100644 --- a/board/servo_v4/usb_pd_policy.c +++ b/board/servo_v4/usb_pd_policy.c @@ -797,6 +797,7 @@ static void print_cc_mode(void) ccprintf("drp enabled: %s\n", cc_config & CC_ENABLE_DRP ? "on" : "off"); ccprintf("cc polarity: %s\n", cc_config & CC_POLARITY ? "cc2" : "cc1"); + ccprintf("pd enabled: %s\n", pd_comm_is_enabled(DUT) ? "on" : "off"); } |