aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-03-21 14:01:49 -0400
committerRalf Baechle <ralf@linux-mips.org>2013-05-07 19:19:07 -0400
commitbb19fea238daead66ab3630ad09fba50aa563048 (patch)
treec35ef0b816ffe5568d964b9ba3792bb84bcf317c
parent48b4aba7a8a2b098f12259ffa13301243349cfab (diff)
MIPS: ralink: add RT3352 register defines
Add a few missing defines that are needed to make USB and clock detection work on the RT3352. Signed-off-by: John Crispin <blogic@openwrt.org> Acked-by: Gabor Juhos <juhosg@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/5166/
-rw-r--r--arch/mips/include/asm/mach-ralink/rt305x.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ralink/rt305x.h b/arch/mips/include/asm/mach-ralink/rt305x.h
index 7d344f2d7d0a..e36c3c529423 100644
--- a/arch/mips/include/asm/mach-ralink/rt305x.h
+++ b/arch/mips/include/asm/mach-ralink/rt305x.h
@@ -136,4 +136,17 @@ static inline int soc_is_rt5350(void)
136#define RT305X_GPIO_MODE_SDRAM BIT(8) 136#define RT305X_GPIO_MODE_SDRAM BIT(8)
137#define RT305X_GPIO_MODE_RGMII BIT(9) 137#define RT305X_GPIO_MODE_RGMII BIT(9)
138 138
139#define RT3352_SYSC_REG_SYSCFG0 0x010
140#define RT3352_SYSC_REG_SYSCFG1 0x014
141#define RT3352_SYSC_REG_CLKCFG1 0x030
142#define RT3352_SYSC_REG_RSTCTRL 0x034
143#define RT3352_SYSC_REG_USB_PS 0x05c
144
145#define RT3352_CLKCFG0_XTAL_SEL BIT(20)
146#define RT3352_CLKCFG1_UPHY0_CLK_EN BIT(18)
147#define RT3352_CLKCFG1_UPHY1_CLK_EN BIT(20)
148#define RT3352_RSTCTRL_UHST BIT(22)
149#define RT3352_RSTCTRL_UDEV BIT(25)
150#define RT3352_SYSCFG1_USB0_HOST_MODE BIT(10)
151
139#endif 152#endif