summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-12-16 20:45:41 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-09 00:44:44 +0000
commit88d46d61c3081b7fc32225f3aed7426a1d62e36e (patch)
tree82368a4b5a93e6eba6eb7d2c121a50fcdf7515c6 /include/usb_pd.h
parent6be1ff9b14b3593cfc6b657a41334cc8a7f5811d (diff)
downloadchrome-ec-88d46d61c3081b7fc32225f3aed7426a1d62e36e.tar.gz
tcpmv2: always issue SOP' soft reset
After entering a PD contract, always issue an SOP' soft reset before sending any discovery VDMs to the cable. BUG=b:172364575 BRANCH=volteer TEST=connect monitor with emarked cable, verify SOP' soft reset is sent when EC starts as SNK/DFP. TEST=Connect monitor with non-emark cable. Verify SOP' soft reset is sent once regardless of starting role. TEST=Connect USB4 dock, verify USB4 entry. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: Id5026a2c8c9877b860e1356dd33763bad3e51841 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2596838 Reviewed-by: Diana Z <dzigterman@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h41
1 files changed, 21 insertions, 20 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index e0f0ac0e28..f0997de7b0 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -956,26 +956,27 @@ enum pd_dual_role_states {
* NOTE: These are usually set by host commands from the AP.
*/
enum pd_dpm_request {
- DPM_REQUEST_DR_SWAP = BIT(0),
- DPM_REQUEST_PR_SWAP = BIT(1),
- DPM_REQUEST_VCONN_SWAP = BIT(2),
- DPM_REQUEST_GOTO_MIN = BIT(3),
- DPM_REQUEST_SRC_CAP_CHANGE = BIT(4),
- DPM_REQUEST_GET_SNK_CAPS = BIT(5),
- DPM_REQUEST_SEND_PING = BIT(6),
- DPM_REQUEST_SOURCE_CAP = BIT(7),
- DPM_REQUEST_NEW_POWER_LEVEL = BIT(8),
- DPM_REQUEST_VDM = BIT(9),
- DPM_REQUEST_BIST_TX = BIT(10),
- DPM_REQUEST_SNK_STARTUP = BIT(11),
- DPM_REQUEST_SRC_STARTUP = BIT(12),
- DPM_REQUEST_HARD_RESET_SEND = BIT(13),
- DPM_REQUEST_SOFT_RESET_SEND = BIT(14),
- DPM_REQUEST_PORT_DISCOVERY = BIT(15),
- DPM_REQUEST_SEND_ALERT = BIT(16),
- DPM_REQUEST_ENTER_USB = BIT(17),
- DPM_REQUEST_GET_SRC_CAPS = BIT(18),
- DPM_REQUEST_EXIT_MODES = BIT(19),
+ DPM_REQUEST_DR_SWAP = BIT(0),
+ DPM_REQUEST_PR_SWAP = BIT(1),
+ DPM_REQUEST_VCONN_SWAP = BIT(2),
+ DPM_REQUEST_GOTO_MIN = BIT(3),
+ DPM_REQUEST_SRC_CAP_CHANGE = BIT(4),
+ DPM_REQUEST_GET_SNK_CAPS = BIT(5),
+ DPM_REQUEST_SEND_PING = BIT(6),
+ DPM_REQUEST_SOURCE_CAP = BIT(7),
+ DPM_REQUEST_NEW_POWER_LEVEL = BIT(8),
+ DPM_REQUEST_VDM = BIT(9),
+ DPM_REQUEST_BIST_TX = BIT(10),
+ DPM_REQUEST_SNK_STARTUP = BIT(11),
+ DPM_REQUEST_SRC_STARTUP = BIT(12),
+ DPM_REQUEST_HARD_RESET_SEND = BIT(13),
+ DPM_REQUEST_SOFT_RESET_SEND = BIT(14),
+ DPM_REQUEST_PORT_DISCOVERY = BIT(15),
+ DPM_REQUEST_SEND_ALERT = BIT(16),
+ DPM_REQUEST_ENTER_USB = BIT(17),
+ DPM_REQUEST_GET_SRC_CAPS = BIT(18),
+ DPM_REQUEST_EXIT_MODES = BIT(19),
+ DPM_REQUEST_SOP_PRIME_SOFT_RESET_SEND = BIT(20),
};
/**