Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / patches-4.4 / 0086-usbphy.patch
1 --- a/drivers/phy/phy-ralink-usb.c
2 +++ b/drivers/phy/phy-ralink-usb.c
3 @@ -34,19 +34,19 @@
4  #define RT_SYSC_REG_CLKCFG1            0x030
5  #define RT_SYSC_REG_USB_PHY_CFG                0x05c
6  
7 -#define OFS_U2_PHY_AC0                  0x00
8 -#define OFS_U2_PHY_AC1                  0x04
9 -#define OFS_U2_PHY_AC2                  0x08
10 -#define OFS_U2_PHY_ACR0                 0x10
11 -#define OFS_U2_PHY_ACR1                 0x14
12 -#define OFS_U2_PHY_ACR2                 0x18
13 -#define OFS_U2_PHY_ACR3                 0x1C
14 -#define OFS_U2_PHY_ACR4                 0x20
15 -#define OFS_U2_PHY_AMON0                0x24
16 -#define OFS_U2_PHY_DCR0                 0x60
17 -#define OFS_U2_PHY_DCR1                 0x64
18 -#define OFS_U2_PHY_DTM0                 0x68
19 -#define OFS_U2_PHY_DTM1                 0x6C
20 +#define OFS_U2_PHY_AC0                  0x800
21 +#define OFS_U2_PHY_AC1                  0x804
22 +#define OFS_U2_PHY_AC2                  0x808
23 +#define OFS_U2_PHY_ACR0                 0x810
24 +#define OFS_U2_PHY_ACR1                 0x814
25 +#define OFS_U2_PHY_ACR2                 0x818
26 +#define OFS_U2_PHY_ACR3                 0x81C
27 +#define OFS_U2_PHY_ACR4                 0x820
28 +#define OFS_U2_PHY_AMON0                0x824
29 +#define OFS_U2_PHY_DCR0                 0x860
30 +#define OFS_U2_PHY_DCR1                 0x864
31 +#define OFS_U2_PHY_DTM0                 0x868
32 +#define OFS_U2_PHY_DTM1                 0x86C
33  
34  #define RT_RSTCTRL_UDEV                        BIT(25)
35  #define RT_RSTCTRL_UHST                        BIT(22)