puts("\nPHY reset complete.\n");
return 0;
}
+#endif
static void phy_detection(struct eth_device *dev)
{
}
printf("PHY is not detected\n");
}
-#endif
static int zynq_gem_setup_mac(struct eth_device *dev)
{
/* Setup for Network Control register, MDIO, Rx and Tx enable */
setbits_le32(®s->nwctrl, ZYNQ_GEM_NWCTRL_MDEN_MASK );
+ phy_detection(dev);
+
#ifdef CONFIG_PHYLIB
/* interface - look at tsec */
phydev = phy_connect(priv->bus, priv->phyaddr, dev, 0);
phywrite(dev, priv->phyaddr, 22, 0); /* page 0 */
#endif
u16 tmp;
- phy_detection(dev);
/* link speed advertisement for autonegotiation */
phyread(dev, priv->phyaddr, 4, &tmp);