summaryrefslogtreecommitdiff
path: root/include/usb_mode.h
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-10-08 16:31:53 -0700
committerCommit Bot <commit-bot@chromium.org>2020-10-14 20:33:13 +0000
commite4c3ec56c5002ce4ed425495eaa50379d9eb3b96 (patch)
tree153bc7d0ea9f2b688e6b38b9c23c04d8b93fc324 /include/usb_mode.h
parent913b68e8e43d5700e3432148b33428e1e1ce0d79 (diff)
downloadchrome-ec-e4c3ec56c5002ce4ed425495eaa50379d9eb3b96.tar.gz
TCPMv2: Avoid alt mode files from changing DPM states
USB4 mode: Added a function to check if the USB4 entry is completed Thunderbolt mode: Added 2 flags TBT_RETRY_DONE, TBT_EXIT_DONE to track the Thunderbolt mode's exit and if retry is needed and a new function to check if if the Thunderbolt mode entry is completed DisplayPort mode: Added a function to check if the DisplayPort entry is completed BUG=b:169169804 BRANCH=None TEST=1. Able to enter alternate mode on hotplug and reboot 2. Able to exit the alternate mode on chipset transition and on DPM's exit mode request. Change-Id: I09662449143ad8d94b30ae102ed5ce79db852687 Signed-off-by: Ayushee <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2421425 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_mode.h')
-rw-r--r--include/usb_mode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usb_mode.h b/include/usb_mode.h
index a479c36d5c..7c125e1406 100644
--- a/include/usb_mode.h
+++ b/include/usb_mode.h
@@ -24,6 +24,15 @@
void enter_usb_init(int port);
/*
+ * Checks weather the mode entry sequence for USB4 is done for a port.
+ *
+ * @param port USB-C port number
+ * @return True if entry sequence for USB4 is completed
+ * False otherwise
+ */
+bool enter_usb_entry_is_done(int port);
+
+/*
* Resets USB4 state and mux state.
*
* @param port USB-C port number