diff options
author | Denis Brockus <dbrockus@google.com> | 2020-11-18 11:28:59 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-11-19 18:34:23 +0000 |
commit | 7f9807dc0de96cf43038fb549a641a519c75a39b (patch) | |
tree | 4d478906fdba7ea4e6df2f93e1ba30500f8b3cd9 /util | |
parent | af96e7ad7909c10698dee7d64e69695bffa49d14 (diff) | |
download | chrome-ec-7f9807dc0de96cf43038fb549a641a519c75a39b.tar.gz |
genvif: Device_Speed/Host_Speed default to USB 3.2 GEN 1x1
Since this is the most common correct answer, I am changing
the default from USB 2 to USB 3.2 GEN 1x1
BUG=b:172441959,b:172438944
BRANCH=none
TEST=verify XML output
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: I758ec7ec0df2f285466d83ddb0dcfa8cc98efa55
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2547192
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'util')
-rw-r--r-- | util/genvif.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/util/genvif.c b/util/genvif.c index 182fe09c5b..6b505a508e 100644 --- a/util/genvif.c +++ b/util/genvif.c @@ -3037,7 +3037,10 @@ static void init_vif_component_usb_type_c_fields( static void init_vif_component_usb_data_ufp_fields( struct vif_field_t *vif_fields) { - int ds = USB_2; + /* + * TOTO(b:172441959) Adjust the speed based on CONFIG_ + */ + enum usb_speed ds = USB_GEN11; switch (ds) { case USB_2: @@ -3065,10 +3068,6 @@ static void init_vif_component_usb_data_ufp_fields( vif_component_name[Device_Speed], USB_GEN22, "USB 3.2 GEN 2x2"); break; - default: - set_vif_field_itss(&vif_fields[Device_Speed], - vif_component_name[Device_Speed], - ds, NULL); } } @@ -3092,7 +3091,10 @@ static void init_vif_component_usb_data_ufp_fields( static void init_vif_component_usb_data_dfp_fields( struct vif_field_t *vif_fields) { - int ds = USB_2; + /* + * TOTO(b:172438944) Adjust the speed based on CONFIG_ + */ + enum usb_speed ds = USB_GEN11; switch (ds) { case USB_2: @@ -3120,10 +3122,6 @@ static void init_vif_component_usb_data_dfp_fields( vif_component_name[Host_Speed], USB_GEN22, "USB 3.2 GEN 2x2"); break; - default: - set_vif_field_itss(&vif_fields[Host_Speed], - vif_component_name[Host_Speed], - ds, NULL); } set_vif_field_b(&vif_fields[Host_Contains_Captive_Retimer], |