aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/patches-4.4/096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch
diff options
context:
space:
mode:
authorPavel Kubelun <be.dissent@gmail.com>2016-11-12 14:35:56 +0300
committerJohn Crispin <john@phrozen.org>2016-11-21 09:58:42 +0100
commit70434c3f948749690de24effbfd98f7a64e0991f (patch)
tree31de7f236a55c7649afcf2b7fea8d75ec4a5f3ed /target/linux/ipq806x/patches-4.4/096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch
parent6e65576f2d808513148bc8b6e399e62805c3fe03 (diff)
downloadupstream-70434c3f948749690de24effbfd98f7a64e0991f.tar.gz
upstream-70434c3f948749690de24effbfd98f7a64e0991f.tar.bz2
upstream-70434c3f948749690de24effbfd98f7a64e0991f.zip
ipq806x: switch to upstream usb driver and backport fixes
Also removing fifo-resize property drom DT as it has been removed from the driver. Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/patches-4.4/096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch')
-rw-r--r--target/linux/ipq806x/patches-4.4/096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/ipq806x/patches-4.4/096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch b/target/linux/ipq806x/patches-4.4/096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch
new file mode 100644
index 0000000000..e4805db0b4
--- /dev/null
+++ b/target/linux/ipq806x/patches-4.4/096-05-usb-dwc3-Update-register-fields-for-SuperSpeedPlus.patch
@@ -0,0 +1,46 @@
+From 1f38f88a24c86d46cf47782ffabd5457f231f8ca Mon Sep 17 00:00:00 2001
+From: John Youn <John.Youn@synopsys.com>
+Date: Fri, 5 Feb 2016 17:08:31 -0800
+Subject: usb: dwc3: Update register fields for SuperSpeedPlus
+
+Update various registers fields definitions for the DWC_usb31 controller
+for SuperSpeedPlus support.
+
+Signed-off-by: John Youn <johnyoun@synopsys.com>
+Signed-off-by: Felipe Balbi <balbi@kernel.org>
+---
+ drivers/usb/dwc3/core.h | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/usb/dwc3/core.h b/drivers/usb/dwc3/core.h
+index c0520d67..6254b2f 100644
+--- a/drivers/usb/dwc3/core.h
++++ b/drivers/usb/dwc3/core.h
+@@ -223,7 +223,8 @@
+ /* Global HWPARAMS3 Register */
+ #define DWC3_GHWPARAMS3_SSPHY_IFC(n) ((n) & 3)
+ #define DWC3_GHWPARAMS3_SSPHY_IFC_DIS 0
+-#define DWC3_GHWPARAMS3_SSPHY_IFC_ENA 1
++#define DWC3_GHWPARAMS3_SSPHY_IFC_GEN1 1
++#define DWC3_GHWPARAMS3_SSPHY_IFC_GEN2 2 /* DWC_usb31 only */
+ #define DWC3_GHWPARAMS3_HSPHY_IFC(n) (((n) & (3 << 2)) >> 2)
+ #define DWC3_GHWPARAMS3_HSPHY_IFC_DIS 0
+ #define DWC3_GHWPARAMS3_HSPHY_IFC_UTMI 1
+@@ -249,6 +250,7 @@
+ #define DWC3_DCFG_DEVADDR_MASK DWC3_DCFG_DEVADDR(0x7f)
+
+ #define DWC3_DCFG_SPEED_MASK (7 << 0)
++#define DWC3_DCFG_SUPERSPEED_PLUS (5 << 0) /* DWC_usb31 only */
+ #define DWC3_DCFG_SUPERSPEED (4 << 0)
+ #define DWC3_DCFG_HIGHSPEED (0 << 0)
+ #define DWC3_DCFG_FULLSPEED2 (1 << 0)
+@@ -339,6 +341,7 @@
+
+ #define DWC3_DSTS_CONNECTSPD (7 << 0)
+
++#define DWC3_DSTS_SUPERSPEED_PLUS (5 << 0) /* DWC_usb31 only */
+ #define DWC3_DSTS_SUPERSPEED (4 << 0)
+ #define DWC3_DSTS_HIGHSPEED (0 << 0)
+ #define DWC3_DSTS_FULLSPEED2 (1 << 0)
+--
+cgit v0.12