summaryrefslogtreecommitdiff
path: root/common/usb_pd_console_cmd.c
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2020-06-03 11:06:53 -0600
committerCommit Bot <commit-bot@chromium.org>2020-06-11 19:44:59 +0000
commitb9203fa3b2b032c3aa7b2e3ccfb01dce7eea8f22 (patch)
tree7969549ba4fdc71e0d4427765543330f8f40df11 /common/usb_pd_console_cmd.c
parent7b2203f0e45e6dc653aec4bc4c5cd4b72e844b9f (diff)
downloadchrome-ec-b9203fa3b2b032c3aa7b2e3ccfb01dce7eea8f22.tar.gz
TCPMv2: Support mode entry for SOP' and SOP''
Add a transmit type parameter to functions involved in mode entry; also add such a parameter to various functions calling those functions. For DisplayPort-specific definitions or calls, specify SOP; we do not currently support DisplayPort mode for cable plugs. For TCPMv1-specific code, specify SOP. TCPMv1 generally assumes that the discovery/mode structures are 1-dimensional, as they were previously, and changing that is outside the scope of this CL. BUG=b:155890173 TEST=Enter DP mode on Volteer with TCPMv2 TEST=Enter DP mode on Volteer with TCPMv1 TEST=Enter TBT mode on Volteer with TCPMV1 BRANCH=none Change-Id: I8afc75b3f3be8939c4645058ac4a31f24c88fb9e Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2229279 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'common/usb_pd_console_cmd.c')
-rw-r--r--common/usb_pd_console_cmd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/usb_pd_console_cmd.c b/common/usb_pd_console_cmd.c
index 22039eddc3..3fc6a6f35f 100644
--- a/common/usb_pd_console_cmd.c
+++ b/common/usb_pd_console_cmd.c
@@ -64,7 +64,8 @@ static void dump_pe(int port)
disc->svids[i].mode_vdo[j]);
ccprintf("\n");
- modep = pd_get_amode_data(port, disc->svids[i].svid);
+ modep = pd_get_amode_data(port, TCPC_TX_SOP,
+ disc->svids[i].svid);
if (modep) {
mode_caps = modep->data->mode_vdo[modep->opos - 1];
ccprintf("MODE[%d]: svid:%04x caps:%08x\n", modep->opos,