2
0

0086-usbphy.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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. -#define OFS_U2_PHY_AC0 0x00
  7. -#define OFS_U2_PHY_AC1 0x04
  8. -#define OFS_U2_PHY_AC2 0x08
  9. -#define OFS_U2_PHY_ACR0 0x10
  10. -#define OFS_U2_PHY_ACR1 0x14
  11. -#define OFS_U2_PHY_ACR2 0x18
  12. -#define OFS_U2_PHY_ACR3 0x1C
  13. -#define OFS_U2_PHY_ACR4 0x20
  14. -#define OFS_U2_PHY_AMON0 0x24
  15. -#define OFS_U2_PHY_DCR0 0x60
  16. -#define OFS_U2_PHY_DCR1 0x64
  17. -#define OFS_U2_PHY_DTM0 0x68
  18. -#define OFS_U2_PHY_DTM1 0x6C
  19. +#define OFS_U2_PHY_AC0 0x800
  20. +#define OFS_U2_PHY_AC1 0x804
  21. +#define OFS_U2_PHY_AC2 0x808
  22. +#define OFS_U2_PHY_ACR0 0x810
  23. +#define OFS_U2_PHY_ACR1 0x814
  24. +#define OFS_U2_PHY_ACR2 0x818
  25. +#define OFS_U2_PHY_ACR3 0x81C
  26. +#define OFS_U2_PHY_ACR4 0x820
  27. +#define OFS_U2_PHY_AMON0 0x824
  28. +#define OFS_U2_PHY_DCR0 0x860
  29. +#define OFS_U2_PHY_DCR1 0x864
  30. +#define OFS_U2_PHY_DTM0 0x868
  31. +#define OFS_U2_PHY_DTM1 0x86C
  32. #define RT_RSTCTRL_UDEV BIT(25)
  33. #define RT_RSTCTRL_UHST BIT(22)