summaryrefslogtreecommitdiff
path: root/include/phy.h
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2012-10-22 16:40:43 +0000
committerStefano Babic <sbabic@denx.de>2013-01-28 06:57:50 +0100
commit1adb406b014176f0c1a925e4d3e9aae556dfe571 (patch)
treee47a7744d39f219603d18cd8c79a76ddb33ca4fe /include/phy.h
parenteef2448039c43493b2f9def6f257f1006fb0e956 (diff)
downloadu-boot-imx-1adb406b014176f0c1a925e4d3e9aae556dfe571.zip
u-boot-imx-1adb406b014176f0c1a925e4d3e9aae556dfe571.tar.gz
u-boot-imx-1adb406b014176f0c1a925e4d3e9aae556dfe571.tar.bz2
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/phy.h')
-rw-r--r--include/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h
index 3c30f11..58ca273 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);