summaryrefslogtreecommitdiff
path: root/drivers/net/phy/phy.c
diff options
context:
space:
mode:
authorKevin Smith <kevin.smith@elecsyscorp.com>2016-03-31 19:33:12 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2016-05-24 11:39:04 -0500
commit24ae3961f811ee79e6c98474e21e07f8ce222dfc (patch)
tree5e2a261cc73141ebadc650f5e6622d60e82bc0fd /drivers/net/phy/phy.c
parent83c05515d8b428b9dd1ce6e7031048d4c1971152 (diff)
downloadu-boot-imx-24ae3961f811ee79e6c98474e21e07f8ce222dfc.zip
u-boot-imx-24ae3961f811ee79e6c98474e21e07f8ce222dfc.tar.gz
u-boot-imx-24ae3961f811ee79e6c98474e21e07f8ce222dfc.tar.bz2
net: phy: Add PHY driver for mv88e61xx switches
The previous mv88e61xx driver was a driver for configuring the switch, but did not integrate with the PHY/networking system, so it could not be used as a PHY by U-boot. This is a complete rework to support this device as a PHY. Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com> Acked-by: Prafulla Wadaskar <prafulla@marvell.com> Cc: Albert ARIBAUD <albert.u.boot@aribaud.net> Cc: Joe Hershberger <joe.hershberger@ni.com> Cc: Stefan Roese <sr@denx.de> Cc: Marek Vasut <marex@denx.de> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r--drivers/net/phy/phy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c
index 23c82bb..539319f 100644
--- a/drivers/net/phy/phy.c
+++ b/drivers/net/phy/phy.c
@@ -458,6 +458,9 @@ static LIST_HEAD(phy_drivers);
int phy_init(void)
{
+#ifdef CONFIG_MV88E61XX_SWITCH
+ phy_mv88e61xx_init();
+#endif
#ifdef CONFIG_PHY_AQUANTIA
phy_aquantia_init();
#endif