summaryrefslogtreecommitdiff
path: root/drivers/net/mdio/Makefile
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/Makefile
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/Makefile')
-rw-r--r--drivers/net/mdio/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/mdio/Makefile b/drivers/net/mdio/Makefile
index c3ec0ef989df..2e6813c709eb 100644
--- a/drivers/net/mdio/Makefile
+++ b/drivers/net/mdio/Makefile
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
# Makefile for Linux MDIO bus drivers
-obj-$(CONFIG_OF_MDIO) += of_mdio.o
+obj-$(CONFIG_FWNODE_MDIO) += fwnode_mdio.o
+obj-$(CONFIG_OF_MDIO) += of_mdio.o
obj-$(CONFIG_MDIO_ASPEED) += mdio-aspeed.o
obj-$(CONFIG_MDIO_BCM_IPROC) += mdio-bcm-iproc.o