]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/phy/phy.c
phy: Add support for SMSC LAN87xx PHYs
[u-boot] / drivers / net / phy / phy.c
index ce69c195368c045f5b2f02acc93be47710ee627a..eb551803e5c749dbcdafb1ed2f0f000f620741e4 100644 (file)
@@ -444,6 +444,9 @@ int phy_init(void)
 #ifdef CONFIG_PHY_REALTEK
        phy_realtek_init();
 #endif
+#ifdef CONFIG_PHY_SMSC
+       phy_smsc_init();
+#endif
 #ifdef CONFIG_PHY_TERANETICS
        phy_teranetics_init();
 #endif
@@ -692,7 +695,8 @@ struct phy_device *phy_connect(struct mii_dev *bus, int addr,
        struct phy_device *phydev;
 
        /* Reset the bus */
-       bus->reset(bus);
+       if (bus->reset)
+               bus->reset(bus);
 
        /* Wait 15ms to make sure the PHY has come out of hard reset */
        udelay(15000);