aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/patches-3.14/0006-MIPS-lantiq-reboot-gphy-on-restart.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-08-18 13:09:30 +0000
committerJohn Crispin <blogic@openwrt.org>2014-08-18 13:09:30 +0000
commit6e787b6f14eb598b3584bc48e9678f5c542e50d3 (patch)
treee4801c3cb7d4217b992293bbfe69af22237a14da /target/linux/lantiq/patches-3.14/0006-MIPS-lantiq-reboot-gphy-on-restart.patch
parenta7b7f7d885f148809e0a83802bed834f0bfc3bf8 (diff)
downloadmaster-187ad058-6e787b6f14eb598b3584bc48e9678f5c542e50d3.tar.gz
master-187ad058-6e787b6f14eb598b3584bc48e9678f5c542e50d3.tar.bz2
master-187ad058-6e787b6f14eb598b3584bc48e9678f5c542e50d3.zip
lantiq: update to 3.14
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42188 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/patches-3.14/0006-MIPS-lantiq-reboot-gphy-on-restart.patch')
-rw-r--r--target/linux/lantiq/patches-3.14/0006-MIPS-lantiq-reboot-gphy-on-restart.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/target/linux/lantiq/patches-3.14/0006-MIPS-lantiq-reboot-gphy-on-restart.patch b/target/linux/lantiq/patches-3.14/0006-MIPS-lantiq-reboot-gphy-on-restart.patch
new file mode 100644
index 0000000000..09a3b12b8c
--- /dev/null
+++ b/target/linux/lantiq/patches-3.14/0006-MIPS-lantiq-reboot-gphy-on-restart.patch
@@ -0,0 +1,34 @@
+From f81979f4b297693ac70616feaa4a79bdcb11db35 Mon Sep 17 00:00:00 2001
+From: John Crispin <blogic@openwrt.org>
+Date: Thu, 7 Aug 2014 18:55:57 +0200
+Subject: [PATCH 06/31] MIPS: lantiq: reboot gphy on restart
+
+Signed-off-by: John Crispin <blogic@openwrt.org>
+---
+ arch/mips/lantiq/xway/reset.c | 9 ++++++++-
+ 1 file changed, 8 insertions(+), 1 deletion(-)
+
+diff --git a/arch/mips/lantiq/xway/reset.c b/arch/mips/lantiq/xway/reset.c
+index a1e06b7..fe68f9a 100644
+--- a/arch/mips/lantiq/xway/reset.c
++++ b/arch/mips/lantiq/xway/reset.c
+@@ -176,8 +176,15 @@ void ltq_rst_init(void)
+
+ static void ltq_machine_restart(char *command)
+ {
++ u32 val = ltq_rcu_r32(RCU_RST_REQ);
++
++ if (of_device_is_compatible(ltq_rcu_np, "lantiq,rcu-xrx200"))
++ val |= RCU_RD_GPHY1_XRX200 | RCU_RD_GPHY0_XRX200;
++
++ val |= RCU_RD_SRST;
++
+ local_irq_disable();
+- ltq_rcu_w32(ltq_rcu_r32(RCU_RST_REQ) | RCU_RD_SRST, RCU_RST_REQ);
++ ltq_rcu_w32(val, RCU_RST_REQ);
+ unreachable();
+ }
+
+--
+1.7.10.4
+