diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2012-10-22 16:40:43 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2013-01-28 06:57:50 +0100 |
commit | 1adb406b014176f0c1a925e4d3e9aae556dfe571 (patch) | |
tree | e47a7744d39f219603d18cd8c79a76ddb33ca4fe /include | |
parent | eef2448039c43493b2f9def6f257f1006fb0e956 (diff) | |
download | u-boot-1adb406b014176f0c1a925e4d3e9aae556dfe571.tar.gz u-boot-1adb406b014176f0c1a925e4d3e9aae556dfe571.tar.bz2 u-boot-1adb406b014176f0c1a925e4d3e9aae556dfe571.zip |
phy: add phy_find_by_mask/phy_connect_dev
It is useful to be able to try a range of
possible phy addresses to connect.
Also, an ethernet device is not required
to use phy_find_by_mask leading to better
separation of mii vs ethernet, as suggested
by Andy Fleming.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/phy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h index 3c30f115b6..58ca2730c8 100644 --- a/include/phy.h +++ b/include/phy.h @@ -199,6 +199,9 @@ static inline int is_10g_interface(phy_interface_t interface) int phy_init(void); int phy_reset(struct phy_device *phydev); +struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask, + phy_interface_t interface); +void phy_connect_dev(struct phy_device *phydev, struct eth_device *dev); struct phy_device *phy_connect(struct mii_dev *bus, int addr, struct eth_device *dev, phy_interface_t interface); |