diff options
author | Michal Simek <michal.simek@xilinx.com> | 2014-02-25 10:25:38 +0100 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2014-05-06 13:41:33 +0200 |
commit | c1a9fa4ba67971f45ee106250340963cef7d020a (patch) | |
tree | 9c536a30ebc3db92941cf5553e4198ee36e7d8c3 /drivers/net/zynq_gem.c | |
parent | 52fded7b94d98c73a824e4a9d90596a33a1cbb8a (diff) | |
download | u-boot-imx-c1a9fa4ba67971f45ee106250340963cef7d020a.zip u-boot-imx-c1a9fa4ba67971f45ee106250340963cef7d020a.tar.gz u-boot-imx-c1a9fa4ba67971f45ee106250340963cef7d020a.tar.bz2 |
net: zynq: Use predefined macros instead of hardcoded value
MII is used by this driver.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/net/zynq_gem.c')
-rw-r--r-- | drivers/net/zynq_gem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c index 101489c..08056a4 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; |