summaryrefslogtreecommitdiff
path: root/include/usb_pd_vdo.h
diff options
context:
space:
mode:
authorVijay Hiremath <vijay.p.hiremath@intel.com>2020-04-15 10:21:40 -0700
committerCommit Bot <commit-bot@chromium.org>2020-05-21 01:49:39 +0000
commit378f043758d4022bd6d19541446362f634418dde (patch)
tree87a2c321cc72de40f565a1b60d4a53e092c628e0 /include/usb_pd_vdo.h
parent721eea946601251afe92c5affb94bb7e208b5336 (diff)
downloadchrome-ec-378f043758d4022bd6d19541446362f634418dde.tar.gz
BB retimer: Add 'USB2_connection' bit
USB2_CONNECTION bit is set to 1 if the cable is either Passive or a Gen3 active cable with USB2.0 support. Hence, added a function that indicates if the cable supports USB2 connection. Ref: Burnside Bridge spec Table 13: Connection state register BUG=b:152544514 BRANCH=None TEST=Tested on volteer by connecting a dock using a Gen3 Active cable with a USB2.0 connected to the dock, able to set USB2_connection bit. Change-Id: I125182b23becaa7d00011f6eadb1916b48c79803 Signed-off-by: Ayushee <ayushee.shah@intel.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2139278 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'include/usb_pd_vdo.h')
-rw-r--r--include/usb_pd_vdo.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/usb_pd_vdo.h b/include/usb_pd_vdo.h
index 6efdd3fa94..d43c92d144 100644
--- a/include/usb_pd_vdo.h
+++ b/include/usb_pd_vdo.h
@@ -321,6 +321,11 @@ enum retimer_active_element {
ACTIVE_RETIMER,
};
+enum active_cable_usb2_support {
+ USB2_SUPPORTED,
+ USB2_NOT_SUPPORTED,
+};
+
union active_cable_vdo2_rev30 {
struct {
uint8_t usb_gen : 1;
@@ -328,7 +333,7 @@ union active_cable_vdo2_rev30 {
uint8_t a_cable_type : 1;
uint8_t usb_lanes : 1;
uint8_t usb_32_support : 1;
- uint8_t usb_20_support : 1;
+ enum active_cable_usb2_support usb_20_support : 1;
uint8_t usb_20_hub_hop : 2;
uint8_t usb_40_support : 1;
enum retimer_active_element active_elem : 1;