diff options
author | Ansuel Smith <ansuelsmth@gmail.com> | 2021-05-14 23:00:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-05-15 00:30:22 +0200 |
commit | 759bafb8a3226326ca357613bc90acf738f80c32 (patch) | |
tree | 4ab5b88cd5fb8be9bcdfdb0db3264f592e171767 /drivers/net/dsa/qca8k.h | |
parent | net: dsa: qca8k: enlarge mdio delay and timeout (diff) | |
download | linux-759bafb8a3226326ca357613bc90acf738f80c32.tar.xz linux-759bafb8a3226326ca357613bc90acf738f80c32.zip |
net: dsa: qca8k: add support for internal phy and internal mdio
Add support to setup_mdio_bus for internal phy declaration. Introduce a
flag to use the legacy port phy mapping by default and use the direct
mapping if a mdio node is detected in the switch node. Register a
dedicated mdio internal mdio bus to address the different mapping
between port and phy if the mdio node is detected.
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca8k.h')
-rw-r--r-- | drivers/net/dsa/qca8k.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca8k.h b/drivers/net/dsa/qca8k.h index d365f85ab34f..ed3b05ad6745 100644 --- a/drivers/net/dsa/qca8k.h +++ b/drivers/net/dsa/qca8k.h @@ -255,6 +255,7 @@ struct qca8k_priv { u8 switch_revision; u8 rgmii_tx_delay; u8 rgmii_rx_delay; + bool legacy_phy_port_mapping; struct regmap *regmap; struct mii_bus *bus; struct ar8xxx_port_status port_sts[QCA8K_NUM_PORTS]; |