0102-MIPS-ralink-add-RT3352-register-defines.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. From 48cf6bc7019d418e18831214731a55ec7320abb3 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <[email protected]>
  3. Date: Thu, 21 Mar 2013 19:01:49 +0100
  4. Subject: [PATCH 102/164] MIPS: ralink: add RT3352 register defines
  5. Add a few missing defines that are needed to make USB and clock detection work
  6. on the RT3352.
  7. Signed-off-by: John Crispin <[email protected]>
  8. Acked-by: Gabor Juhos <[email protected]>
  9. Patchwork: http://patchwork.linux-mips.org/patch/5166/
  10. ---
  11. arch/mips/include/asm/mach-ralink/rt305x.h | 13 +++++++++++++
  12. 1 file changed, 13 insertions(+)
  13. --- a/arch/mips/include/asm/mach-ralink/rt305x.h
  14. +++ b/arch/mips/include/asm/mach-ralink/rt305x.h
  15. @@ -136,4 +136,17 @@ static inline int soc_is_rt5350(void)
  16. #define RT305X_GPIO_MODE_SDRAM BIT(8)
  17. #define RT305X_GPIO_MODE_RGMII BIT(9)
  18. +#define RT3352_SYSC_REG_SYSCFG0 0x010
  19. +#define RT3352_SYSC_REG_SYSCFG1 0x014
  20. +#define RT3352_SYSC_REG_CLKCFG1 0x030
  21. +#define RT3352_SYSC_REG_RSTCTRL 0x034
  22. +#define RT3352_SYSC_REG_USB_PS 0x05c
  23. +
  24. +#define RT3352_CLKCFG0_XTAL_SEL BIT(20)
  25. +#define RT3352_CLKCFG1_UPHY0_CLK_EN BIT(18)
  26. +#define RT3352_CLKCFG1_UPHY1_CLK_EN BIT(20)
  27. +#define RT3352_RSTCTRL_UHST BIT(22)
  28. +#define RT3352_RSTCTRL_UDEV BIT(25)
  29. +#define RT3352_SYSCFG1_USB0_HOST_MODE BIT(10)
  30. +
  31. #endif