summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2020-12-25 16:16:34 +0800
committerStefano Babic <sbabic@denx.de>2021-01-23 11:30:30 +0100
commit48b90f86c583183e2f4d80b2747ebff612c4173f (patch)
tree85dc6b26e8cc8efb87b4ec29dfa46f72321fcd32 /include
parent184aa6504143b452132e28cd3ebecc7b941cdfa1 (diff)
downloadu-boot-48b90f86c583183e2f4d80b2747ebff612c4173f.tar.gz
u-boot-48b90f86c583183e2f4d80b2747ebff612c4173f.tar.xz
u-boot-48b90f86c583183e2f4d80b2747ebff612c4173f.zip
imx: imx8mp_evk: enable eth support
Add board code to configure the network interface Add net defconfig Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include')
-rw-r--r--include/configs/imx8mp_evk.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/configs/imx8mp_evk.h b/include/configs/imx8mp_evk.h
index 92091dfd6b..2f58ba3f9f 100644
--- a/include/configs/imx8mp_evk.h
+++ b/include/configs/imx8mp_evk.h
@@ -44,6 +44,22 @@
#endif
+#if defined(CONFIG_CMD_NET)
+#define CONFIG_ETHPRIME "eth1" /* Set eqos to primary since we use its MDIO */
+
+#define CONFIG_FEC_XCV_TYPE RGMII
+#define CONFIG_FEC_MXC_PHYADDR 1
+#define FEC_QUIRK_ENET_MAC
+
+#define DWC_NET_PHYADDR 1
+#ifdef CONFIG_DWC_ETH_QOS
+#define CONFIG_SYS_NONCACHED_MEMORY (1 * SZ_1M) /* 1M */
+#endif
+
+#define PHY_ANEG_TIMEOUT 20000
+
+#endif
+
/* Initial environment variables */
#define CONFIG_EXTRA_ENV_SETTINGS \
"script=boot.scr\0" \