aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-11-12 14:54:50 +0000
committerJohn Crispin <john@openwrt.org>2014-11-12 14:54:50 +0000
commit86e3315ecee80c6cd0b0728e119866f735d4f910 (patch)
treee4cf03081b1d3cf0e5889d75f66fd9c521d36b98 /target/linux/ramips/files/drivers/net/ethernet/ralink/mt7530.c
parent45814d150a90b9f0067cda87536349339ff675f5 (diff)
downloadupstream-86e3315ecee80c6cd0b0728e119866f735d4f910.tar.gz
upstream-86e3315ecee80c6cd0b0728e119866f735d4f910.tar.bz2
upstream-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.c2
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);
}