diff options
author | Michael Pratt <mcpratt@pm.me> | 2021-03-31 16:09:37 -0400 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2022-04-19 14:48:21 +0200 |
commit | a14c2d409c44c7562b29b79549fdf51566b59db0 (patch) | |
tree | a3c8cea0652e09cffb2b8c97601127c45fcef4ce /target/linux/ramips/files/drivers/net/ethernet/ralink/gsw_mt7620.h | |
parent | c652a06eefc03a69dfc509880313f44e44c7966a (diff) | |
download | upstream-a14c2d409c44c7562b29b79549fdf51566b59db0.tar.gz upstream-a14c2d409c44c7562b29b79549fdf51566b59db0.tar.bz2 upstream-a14c2d409c44c7562b29b79549fdf51566b59db0.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>
(cherry picked from commit 953bfe2eb3b7236a72fa41ab2204fdaa9fd09f65)
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.h | 7 |
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; }; |