summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorAlec Berg <alecaberg@chromium.org>2014-11-05 09:03:21 -0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-11-11 00:10:52 +0000
commit493898bd6a9771f8b4bb588b7e59dbf9aa457228 (patch)
treef62d261f944464cacd2999623a095ffd3e65137d /include/usb_pd.h
parentdac8f1632139f21c96f55f3bcfdab7264f761559 (diff)
downloadchrome-ec-493898bd6a9771f8b4bb588b7e59dbf9aa457228.tar.gz
pd: add reject of data swap and vconn swap ctrl messages
Reject data and vconn swap control messages. BUG=none BRANCH=samus TEST=test with third party device that sends data and vconn swaps and make sure we send reject Change-Id: I6261e000f24ad8c886760601a8ad7da4502f82b7 Signed-off-by: Alec Berg <alecaberg@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/227584 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index bd19600282..1f6a4e97cb 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -560,9 +560,9 @@ enum pd_ctrl_msg_type {
PD_CTRL_PS_RDY = 6,
PD_CTRL_GET_SOURCE_CAP = 7,
PD_CTRL_GET_SINK_CAP = 8,
- PD_CTRL_PROTOCOL_ERR = 9,
+ PD_CTRL_DR_SWAP = 9,
PD_CTRL_PR_SWAP = 10,
- /* 11 Reserved */
+ PD_CTRL_VCONN_SWAP = 11,
PD_CTRL_WAIT = 12,
PD_CTRL_SOFT_RESET = 13,
/* 14-15 Reserved */