public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Vin Xue <vinxue@outlook.com>
To: devel@edk2.groups.io
Cc: Vin Xue <vinxue@outlook.com>,
	Ard Biesheuvel <ard.biesheuvel@arm.com>,
	Leif Lindholm <leif@nuviainc.com>
Subject: [edk2-platforms PATCH 5/5] Silicon/Synopsys/DesignWare: Basic support for USB SuperSpeedPlus
Date: Fri, 17 Jul 2020 18:02:03 +0800	[thread overview]
Message-ID: <SL2PR03MB4442159141096DA0741B742AC57C0@SL2PR03MB4442.apcprd03.prod.outlook.com> (raw)
In-Reply-To: <20200717100203.724-1-vinxue@outlook.com>

Add basic support for USB 3.1 SuperSpeedPlus.

Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Signed-off-by: Vin Xue <vinxue@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 03791b039d..5f7c36b701 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


      parent reply	other threads:[~2020-07-17 10:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20200717100203.724-1-vinxue@outlook.com>
2020-07-17 10:02 ` [edk2-platforms PATCH 2/5] Silicon/Synopsys/DesignWare: Replace BSD License with BSD+Patent License Vin Xue
2020-07-17 10:02 ` [edk2-platforms PATCH 3/5] Silicon/Synopsys/DesignWare: Remove platform specific init code Vin Xue
2020-07-17 10:02 ` [edk2-platforms PATCH 4/5] Silicon/Synopsys/DesignWare: Support build against DesignWare.dsc Vin Xue
2020-07-17 10:02 ` Vin Xue [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=SL2PR03MB4442159141096DA0741B742AC57C0@SL2PR03MB4442.apcprd03.prod.outlook.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox