diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-18 20:17:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-18 20:17:07 +0000 |
commit | 03ea0cf6f18593a587d240d56b473345c035db98 (patch) | |
tree | dad354f0d5bc961ea8c37d22222439924aa49451 /target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c | |
parent | 50588ef192d7141040a4f42902a71312b2a5ee75 (diff) | |
download | master-31e0f0ae-03ea0cf6f18593a587d240d56b473345c035db98.tar.gz master-31e0f0ae-03ea0cf6f18593a587d240d56b473345c035db98.tar.bz2 master-31e0f0ae-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_mt7620.c')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c index 0c1384b51c..6123f24778 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c @@ -39,8 +39,6 @@ #define MT7621_TX_DMA_UDF BIT(19) #define TX_DMA_FP_BMAP ((0xff) << 19) -#define SYSC_REG_RESET_CTRL 0x34 - #define CDMA_ICS_EN BIT(2) #define CDMA_UCS_EN BIT(1) #define CDMA_TCS_EN BIT(0) @@ -105,18 +103,12 @@ static const u32 mt7621_reg_table[FE_REG_COUNT] = { static void mt7620_fe_reset(void) { - u32 val = rt_sysc_r32(SYSC_REG_RESET_CTRL); - - rt_sysc_w32(val | MT7620A_RESET_FE | MT7620A_RESET_ESW, SYSC_REG_RESET_CTRL); - rt_sysc_w32(val, SYSC_REG_RESET_CTRL); + fe_reset(MT7620A_RESET_FE | MT7620A_RESET_ESW); } static void mt7621_fe_reset(void) { - u32 val = rt_sysc_r32(SYSC_REG_RESET_CTRL); - - rt_sysc_w32(val | MT7621_RESET_FE, SYSC_REG_RESET_CTRL); - rt_sysc_w32(val, SYSC_REG_RESET_CTRL); + fe_reset(MT7621_RESET_FE); } static void mt7620_rxcsum_config(bool enable) |