summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorKevin K Wong <kevin.k.wong@intel.com>2016-09-21 08:57:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-11-02 06:42:04 -0700
commit180ac77e16e1e5a57769a2a20411b6e37d649107 (patch)
tree7b9d5cb676836a9e368c36aabd004734c8b55f59 /include/usb_pd.h
parentdd652accd0c26d56af3511d178507af738912885 (diff)
downloadchrome-ec-180ac77e16e1e5a57769a2a20411b6e37d649107.tar.gz
reef: enable tcpc-controlled drp toggle
BUG=chrome-os-partner:54668 BRANCH=none TEST=Verified SNK is detected in S0 (toggle on), S3 (toggle off), and S5 (force sink). SRC is detect in S0 only, stays detected when entered S3, but unplug/plug while in S3 will not re-detect until system back in S0. When go to S5, SRC will get disconnected until back in S0, and hotplug SRC in S5 will not get detected. Checked power role swap with another chromebook in the above scenario also. Change-Id: I2a487fca5cb04c45524aa3efde84fcd10ff0579e Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com> Reviewed-on: https://chromium-review.googlesource.com/396918 Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index a6be237102..b2cba7542b 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -684,6 +684,9 @@ enum pd_states {
PD_STATE_BIST_TX,
#endif
+#ifdef CONFIG_USB_PD_DUAL_ROLE_AUTO_TOGGLE
+ PD_STATE_DRP_AUTO_TOGGLE,
+#endif
/* Number of states. Not an actual state. */
PD_STATE_COUNT,
};
@@ -693,6 +696,7 @@ enum pd_states {
#define PD_FLAGS_PARTNER_DR_DATA (1 << 2) /* port partner is dualrole data */
#define PD_FLAGS_DATA_SWAPPED (1 << 3) /* data swap complete */
#define PD_FLAGS_SNK_CAP_RECVD (1 << 4) /* sink capabilities received */
+#define PD_FLAGS_TCPC_DRP_TOGGLE (1 << 5) /* TCPC-controlled DRP toggling */
#define PD_FLAGS_EXPLICIT_CONTRACT (1 << 6) /* explicit pwr contract in place */
#define PD_FLAGS_VBUS_NEVER_LOW (1 << 7) /* VBUS input has never been low */
#define PD_FLAGS_PREVIOUS_PD_CONN (1 << 8) /* previously PD connected */
@@ -708,6 +712,7 @@ enum pd_states {
PD_FLAGS_PARTNER_DR_DATA | \
PD_FLAGS_DATA_SWAPPED | \
PD_FLAGS_SNK_CAP_RECVD | \
+ PD_FLAGS_TCPC_DRP_TOGGLE | \
PD_FLAGS_EXPLICIT_CONTRACT | \
PD_FLAGS_PREVIOUS_PD_CONN | \
PD_FLAGS_CHECK_PR_ROLE | \