[edk2-devel] [edk2-platforms PATCH v2 4/4] Silicon/Synopsys/DesignWare: Basic support for USB SuperSpeedPlus
Vin Xue
vinxue at outlook.com
Thu Aug 6 10:13:40 UTC 2020
Add basic support for USB 3.1 SuperSpeedPlus.
Cc: Ard Biesheuvel <ard.biesheuvel at arm.com>
Cc: Leif Lindholm <leif at nuviainc.com>
Signed-off-by: Vin Xue <vinxue at outlook.com>
---
Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciCommon.h | 3 ++-
Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciDWC.c | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciCommon.h b/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciCommon.h
index 4606d1625e..4f694aaeab 100644
--- a/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciCommon.h
+++ b/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciCommon.h
@@ -25,7 +25,8 @@ typedef enum {
USB_SPEED_HIGH = 0,
USB_SPEED_FULL,
USB_SPEED_LOW,
- USB_SPEED_SUPER = 4
+ USB_SPEED_SUPER = 4,
+ USB_SPEED_SUPER_PLUS
} USB_SPEED;
typedef enum {
diff --git a/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciDWC.c b/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciDWC.c
index 85b67d35c2..53f2f58049 100644
--- a/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciDWC.c
+++ b/Silicon/Synopsys/DesignWare/Drivers/UsbDeviceDxe/XdciDWC.c
@@ -93,6 +93,7 @@ DwcXdciCoreGetCtrlMps (
*mps = DWC_XDCI_LS_CTRL_EP_MPS;
break;
case USB_SPEED_SUPER:
+ case USB_SPEED_SUPER_PLUS:
*mps = DWC_XDCI_SS_CTRL_EP_MPS;
break;
default:
@@ -851,7 +852,7 @@ DwcXdciProcessDeviceResetDone (
//
// Put the other PHY into suspend
//
- if (CoreHandle->ActualSpeed == USB_SPEED_SUPER) {
+ if (CoreHandle->ActualSpeed >= USB_SPEED_SUPER) {
//
// Put HS PHY to suspend
//
--
2.27.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#63781): https://edk2.groups.io/g/devel/message/63781
Mute This Topic: https://groups.io/mt/76025231/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-
More information about the edk2-devel-archive
mailing list