net: fec_mxc: add support for i.MX8X
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
@@ -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
@@ -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
PATCH 1/1 net: fec_mxc: add support for i.MX8X
Quoted 8 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_MXCselection for i.MX8.Signed-off-by Anatolij Gustschin <[email protected]>Cc Joe Hershberger <[email protected]>
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_MXCselection for i.MX8.
Quoted 4 lines
Quoted 2 lines
Signed-off-by Anatolij Gustschin <[email protected]>Cc Joe Hershberger <[email protected]>Acked-by Joe Hershberger <[email protected]>
A bit off topic, but I notice that your replies are sent two or three times to the mailing list.
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_MXCselection for i.MX8.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Signed-off-by Anatolij Gustschin <[email protected]>Cc Joe Hershberger <[email protected]>Acked-by Joe Hershberger <[email protected]>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
Hi Anatolij,
https://patchwork.ozlabs.org/patch/985918/ was applied to http://git.denx.de/?p=u-boot/u-boot-net.git
Thanks!
-Joe