summaryrefslogtreecommitdiff
path: root/drivers/net/mdio/Kconfig
diff options
context:
space:
mode:
authorCalvin Johnson <calvin.johnson@oss.nxp.com>2021-06-11 13:53:54 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-11 13:08:53 -0700
commitbc1bee3b87ee48bd97ef7fd306445132ba2041b0 (patch)
treee52b654c50d0a4ecea963c9baae755f0c9a79ba5 /drivers/net/mdio/Kconfig
parentb9926da003cab58594803a2bc5a1d5bd7c670eba (diff)
downloadlwn-bc1bee3b87ee48bd97ef7fd306445132ba2041b0.tar.gz
lwn-bc1bee3b87ee48bd97ef7fd306445132ba2041b0.zip
net: mdiobus: Introduce fwnode_mdiobus_register_phy()
Introduce fwnode_mdiobus_register_phy() to register PHYs on the mdiobus. From the compatible string, identify whether the PHY is c45 and based on this create a PHY device instance which is registered on the mdiobus. Along with fwnode_mdiobus_register_phy() also introduce fwnode_find_mii_timestamper() and fwnode_mdiobus_phy_device_register() since they are needed. While at it, also use the newly introduced fwnode operation in of_mdiobus_phy_device_register(). Signed-off-by: Calvin Johnson <calvin.johnson@oss.nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Acked-by: Grant Likely <grant.likely@arm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mdio/Kconfig')
-rw-r--r--drivers/net/mdio/Kconfig7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/mdio/Kconfig b/drivers/net/mdio/Kconfig
index d06e06f5e31a..422e9e042a3c 100644
--- a/drivers/net/mdio/Kconfig
+++ b/drivers/net/mdio/Kconfig
@@ -19,6 +19,13 @@ config MDIO_BUS
reflects whether the mdio_bus/mdio_device code is built as a
loadable module or built-in.
+config FWNODE_MDIO
+ def_tristate PHYLIB
+ depends on (ACPI || OF) || COMPILE_TEST
+ select FIXED_PHY
+ help
+ FWNODE MDIO bus (Ethernet PHY) accessors
+
config OF_MDIO
def_tristate PHYLIB
depends on OF