096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From 1f38f88a24c86d46cf47782ffabd5457f231f8ca Mon Sep 17 00:00:00 2001
  2. From: John Youn <[email protected]>
  3. Date: Fri, 5 Feb 2016 17:08:31 -0800
  4. Subject: usb: dwc3: Update register fields for SuperSpeedPlus
  5. Update various registers fields definitions for the DWC_usb31 controller
  6. for SuperSpeedPlus support.
  7. Signed-off-by: John Youn <[email protected]>
  8. Signed-off-by: Felipe Balbi <[email protected]>
  9. ---
  10. drivers/usb/dwc3/core.h | 5 ++++-
  11. 1 file changed, 4 insertions(+), 1 deletion(-)
  12. --- a/drivers/usb/dwc3/core.h
  13. +++ b/drivers/usb/dwc3/core.h
  14. @@ -220,7 +220,8 @@
  15. /* Global HWPARAMS3 Register */
  16. #define DWC3_GHWPARAMS3_SSPHY_IFC(n) ((n) & 3)
  17. #define DWC3_GHWPARAMS3_SSPHY_IFC_DIS 0
  18. -#define DWC3_GHWPARAMS3_SSPHY_IFC_ENA 1
  19. +#define DWC3_GHWPARAMS3_SSPHY_IFC_GEN1 1
  20. +#define DWC3_GHWPARAMS3_SSPHY_IFC_GEN2 2 /* DWC_usb31 only */
  21. #define DWC3_GHWPARAMS3_HSPHY_IFC(n) (((n) & (3 << 2)) >> 2)
  22. #define DWC3_GHWPARAMS3_HSPHY_IFC_DIS 0
  23. #define DWC3_GHWPARAMS3_HSPHY_IFC_UTMI 1
  24. @@ -246,6 +247,7 @@
  25. #define DWC3_DCFG_DEVADDR_MASK DWC3_DCFG_DEVADDR(0x7f)
  26. #define DWC3_DCFG_SPEED_MASK (7 << 0)
  27. +#define DWC3_DCFG_SUPERSPEED_PLUS (5 << 0) /* DWC_usb31 only */
  28. #define DWC3_DCFG_SUPERSPEED (4 << 0)
  29. #define DWC3_DCFG_HIGHSPEED (0 << 0)
  30. #define DWC3_DCFG_FULLSPEED2 (1 << 0)
  31. @@ -336,6 +338,7 @@
  32. #define DWC3_DSTS_CONNECTSPD (7 << 0)
  33. +#define DWC3_DSTS_SUPERSPEED_PLUS (5 << 0) /* DWC_usb31 only */
  34. #define DWC3_DSTS_SUPERSPEED (4 << 0)
  35. #define DWC3_DSTS_HIGHSPEED (0 << 0)
  36. #define DWC3_DSTS_FULLSPEED2 (1 << 0)