]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: am65-cpsw: cpsw_mdio: Switch to proper DM_MDIO framework
authorRoger Quadros <rogerq@kernel.org>
Wed, 28 Feb 2024 10:35:27 +0000 (12:35 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 7 Mar 2024 12:59:16 +0000 (07:59 -0500)
commitbe2eb3ad8fa748d075e28328ab454f702d10bc4f
treee3072944615bdb3caaa780383b3a4c167a61af9c
parenta0e02c66194593a9983229781c2c6fb51f5b052f
net: am65-cpsw: cpsw_mdio: Switch to proper DM_MDIO framework

Add a new Kconfig symbol MDIO_TI_CPSW for the CPSW MDIO
driver and build it with proper DM support if enabled.

If MDIO_TI_CPSW is not enabled then we continue to
behave like before.

Clean up MDIO custom handling in am65-cpsw and use
dm_eth_phy_connect() to get the PHY.

Signed-off-by: Roger Quadros <rogerq@kernel.org>
Tested-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
drivers/net/ti/Kconfig
drivers/net/ti/Makefile
drivers/net/ti/am65-cpsw-nuss.c
drivers/net/ti/cpsw_mdio.c
drivers/net/ti/cpsw_mdio.h