mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
net: mdio-uclass: introduce dm_eth_phy_connect_interface()
dm_eth_phy_connect_interface() is a variant of dm_eth_phy_connect() that allows to set the used PHY mode, in case the MAC driver needs to fix it up. The previously static dm_eth_connect_phy_handle() is renamed and extended for this purpose. Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
This commit is contained in:
committed by
Tom Rini
parent
361731fc39
commit
8db554dcbb
@@ -192,6 +192,21 @@ struct phy_device *dm_mdio_phy_connect(struct udevice *mdiodev, int phyaddr,
|
||||
struct udevice *ethdev,
|
||||
phy_interface_t interface);
|
||||
|
||||
/**
|
||||
* dm_eth_phy_connect_interface - Connect an Eth device to a PHY based on device
|
||||
* tree with custom PHY interface
|
||||
*
|
||||
* Picks up the DT phy-handle and from ethernet device node and connects the
|
||||
* ethernet device to the linked PHY, while allowing the caller to specify
|
||||
* the phy-mode to use.
|
||||
*
|
||||
* @ethdev: ethernet device
|
||||
* @interface: MAC-PHY protocol
|
||||
*
|
||||
* Return: pointer to phy_device, or 0 on error
|
||||
*/
|
||||
struct phy_device *dm_eth_phy_connect_interface(struct udevice *ethdev,
|
||||
phy_interface_t interface);
|
||||
/**
|
||||
* dm_eth_phy_connect - Connect an Eth device to a PHY based on device tree
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user