summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2016-01-31 19:10:13 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2016-02-04 08:10:39 +0100
commitae2fb9b9184f9b9b70caf01ecbd0dcc64d7c1cc0 (patch)
tree6a4ae2fa332ff49e2d78c65ab86df6baebed7cf2 /include/linux
parent993a28aa48f26da8d7e06ee4c3011c66c47df8c9 (diff)
downloadbarebox-ae2fb9b9184f9b9b70caf01ecbd0dcc64d7c1cc0.tar.gz
barebox-ae2fb9b9184f9b9b70caf01ecbd0dcc64d7c1cc0.tar.xz
miitool: Add code to register a PHY
This commit changes the behaviour of the 'miitool'. Now in order to show PHY's link information 'miitool' should be invoked as such: miitool -s [PHY] Also, implment code to allow to register a dummy PHY device in order to be able to perform raw MDIO bus access. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/phy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 4e88936bad..38b0670187 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -271,6 +271,7 @@ struct phy_device *get_phy_device(struct mii_bus *bus, int addr);
int phy_init(void);
int phy_init_hw(struct phy_device *phydev);
+struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id);
int phy_register_device(struct phy_device* dev);
void phy_unregister_device(struct phy_device *phydev);