summaryrefslogtreecommitdiff
path: root/include/usb_pd_vdo.h
diff options
context:
space:
mode:
authorAyushee <ayushee.shah@intel.com>2020-10-14 15:00:33 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-05 20:54:15 +0000
commit7fcb1a8a8dc0cb59e432118eac4ce366132a65f7 (patch)
treed0c2b35cfd9f7ad4a42efb4aaa2034c4ca4e5c44 /include/usb_pd_vdo.h
parentcb5058d798c53a8cb46c7cf67c2cf77f76670f3a (diff)
downloadchrome-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 'include/usb_pd_vdo.h')
-rw-r--r--include/usb_pd_vdo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/usb_pd_vdo.h b/include/usb_pd_vdo.h
index e0b1bf65dc..76772ef893 100644
--- a/include/usb_pd_vdo.h
+++ b/include/usb_pd_vdo.h
@@ -72,7 +72,8 @@ struct product_vdo {
* 011b = USB4 Gen3
* 100b…111b = Reserved, Shall Not be used
*/
-#define PD_PRODUCT_IS_USB4(vdo) ((vdo) >> 27 & 0x1)
+#define PD_PRODUCT_IS_USB4(vdo) ((vdo) >> 24 & BIT(3))
+#define PD_PRODUCT_IS_TBT3(vdo) ((vdo) >> 3 & BIT(0))
/*****************************************************************************/
/*