summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-05-06 14:50:22 -0400
committerTom Rini <trini@ti.com>2014-05-06 14:50:22 -0400
commita1a1f6e938a9de13c353064ba80eb705ba7422e9 (patch)
treebed7f1faf08ae584cdb89ebf19e424ad38e9fd90 /drivers
parent3c3f13f81942134edff280fcb5e7137c623e7dac (diff)
parent2fd2489b7aa36478433ae2a1f4de9f66e0a80322 (diff)
downloadu-boot-imx-a1a1f6e938a9de13c353064ba80eb705ba7422e9.zip
u-boot-imx-a1a1f6e938a9de13c353064ba80eb705ba7422e9.tar.gz
u-boot-imx-a1a1f6e938a9de13c353064ba80eb705ba7422e9.tar.bz2
Merge branch 'net' of git://www.denx.de/git/u-boot-microblaze
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/zynq_gem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/zynq_gem.c b/drivers/net/zynq_gem.c
index 101489c..3cadd23 100644
--- a/drivers/net/zynq_gem.c
+++ b/drivers/net/zynq_gem.c
@@ -11,6 +11,7 @@
#include <common.h>
#include <net.h>
+#include <netdev.h>
#include <config.h>
#include <fdtdec.h>
#include <libfdt.h>
@@ -338,7 +339,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;