aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2013-01-02 11:28:21 +0000
committerJohn Crispin <blogic@openwrt.org>2013-01-02 11:28:21 +0000
commit7f31bad36532ec4b2f909e2b78916ad39262b883 (patch)
treecdd47ba884ca88b9bf68fb4e70104f251c38e2ea /target/linux
parentd1c1b7bdd8d3c69070bc8a74b0a52d3dc7d2c553 (diff)
downloadupstream-7f31bad36532ec4b2f909e2b78916ad39262b883.tar.gz
upstream-7f31bad36532ec4b2f909e2b78916ad39262b883.tar.bz2
upstream-7f31bad36532ec4b2f909e2b78916ad39262b883.zip
[ramips] rt5350 switch support fix
RT5350 frame engine need reset frame engine and embedded switch together. Signed-off-by: Serge Vasilugin <vasilugin@yandex.ru> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34969 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
index 557eb10c18..42429b791e 100644
--- a/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
+++ b/target/linux/ramips/files/arch/mips/ralink/rt305x/devices.c
@@ -116,7 +116,11 @@ void __init rt305x_register_flash(unsigned int id)
static void rt305x_fe_reset(void)
{
- rt305x_sysc_wr(RT305X_RESET_FE, SYSC_REG_RESET_CTRL);
+ u32 reset_bits = RT305X_RESET_FE;
+
+ if (soc_is_rt5350())
+ reset_bits |= RT305X_RESET_ESW;
+ rt305x_sysc_wr(reset_bits, SYSC_REG_RESET_CTRL);
rt305x_sysc_wr(0, SYSC_REG_RESET_CTRL);
}