aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-21 16:18:23 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2020-08-26 23:58:01 +0200
commitadf830a3a5cc8dc1813457922452413894a5f948 (patch)
treeace714aa2ba0fe89a5c8f62624557ca322f0ba8f /target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h
parentc1aa2d4411659d336d05a1886223d53d6bb2c330 (diff)
downloadupstream-adf830a3a5cc8dc1813457922452413894a5f948.tar.gz
upstream-adf830a3a5cc8dc1813457922452413894a5f948.tar.bz2
upstream-adf830a3a5cc8dc1813457922452413894a5f948.zip
ramips: remove further mt7621 code from local ethernet driver
While commit 734a8c46e703 focussed on removing stuff directly selected by the NET_RALINK_* symbols, this patch removes additional unused mt7621-specific code from the ethernet driver. As with the previous patch, the main reason is to reduce the amount of code we have to maintain and care about. Note that this patch still keeps a few lines with IS_ENABLED(CONFIG_SOC_MT7621) in mtk_eth_soc.h/.c, as this file is still selected for the mt7621 subtarget. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h
index 03d030446a..f10946a173 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h
@@ -17,11 +17,7 @@
#define GSW_REG_PHY_TIMEOUT (5 * HZ)
-#ifdef CONFIG_SOC_MT7621
-#define MT7620A_GSW_REG_PIAC 0x0004
-#else
#define MT7620A_GSW_REG_PIAC 0x7004
-#endif
#define GSW_NUM_VLANS 16
#define GSW_NUM_VIDS 4096
@@ -65,11 +61,7 @@
#define PORT_IRQ_ST_CHG 0x7f
-#ifdef CONFIG_SOC_MT7621
-#define ESW_PHY_POLLING 0x0000
-#else
#define ESW_PHY_POLLING 0x7000
-#endif
#define PMCR_IPG BIT(18)
#define PMCR_MAC_MODE BIT(16)