diff options
author | John Crispin <john@openwrt.org> | 2014-11-12 14:54:50 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2014-11-12 14:54:50 +0000 |
commit | 86e3315ecee80c6cd0b0728e119866f735d4f910 (patch) | |
tree | e4cf03081b1d3cf0e5889d75f66fd9c521d36b98 /target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c | |
parent | 45814d150a90b9f0067cda87536349339ff675f5 (diff) | |
download | master-31e0f0ae-86e3315ecee80c6cd0b0728e119866f735d4f910.tar.gz master-31e0f0ae-86e3315ecee80c6cd0b0728e119866f735d4f910.tar.bz2 master-31e0f0ae-86e3315ecee80c6cd0b0728e119866f735d4f910.zip |
ralink: add support for mt7621 ethernet
somehow all switch ports still come up as 10mbit.
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 43237
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c index c840953a54..1352b2518b 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c @@ -578,7 +578,7 @@ mt7530_probe(struct device *dev, void __iomem *base, struct mii_bus *bus, int vl mt7530_apply_config(swdev); /* magic vodoo */ - if (bus && mt7530_r32(mt7530, REG_HWTRAP) != 0x1117edf) { + if (!IS_ENABLED(CONFIG_SOC_MT7621) && bus && mt7530_r32(mt7530, REG_HWTRAP) != 0x1117edf) { dev_info(dev, "fixing up MHWTRAP register - bootloader probably played with it\n"); mt7530_w32(mt7530, REG_HWTRAP, 0x1117edf); } |