From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZaHqY-0000dt-K7 for barebox@lists.infradead.org; Fri, 11 Sep 2015 06:30:07 +0000 From: Sascha Hauer Date: Fri, 11 Sep 2015 08:29:39 +0200 Message-Id: <1441952979-6202-2-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1441952979-6202-1-git-send-email-s.hauer@pengutronix.de> References: <1441952979-6202-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/2] net: fec_imx: Fix RGMII-ID mode To: Barebox List 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 --- 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 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox