aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-18 20:17:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-18 20:17:07 +0000
commit03ea0cf6f18593a587d240d56b473345c035db98 (patch)
treedad354f0d5bc961ea8c37d22222439924aa49451 /target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c
parent50588ef192d7141040a4f42902a71312b2a5ee75 (diff)
downloadupstream-03ea0cf6f18593a587d240d56b473345c035db98.tar.gz
upstream-03ea0cf6f18593a587d240d56b473345c035db98.tar.bz2
upstream-03ea0cf6f18593a587d240d56b473345c035db98.zip
ralink: use fe_reset to control all reset
Signed-off-by: michael lee <igvtee@gmail.com> SVN-Revision: 44044
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c
index 348005b345..8f7be46889 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c
@@ -24,7 +24,6 @@
#define RT305X_RESET_FE BIT(21)
#define RT305X_RESET_ESW BIT(23)
-#define SYSC_REG_RESET_CTRL 0x034
static const u32 rt5350_reg_table[FE_REG_COUNT] = {
[FE_REG_PDMA_GLO_CFG] = RT5350_PDMA_GLO_CFG,
@@ -74,8 +73,7 @@ static int rt3050_fwd_config(struct fe_priv *priv)
static void rt305x_fe_reset(void)
{
- rt_sysc_w32(RT305X_RESET_FE, SYSC_REG_RESET_CTRL);
- rt_sysc_w32(0, SYSC_REG_RESET_CTRL);
+ fe_reset(RT305X_RESET_FE);
}
static void rt5350_init_data(struct fe_soc_data *data,
@@ -123,8 +121,7 @@ static void rt5350_tx_dma(struct fe_tx_dma *txd)
static void rt5350_fe_reset(void)
{
- rt_sysc_w32(RT305X_RESET_FE | RT305X_RESET_ESW, SYSC_REG_RESET_CTRL);
- rt_sysc_w32(0, SYSC_REG_RESET_CTRL);
+ fe_reset(RT305X_RESET_FE | RT305X_RESET_ESW);
}
static struct fe_soc_data rt3050_data = {