RT5350 frame engine need reset frame engine and embedded switch together.

Signed-off-by: Serge Vasilugin <vasilu...@yandex.ru>


Index: target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
===================================================================
--- target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c (revision 33627)
+++ target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c (working copy)
@@ -116,7 +116,7 @@

 static void rt305x_fe_reset(void)
 {
- rt305x_sysc_wr(RT305X_RESET_FE, SYSC_REG_RESET_CTRL);
+ rt305x_sysc_wr(RT305X_RESET_FE | (soc_is_rt5350() ? RT305X_RESET_ESW : 0), 
SYSC_REG_RESET_CTRL);
         rt305x_sysc_wr(0, SYSC_REG_RESET_CTRL);
 }


---
serge
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to