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