diff options
author | Ayushee <ayushee.shah@intel.com> | 2020-04-16 13:48:47 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-03 03:34:30 +0000 |
commit | 1c036fc18ba017480ab8b3bc9811d8c86771ab98 (patch) | |
tree | a8dd1f8c0a29d766347e7ee4fcf7a38ea2713935 /include | |
parent | 9cfae101b2e6959c5f32aee1293469e441c9413f (diff) | |
download | chrome-ec-1c036fc18ba017480ab8b3bc9811d8c86771ab98.tar.gz |
BB retimer: Add 'vPro_Dock_Detect/DP_Overdrive' bit
For DFP, if SOP discover SVID supports Thunderbolt-Compat mode then,
vPro_Dock_Detect/DP_Overdrive is set according to discover mode SOP
response.
Ref: Burnside Bridge spec Table 13: Connection state register
BUG=b:152544514
BRANCH=None
TEST=make buildall -j
Signed-off-by: Ayushee <ayushee.shah@intel.com>
Change-Id: I7a53396725052a4dfa12e934919c2e1d601c8949
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2153825
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd_tbt.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/include/usb_pd_tbt.h b/include/usb_pd_tbt.h index 9d4bbd13c9..8e00219fe2 100644 --- a/include/usb_pd_tbt.h +++ b/include/usb_pd_tbt.h @@ -98,6 +98,11 @@ enum tbt_adapter_type { TBT_ADAPTER_TBT2_LEGACY, }; +enum vendor_specific_support { + VENDOR_SPECIFIC_NOT_SUPPORTED, + VENDOR_SPECIFIC_SUPPORTED, +}; + /* TBT Alternate Mode */ #define TBT_ALTERNATE_MODE 0x0001 #define PD_VDO_RESP_MODE_INTEL_TBT(x) (((x) & 0xff) == TBT_ALTERNATE_MODE) @@ -107,10 +112,10 @@ union tbt_mode_resp_device { uint16_t tbt_alt_mode : 16; enum tbt_adapter_type tbt_adapter : 1; uint16_t reserved0 : 9; - uint8_t intel_spec_b0 : 1; + enum vendor_specific_support intel_spec_b0 : 1; uint8_t reserved1 : 3; - uint8_t vendor_spec_b0 : 1; - uint8_t vendor_spec_b1 : 1; + enum vendor_specific_support vendor_spec_b0 : 1; + enum vendor_specific_support vendor_spec_b1 : 1; }; uint32_t raw_value; }; @@ -248,10 +253,10 @@ union tbt_dev_mode_enter_cmd { enum link_lsrx_comm lsrx_comm : 1; enum tbt_enter_cable_type cable : 1; uint8_t reserved0 : 1; - uint8_t intel_spec_b0 : 1; + enum vendor_specific_support intel_spec_b0 : 1; uint8_t reserved1 : 3; - uint8_t vendor_spec_b0 : 1; - uint8_t vendor_spec_b1 : 1; + enum vendor_specific_support vendor_spec_b0 : 1; + enum vendor_specific_support vendor_spec_b1 : 1; }; uint32_t raw_value; }; |