From: Markus Pargmann <mpa@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] net: fec: Fix RGMII-ID
Date: Thu, 30 Apr 2015 15:01:46 +0200 [thread overview]
Message-ID: <1430398906-3930-1-git-send-email-mpa@pengutronix.de> (raw)
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>
---
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 c1fa1517da81..54095e7b7ab7 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_TXID ||
+ fec->interface == PHY_INTERFACE_MODE_RGMII_RXID)
rcntl |= 1 << 6;
writel(rcntl, fec->regs + FEC_R_CNTRL);
--
2.1.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2015-04-30 13:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 13:01 Markus Pargmann [this message]
2015-05-01 6:38 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1430398906-3930-1-git-send-email-mpa@pengutronix.de \
--to=mpa@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox