summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2020-01-14 10:34:49 -0800
committerCommit Bot <commit-bot@chromium.org>2020-01-15 23:54:34 +0000
commite45ef48d07fda7e449873de3161071774e57072c (patch)
tree9f9d9eb986e88b0e37b86cb496cd23043de8378f /board
parent1c796f459f13fd3eb0d512da45ef98116afb6c3e (diff)
downloadchrome-ec-e45ef48d07fda7e449873de3161071774e57072c.tar.gz
TBT/USB4: Allow enabling TBT & USB4 per port based
When TBT or USB4 mode is enabled, by default all the ports are assumed to be supporting TBT or USB4. However, not all the ports may support TBT & USB4 due to dependency on retimer and platform level Aux/LSx muxing. This board level function can override the TBT & USB4 logic based on board design. Ref: TGL PDG 5.2 USB-C* Sub-System: a. otherboard should have re-timer for all USB-C connectors that supports TBT. b. Aux/LSx platform level muxing is required. BUG=b:147658946 BRANCH=none TEST=Manually tested on Volteer TBT & USB4 mode detection and entry is allowed only on Port-1 Change-Id: I07b339023a4da6bd69382420f3aa11ed82379179 Signed-off-by: Vijay Hiremath <vijay.p.hiremath@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2001221 Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'board')
-rw-r--r--board/volteer/board.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/volteer/board.c b/board/volteer/board.c
index 98982636b0..873f9dda6b 100644
--- a/board/volteer/board.c
+++ b/board/volteer/board.c
@@ -47,3 +47,14 @@ __override enum tbt_compat_cable_speed board_get_max_tbt_speed(int port)
*/
return TBT_SS_RES_0;
}
+
+__override bool board_is_tbt_usb4_port(int port)
+{
+ /*
+ * On Proto-1 only Port 1 supports TBT & USB4
+ *
+ * TODO (b/147732807): All the USB-C ports need to support same
+ * features. Need to fix once USB-C feature set is known for Volteer.
+ */
+ return port == USBC_PORT_C1;
+}