diff options
author | Ayushee <ayushee.shah@intel.com> | 2020-10-14 15:00:33 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-05 20:54:15 +0000 |
commit | 7fcb1a8a8dc0cb59e432118eac4ce366132a65f7 (patch) | |
tree | d0c2b35cfd9f7ad4a42efb4aaa2034c4ca4e5c44 /common/usb_pd_alt_mode_dfp.c | |
parent | cb5058d798c53a8cb46c7cf67c2cf77f76670f3a (diff) | |
download | chrome-ec-7fcb1a8a8dc0cb59e432118eac4ce366132a65f7.tar.gz |
BB retimer: Update USB4 related bits
This CL updates the following bits:
Bit 4: USB3 bit - If active cable V3, according to Discover Idenitity
SOP response, Product VDO 2 B5. else set to 1
Bit 16: Thunderbolt support - According to B3:B5 of Discover Identity
SOP response.
Bit 19: VPro Support - If host is vPro capable and according to Discover
Mode SOP response B26/B31.
This CL also updates the thunderbolt related bits for the retimer if the
thunderbolt mode SOP' and SOP'' is entered.
BUG=b:156749387
BRANCH=None
TEST=Able to update the retimer bits on entering USB4 mode
Signed-off-by: Ayushee <ayushee.shah@intel.com>
Change-Id: Ic083001dee73d854379f1f3dfd85bebe5ee6ef5d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2473597
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common/usb_pd_alt_mode_dfp.c')
-rw-r--r-- | common/usb_pd_alt_mode_dfp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/usb_pd_alt_mode_dfp.c b/common/usb_pd_alt_mode_dfp.c index a2dc62afd8..cee2a9e4e7 100644 --- a/common/usb_pd_alt_mode_dfp.c +++ b/common/usb_pd_alt_mode_dfp.c @@ -683,6 +683,7 @@ bool is_usb2_cable_support(int port) pd_get_am_discovery(port, TCPC_TX_SOP_PRIME); return disc->identity.idh.product_type == IDH_PTYPE_PCABLE || + pd_get_vdo_ver(port, TCPC_TX_SOP_PRIME) < VDM_VER20 || disc->identity.product_t2.a2_rev30.usb_20_support == USB2_SUPPORTED; } |