summaryrefslogtreecommitdiff
path: root/include/usb_common.h
diff options
context:
space:
mode:
authorAyushee Shah <ayushee.shah@intel.com>2021-01-21 20:50:06 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-11 20:41:23 +0000
commit9c95c05d6d44f50ec11f7a249bb8755de071e0e1 (patch)
treead6fda73af1823d63183b9c3ee429537159f6f35 /include/usb_common.h
parenta56c816a329d4c78d54518c16f995bcf21d4a714 (diff)
downloadchrome-ec-9c95c05d6d44f50ec11f7a249bb8755de071e0e1.tar.gz
TCPMv2: Update exit mode sequence
On exit mode request - Instead to entering safe mode -> USB mode, this CL updates the sequence to - 1. Set Mux, retimer to disconnect 2. Send exit mode to cable/port-partner 3. Set mux and retimer to USB mode BUG=b:173459141 BRANCH=None TEST=Able to re-enter into alternate mode with AP driver approach Change-Id: I6f8f2d4523736100057de4425b3df64b90858e70 Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2643523 Reviewed-by: Divya S Sasidharan <divya.s.sasidharan@intel.com> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_common.h')
-rw-r--r--include/usb_common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/usb_common.h b/include/usb_common.h
index 526143138a..00440390df 100644
--- a/include/usb_common.h
+++ b/include/usb_common.h
@@ -174,6 +174,17 @@ void set_usb_mux_with_current_data_role(int port);
void usb_mux_set_safe_mode(int port);
/**
+ * Configure the USB MUX in safe mode while exiting an alternate mode.
+ * Although the TCSS (virtual mux) has a distinct safe mode state, it
+ * needs to be in a disconnected state to properly exit an alternate
+ * mode. Therefore, do not treat the virtual mux as a special case, as
+ * usb_mux_set_safe_mode does.
+ *
+ * @param port The PD port number
+ */
+void usb_mux_set_safe_mode_exit(int port);
+
+/**
* Get the PD flags stored in BB Ram
*
* @param port USB-C port number