X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fmiiphy.h;h=61c136b114cbd2aa1185e40882818a938bc78d4b;hb=028b195b3912b523a2a325f1cc9eaf7f5e658afc;hp=94bf0da24a0ff70cf970a6e905708fee4bcfb6bc;hpb=a5d32c37d9eec2f819273536a5600a0fbde09acb;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/miiphy.h b/include/miiphy.h index 94bf0da..61c136b 100644 --- a/include/miiphy.h +++ b/include/miiphy.h @@ -165,6 +165,18 @@ struct phy_device *dm_mdio_phy_connect(struct udevice *mdiodev, int phyaddr, struct udevice *ethdev, phy_interface_t interface); +/** + * dm_eth_phy_connect - Connect an Eth device to a PHY based on device tree + * + * Picks up the DT phy-handle and phy-mode from ethernet device node and + * connects the ethernet device to the linked PHY. + * + * @ethdev: ethernet device + * + * @return pointer to phy_device, or 0 on error + */ +struct phy_device *dm_eth_phy_connect(struct udevice *ethdev); + #endif #ifdef CONFIG_DM_MDIO_MUX