]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: emaclite: Use predefined macros instead of hardcoded value
authorMichal Simek <michal.simek@xilinx.com>
Tue, 25 Feb 2014 09:26:30 +0000 (10:26 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 4 Mar 2014 11:42:18 +0000 (12:42 +0100)
MII is used by this driver.

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

index 0b07238b49dde11e67bc47f49df7c8b2a5a89f62..a1766052fdf3a74eb0824a01d29c3f16445fad17 100644 (file)
@@ -259,7 +259,8 @@ static int setup_phy(struct eth_device *dev)
        }
 
        /* interface - look at tsec */
-       phydev = phy_connect(emaclite->bus, emaclite->phyaddr, dev, 0);
+       phydev = phy_connect(emaclite->bus, emaclite->phyaddr, dev,
+                            PHY_INTERFACE_MODE_MII);
        /*
         * Phy can support 1000baseT but device NOT that's why phydev->supported
         * must be setup for 1000baseT. phydev->advertising setups what speeds