[PATCH 2/2] net: fec_imx: Fix RGMII-ID mode
Sascha Hauer
s.hauer at pengutronix.de
Thu Sep 10 23:29:39 PDT 2015
RGMII-ID uses an internal delay within the transmitter or receiver. This
feature is phy specific. The rest of the communication is normal RGMII.
So the fec driver has to check for all RGMII modes, not only
'PHY_INTERFACE_MODE_RGMII'.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/net/fec_imx.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/net/fec_imx.c b/drivers/net/fec_imx.c
index c1fa151..55f7096 100644
--- a/drivers/net/fec_imx.c
+++ b/drivers/net/fec_imx.c
@@ -309,7 +309,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_RXID ||
+ fec->interface == PHY_INTERFACE_MODE_RGMII_TXID)
rcntl |= 1 << 6;
writel(rcntl, fec->regs + FEC_R_CNTRL);
--
2.5.0
More information about the barebox
mailing list