summaryrefslogtreecommitdiff
path: root/include/usb_tbt_alt_mode.h
diff options
context:
space:
mode:
authorAyushee Shah <ayushee.shah@intel.com>2021-02-26 13:02:30 -0800
committerCommit Bot <commit-bot@chromium.org>2021-03-10 02:03:58 +0000
commit43fe3569949f74ece62d6a82829355c39a010d65 (patch)
tree6e354ed3d13cca1c4569c75697e2ea57f2d8f983 /include/usb_tbt_alt_mode.h
parentd3372a419d5e4c78fedb70a125390a005938df10 (diff)
downloadchrome-ec-43fe3569949f74ece62d6a82829355c39a010d65.tar.gz
USB4: For AP mode entry, add support for active cables
For AP mode entry, request to enter Thunderbolt cable mode entry prior to entering USB4 mode if - 1. Thunderbolt Mode SOP' VDO active/passive bit (B25) is TBT_CABLE_ACTIVE or 2. It's an active cable with VDM version < 2.0 or VDO version < 1.3 BUG=b:181286325 BRANCH=None TEST=Able to enter USB4 mode with LRD cable Signed-off-by: Ayushee Shah <ayushee.shah@intel.com> Change-Id: Ie223fa3d95c2357a0e50aeea93444e6f7639cc3f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2724653 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'include/usb_tbt_alt_mode.h')
-rw-r--r--include/usb_tbt_alt_mode.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/usb_tbt_alt_mode.h b/include/usb_tbt_alt_mode.h
index 3be7c60205..01604d72ae 100644
--- a/include/usb_tbt_alt_mode.h
+++ b/include/usb_tbt_alt_mode.h
@@ -30,6 +30,16 @@ void tbt_init(int port);
void tbt_exit_mode_request(int port);
/*
+ * Checks whether Thunderbolt cable mode entry is required prior to entering
+ * USB4.
+ *
+ * @param port USB-C port number
+ * @return True if Thunderbolt cable mode entry is required
+ * False otherwise
+ */
+bool tbt_cable_entry_required_for_usb4(int port);
+
+/*
* Checks whether the mode entry sequence for Thunderbolt alternate mode is
* done for a port.
*