]> git.sur5r.net Git - u-boot/commitdiff
phy: atheros: set auto-negotiation for AR8021
authorZhao Qiang <qiang.zhao@nxp.com>
Thu, 14 Dec 2017 01:50:46 +0000 (09:50 +0800)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 15 Jan 2018 18:05:27 +0000 (12:05 -0600)
Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/phy/atheros.c

index b34cdd3d87dc02f8a01db2f10e895287790679fb..d7e76deeb7c9783d6efa1f1d36b0945803e7982e 100644 (file)
@@ -19,6 +19,7 @@
 
 static int ar8021_config(struct phy_device *phydev)
 {
+       phy_write(phydev, MDIO_DEVAD_NONE, 0x00, 0x1200);
        phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05);
        phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x3D47);