]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: zynq: Use predefined macros instead of hardcoded value
authorMichal Simek <michal.simek@xilinx.com>
Tue, 25 Feb 2014 09:25:38 +0000 (10:25 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 6 May 2014 11:41:33 +0000 (13:41 +0200)
MII is used by this driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c

index 101489c994760bf8bdaba0f7546fd941ca846a94..08056a4bac19bf78a483ac958929595f017d8194 100644 (file)
@@ -338,7 +338,8 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis)
        phy_detection(dev);
 
        /* interface - look at tsec */
-       phydev = phy_connect(priv->bus, priv->phyaddr, dev, 0);
+       phydev = phy_connect(priv->bus, priv->phyaddr, dev,
+                            PHY_INTERFACE_MODE_MII);
 
        phydev->supported = supported | ADVERTISED_Pause |
                            ADVERTISED_Asym_Pause;