aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/patches-4.9/301-fix-rt3883.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/patches-4.9/301-fix-rt3883.patch')
-rw-r--r--target/linux/ramips/patches-4.9/301-fix-rt3883.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/target/linux/ramips/patches-4.9/301-fix-rt3883.patch b/target/linux/ramips/patches-4.9/301-fix-rt3883.patch
new file mode 100644
index 0000000000..100dd6253d
--- /dev/null
+++ b/target/linux/ramips/patches-4.9/301-fix-rt3883.patch
@@ -0,0 +1,26 @@
+--- a/arch/mips/ralink/rt3883.c
++++ b/arch/mips/ralink/rt3883.c
+@@ -63,16 +63,6 @@
+ { 0 }
+ };
+
+-static void rt3883_wdt_reset(void)
+-{
+- u32 t;
+-
+- /* enable WDT reset output on GPIO 2 */
+- t = rt_sysc_r32(RT3883_SYSC_REG_SYSCFG1);
+- t |= RT3883_SYSCFG1_GPIO2_AS_WDT_OUT;
+- rt_sysc_w32(t, RT3883_SYSC_REG_SYSCFG1);
+-}
+-
+ void __init ralink_clk_init(void)
+ {
+ unsigned long cpu_rate, sys_rate;
+@@ -157,5 +147,5 @@
+
+ rt2880_pinmux_data = rt3883_pinmux_data;
+
+- ralink_soc == RT3883_SOC;
++ ralink_soc = RT3883_SOC;
+ }