Skip to contentSkip to conversation

net: fec_mxc: add support for i.MX8X

PATCH In review Anatolij Gustschin 3 participants 5 messages Oct 18, 2018 – Oct 24, 2018 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fec_mxc: add support for i.MX8X

Add compatible property and enable the FEC ipg clock when probing on i.MX8X. Add specific function for reading FEC clock rate via clock driver when configuring MII speed register. Allow FEC_MXC selection for i.MX8.

---
 drivers/net/Kconfig   |  2 +-
 drivers/net/fec_mxc.c | 59 ++++++++++++++++++++++++++++++++++++++++---
 drivers/net/fec_mxc.h |  4 +++
 3 files changed, 61 insertions(+), 4 deletions(-)
drivers/net/Kconfig +1 -1
index f1f0e2d94e..39687431fb 100644
@@ -176,7 +176,7 @@ config FEC_MXC_MDIO_BASE
 
 config FEC_MXC
 	bool "FEC Ethernet controller"
-	depends on MX5 || MX6 || MX7
+	depends on MX5 || MX6 || MX7 || IMX8
 	help
 	  This driver supports the 10/100 Fast Ethernet controller for
 	  NXP i.MX processors.
drivers/net/fec_mxc.c +56 -3

83 lines not on this page · raw message

drivers/net/fec_mxc.h +4 -0
index fd89443205..75ba55b69f 100644
@@ -16,6 +16,8 @@
 #ifndef __FEC_MXC_H
 #define __FEC_MXC_H
 
+#include <clk.h>
+
 /* Layout description of the FEC */
 struct ethernet_regs {
 	/* [10:2]addr = 00 */
@@ -257,6 +259,8 @@ struct fec_priv {
 #ifdef CONFIG_DM_ETH
 	u32 interface;
 #endif
+	struct clk ipg_clk;
+	u32 clk_rate;
 };
 
 void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 net: fec_mxc: add support for i.MX8X

Hi Joe,

Quoted 8 lines · Joe Hershberger
Quoted 6 lines · Anatolij Gustschin

Add compatible property and enable the FEC ipg clock when probing on i.MX8X. Add specific function for reading FEC clock rate via clock driver when configuring MII speed register. Allow FEC_MXC selection for i.MX8.

Quoted 4 lines
Quoted 2 lines

A bit off topic, but I notice that your replies are sent two or three times to the mailing list.

#3 lore raw

PATCH 1/1 net: fec_mxc: add support for i.MX8X

Quoted 12 lines · Fabio Estevam

Hi Joe,

Quoted 8 lines · Joe Hershberger
Quoted 6 lines · Anatolij Gustschin

Add compatible property and enable the FEC ipg clock when probing on i.MX8X. Add specific function for reading FEC clock rate via clock driver when configuring MII speed register. Allow FEC_MXC selection for i.MX8.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

A bit off topic, but I notice that your replies are sent two or three times to the mailing list.

I've noticed that as well... it seems something has been screwed up on the Google servers I use to send emails to the list. I've reported the issue and have gotten no response. I'll report it again. Oddly the messages get uniquified in the archives, presumably because the message IDs are the same.

Apologies,
-Joe