summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAyushee Shah <ayushee.shah@intel.com>2021-02-25 17:17:47 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-16 21:32:46 +0000
commit657c9f952da217d18e55fb139e5e59f3cd58c670 (patch)
treee84eaf8fd87505d6ba347061a6f1d25986adfd4f /include
parentd49b7129f4cc10446cb8a4c6eebb2f87027d508a (diff)
downloadchrome-ec-657c9f952da217d18e55fb139e5e59f3cd58c670.tar.gz
USB4: Reset mux, retimer and USB4 SM on exit mode request
When exiting out of USB4 mode, reset the USB4 state machine and set the retimer and the mux to disconnect state followed by USB mode. BUG=b:181286325 BRANCH=None TEST=Able to re-enter into USB4 mode on warm reboot Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Change-Id: Icdc520aa221a9276466fafb885a6d86e893b7284 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2727628 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/usb_mode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_mode.h b/include/usb_mode.h
index 001aadc38a..98157626aa 100644
--- a/include/usb_mode.h
+++ b/include/usb_mode.h
@@ -33,6 +33,14 @@ void enter_usb_init(int port);
bool enter_usb_entry_is_done(int port);
/*
+ * Requests the retimer and mux to exit USB4 mode and re-initalizes the USB4
+ * state machine.
+ *
+ * @param port USB-C port number
+ */
+void usb4_exit_mode_request(int port);
+
+/*
* Resets USB4 state and mux state.
*
* @param port USB-C port number