summaryrefslogtreecommitdiff
path: root/include/usb_pd_dpm.h
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-07-14 14:48:46 -0700
committerCommit Bot <commit-bot@chromium.org>2020-07-17 02:57:14 +0000
commitdfc32ffc88ca7b9fe95623ee6c715e49c33bec24 (patch)
treeeffcda83c2fc9e3c482fcc0057526474fbf25e83 /include/usb_pd_dpm.h
parent5270ea2b0cfc2ce699281c2e59ffce3546551d7e (diff)
downloadchrome-ec-dfc32ffc88ca7b9fe95623ee6c715e49c33bec24.tar.gz
TCPMv2: Add common function for DPM entry and exit mode
Added a common entry point into DPM for entering or exiting modes. BUG=b:155890173 BRANCH=None TEST=Tested on volteer, able to enter and exit 1. DisplayPort mode with type-C dock 2. Thunderbolt mode with a Thunderbolt dock Signed-off-by: Ayushee <ayushee.shah@intel.com> Change-Id: I3bb996d96d0fff543ad7a2e1dc8e09d0b17d0171 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2299840 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_pd_dpm.h')
-rw-r--r--include/usb_pd_dpm.h14
1 files changed, 2 insertions, 12 deletions
diff --git a/include/usb_pd_dpm.h b/include/usb_pd_dpm.h
index d431256e18..2948fd3fbd 100644
--- a/include/usb_pd_dpm.h
+++ b/include/usb_pd_dpm.h
@@ -57,20 +57,10 @@ void dpm_vdm_naked(int port, enum tcpm_transmit_type type, uint16_t svid,
uint8_t vdm_cmd);
/*
- * Drives the Policy Engine through the mode entry/configuration process. Each
- * call to this function requests that the PE send one VDM, whichever is next in
- * the mode entry sequence. This only happens if preconditions for mode entry
- * are met.
+ * Drives the Policy Engine through entry/exit mode process
*
* @param port USB-C port number
*/
-void dpm_attempt_mode_entry(int port);
-
-/*
- * Drives the Policy Engine through exit mode process for each active mode
- *
- * @param port USB-C port number
- */
-void dpm_attempt_mode_exit(int port);
+void dpm_run(int port);
#endif /* __CROS_EC_USB_DPM_H */