summaryrefslogtreecommitdiffstats
path: root/drivers/net/macb.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-01-28 23:27:27 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-29 11:44:49 +0100
commitf7e31266190ad0784cf57a7af408893a277aee18 (patch)
treeefce0669dc25c6130323c6918345d13942396bd0 /drivers/net/macb.c
parentf0aa3cdf8d043c6faad2e4ace1200efb7a577883 (diff)
downloadbarebox-f7e31266190ad0784cf57a7af408893a277aee18.tar.gz
barebox-f7e31266190ad0784cf57a7af408893a277aee18.tar.xz
macb: allow to pass the phy interface
as we will add later the GMAC IP verion support (GEM) Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/macb.c')
-rw-r--r--drivers/net/macb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/macb.c b/drivers/net/macb.c
index cd977c1751..18ac3f84f8 100644
--- a/drivers/net/macb.c
+++ b/drivers/net/macb.c
@@ -436,10 +436,10 @@ static int macb_probe(struct device_d *dev)
macb->miibus.priv = macb;
macb->miibus.parent = dev;
- if (pdata->is_rmii)
- macb->interface = PHY_INTERFACE_MODE_RMII;
- else
+ if (pdata->phy_interface == PHY_INTERFACE_MODE_NA)
macb->interface = PHY_INTERFACE_MODE_MII;
+ else
+ macb->interface = pdata->phy_interface;
macb->phy_flags = pdata->phy_flags;