summaryrefslogtreecommitdiff
path: root/drivers/net/fec_mxc.h
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2018-10-18 17:15:11 +0300
committerJoe Hershberger <joe.hershberger@ni.com>2018-10-24 22:45:38 +0300
commit58ec4d3342f4ffd195f3f3f2e570f772500c6ecb (patch)
treee7a7acd35a1e3fa908c816bddb4457bbe2a58560 /drivers/net/fec_mxc.h
parent18593fa80b64801768be5657a3b41ef4533a9fc9 (diff)
downloadu-boot-58ec4d3342f4ffd195f3f3f2e570f772500c6ecb.tar.xz
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. Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/fec_mxc.h')
-rw-r--r--drivers/net/fec_mxc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h
index 848cd7c227..e9a661f0a1 100644
--- a/drivers/net/fec_mxc.h
+++ b/drivers/net/fec_mxc.h
@@ -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 */
@@ -260,6 +262,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);