summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@xilinx.com>2014-02-25 10:25:38 +0100
committerMichal Simek <michal.simek@xilinx.com>2014-05-06 13:41:33 +0200
commitc1a9fa4ba67971f45ee106250340963cef7d020a (patch)
tree9c536a30ebc3db92941cf5553e4198ee36e7d8c3
parent52fded7b94d98c73a824e4a9d90596a33a1cbb8a (diff)
net: zynq: Use predefined macros instead of hardcoded value
MII is used by this driver. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r--drivers/net/zynq_gem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 101489c994..08056a4bac 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -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;