2013-06-23 15:50:49 +00:00
|
|
|
From 8667d984d1b4f3be1c5da71788762b9945a25c90 Mon Sep 17 00:00:00 2001
|
2013-04-03 09:59:10 +00:00
|
|
|
From: John Crispin <blogic@openwrt.org>
|
|
|
|
Date: Thu, 21 Mar 2013 19:01:49 +0100
|
2013-06-23 15:50:49 +00:00
|
|
|
Subject: [PATCH 18/79] MIPS: ralink: add RT3352 register defines
|
2013-04-03 09:59:10 +00:00
|
|
|
|
2013-04-25 19:02:42 +00:00
|
|
|
Add a few missing defines that are needed to make USB and clock detection work
|
|
|
|
on the RT3352.
|
2013-04-03 09:59:10 +00:00
|
|
|
|
|
|
|
Signed-off-by: John Crispin <blogic@openwrt.org>
|
2013-04-25 19:02:42 +00:00
|
|
|
Acked-by: Gabor Juhos <juhosg@openwrt.org>
|
|
|
|
Patchwork: http://patchwork.linux-mips.org/patch/5166/
|
2013-04-03 09:59:10 +00:00
|
|
|
---
|
2013-04-25 19:02:42 +00:00
|
|
|
arch/mips/include/asm/mach-ralink/rt305x.h | 13 +++++++++++++
|
|
|
|
1 file changed, 13 insertions(+)
|
2013-04-03 09:59:10 +00:00
|
|
|
|
2013-06-23 15:50:49 +00:00
|
|
|
diff --git a/arch/mips/include/asm/mach-ralink/rt305x.h b/arch/mips/include/asm/mach-ralink/rt305x.h
|
|
|
|
index 7d344f2..e36c3c5 100644
|
2013-04-06 11:40:44 +00:00
|
|
|
--- a/arch/mips/include/asm/mach-ralink/rt305x.h
|
|
|
|
+++ b/arch/mips/include/asm/mach-ralink/rt305x.h
|
2013-04-25 19:02:42 +00:00
|
|
|
@@ -136,4 +136,17 @@ static inline int soc_is_rt5350(void)
|
2013-04-03 09:59:10 +00:00
|
|
|
#define RT305X_GPIO_MODE_SDRAM BIT(8)
|
|
|
|
#define RT305X_GPIO_MODE_RGMII BIT(9)
|
|
|
|
|
2013-04-25 19:02:42 +00:00
|
|
|
+#define RT3352_SYSC_REG_SYSCFG0 0x010
|
2013-04-03 09:59:10 +00:00
|
|
|
+#define RT3352_SYSC_REG_SYSCFG1 0x014
|
|
|
|
+#define RT3352_SYSC_REG_CLKCFG1 0x030
|
|
|
|
+#define RT3352_SYSC_REG_RSTCTRL 0x034
|
|
|
|
+#define RT3352_SYSC_REG_USB_PS 0x05c
|
|
|
|
+
|
2013-04-25 19:02:42 +00:00
|
|
|
+#define RT3352_CLKCFG0_XTAL_SEL BIT(20)
|
2013-04-03 09:59:10 +00:00
|
|
|
+#define RT3352_CLKCFG1_UPHY0_CLK_EN BIT(18)
|
|
|
|
+#define RT3352_CLKCFG1_UPHY1_CLK_EN BIT(20)
|
|
|
|
+#define RT3352_RSTCTRL_UHST BIT(22)
|
|
|
|
+#define RT3352_RSTCTRL_UDEV BIT(25)
|
|
|
|
+#define RT3352_SYSCFG1_USB0_HOST_MODE BIT(10)
|
|
|
|
+
|
|
|
|
#endif
|
2013-06-23 15:50:49 +00:00
|
|
|
--
|
|
|
|
1.7.10.4
|
|
|
|
|