aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h
diff options
context:
space:
mode:
authorMichael Pratt <mcpratt@pm.me>2021-03-31 16:09:37 -0400
committerChuanhong Guo <gch981213@gmail.com>2021-06-23 14:22:18 +0800
commit953bfe2eb3b7236a72fa41ab2204fdaa9fd09f65 (patch)
tree6bdad84043038f5bacf53ad37af40ec1e57b826c /target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h
parentfe6b9b0588a47e0a6aabc6a51aa676e7e7204174 (diff)
downloadupstream-953bfe2eb3b7236a72fa41ab2204fdaa9fd09f65.tar.gz
upstream-953bfe2eb3b7236a72fa41ab2204fdaa9fd09f65.tar.bz2
upstream-953bfe2eb3b7236a72fa41ab2204fdaa9fd09f65.zip
ramips: mt7620: simplify DTS properties for GMAC
There are only 2 options in the driver for the function of mt7620 internal switch port 4: EPHY mode (RJ-45, internal PHY) GMAC mode (RGMII, external PHY) Let the DTS property be boolean instead of string where EPHY mode is the default. Fix how the properties are written for all DTS that use them, and add missing nodes where applicable, and remove useless nodes, and minor DTS formatting. Signed-off-by: Michael Pratt <mcpratt@pm.me>
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.h7
1 files changed, 1 insertions, 6 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 f10946a173..91a0399976 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
@@ -88,16 +88,11 @@ enum {
GSW_ATTR_PORT_UNTAG,
};
-enum {
- PORT4_EPHY = 0,
- PORT4_EXT,
-};
-
struct mt7620_gsw {
struct device *dev;
void __iomem *base;
int irq;
- int port4;
+ bool port4_ephy;
unsigned long int autopoll;
u16 ephy_base;
};