summaryrefslogtreecommitdiffstats
path: root/drivers/net/fec_imx.c
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2015-04-30 15:01:46 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-05-01 08:38:42 +0200
commitd098f2cf6f7634a01cb50f68787f0aacae63dad8 (patch)
tree82c78f2c03ab73aa9d078a9a0b0466149307c335 /drivers/net/fec_imx.c
parentf6842f2e8bd0d0906c1d8e953dae598398388232 (diff)
downloadbarebox-d098f2cf6f7634a01cb50f68787f0aacae63dad8.tar.gz
barebox-d098f2cf6f7634a01cb50f68787f0aacae63dad8.tar.xz
net: fec: Fix RGMII-ID
RGMII-ID just defines transmitter internal delays. Otherwise it is the same as RGMII. As the differences only influence the behaviour of the phy, the fec driver should handle it the same way as RGMII. Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/fec_imx.c')
-rw-r--r--drivers/net/fec_imx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index 875905a1bf..28d5a7b8bf 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -308,7 +308,10 @@ static int fec_init(struct eth_device *dev)
}
}
- if (fec->interface == PHY_INTERFACE_MODE_RGMII)
+ if (fec->interface == PHY_INTERFACE_MODE_RGMII ||
+ fec->interface == PHY_INTERFACE_MODE_RGMII_ID ||
+ fec->interface == PHY_INTERFACE_MODE_RGMII_TXID ||
+ fec->interface == PHY_INTERFACE_MODE_RGMII_RXID)
rcntl |= 1 << 6;
writel(rcntl, fec->regs + FEC_R_CNTRL);