]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: imx8: Add missing FEC ENET quirk for i.MX8/i.MX8X
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>
Tue, 9 Feb 2021 08:38:12 +0000 (10:38 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 1 Mar 2021 09:21:36 +0000 (10:21 +0100)
Both NXP SoCs i.MX8 and i.MX8X have ENET gigabit MAC.
Define FEC_QUIRK_ENET_MAC for the imx8 platform and remove this
definition from configs of boards, based on MX8/MX8X.

Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
Acked-by: Marek Vasut <marex@denx.de>
Reviewed-By: Ramon Fried <rfried.dev@gmail.com>
Acked-by: Oliver Graute <oliver.graute@kococonnector.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
arch/arm/include/asm/arch-imx8/imx-regs.h
include/configs/apalis-imx8.h
include/configs/apalis-imx8x.h
include/configs/capricorn-common.h
include/configs/colibri-imx8x.h
include/configs/imx8qm_mek.h
include/configs/imx8qm_rom7720.h
include/configs/imx8qxp_mek.h

index 6333ff4686fe68fee2be1b2bc2ad0a0f77f54191..ed6e05e5569de08eac42002d21fa88e00a9b8315 100644 (file)
@@ -26,6 +26,8 @@
 #define LPI2C4_BASE_ADDR       0x5A830000
 #define LPI2C5_BASE_ADDR       0x5A840000
 
+#define FEC_QUIRK_ENET_MAC
+
 #ifdef CONFIG_IMX8QXP
 #define LVDS0_PHYCTRL_BASE     0x56221000
 #define LVDS1_PHYCTRL_BASE     0x56241000
index b474b2f52264b39a26d81487f9b0e114909a0c32..0260eb4019a88af704fa66dcaf04cdc374cd5af8 100644 (file)
@@ -21,7 +21,6 @@
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 
 /* Networking */
-#define FEC_QUIRK_ENET_MAC
 #define FEC_ENET_ENABLE_TXC_DELAY
 
 #define CONFIG_TFTP_TSIZE
index db31c210f501bd654092c356d5d81dbbca46a184..a84b8e684b9f5bdb0820f4ffa218f43f7a2f0f60 100644 (file)
 #define CONFIG_FEC_MXC_PHYADDR          0x4
 #define CONFIG_ETHPRIME                 "eth0"
 #define CONFIG_FEC_XCV_TYPE            RGMII
-#define FEC_QUIRK_ENET_MAC
 #define PHY_ANEG_TIMEOUT 20000
 
 #endif /* __APALIS_IMX8X_H */
index 7c168f17d5b07f1a0db93b223ec51479ce281cad..b310e6c9e565e2413c14dc1d50088bfd3e9e6970 100644 (file)
@@ -43,7 +43,6 @@
 
 /* ENET Config */
 #define CONFIG_FEC_XCV_TYPE            RMII
-#define FEC_QUIRK_ENET_MAC
 
 /* ENET1 connects to base board and MUX with ESAI */
 #define CONFIG_FEC_ENET_DEV            1
index fc2c1915942632d6e335af6c5cf3a55f62215a90..59593f6c00f3bf57359017c1084e3d9f48bbd435 100644 (file)
@@ -22,8 +22,6 @@
 #define CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG
 
 /* Networking */
-#define FEC_QUIRK_ENET_MAC
-
 #define CONFIG_TFTP_TSIZE
 
 #define CONFIG_IPADDR                  192.168.10.2
index ff281d3800da28273cf8632b9e92784491e32a76..99e73a9446b6e3fbff318d8ad2c97a190f12cd95 100644 (file)
 
 /* Networking */
 #define CONFIG_FEC_XCV_TYPE            RGMII
-#define FEC_QUIRK_ENET_MAC
 
 #endif /* __IMX8QM_MEK_H */
index e5989ebafbc6452368cdf6f290f2efd96b807ba3..fcbf8eeb34aac1c31d2775018de0a316949a7cd6 100644 (file)
 
 /* Networking */
 #define CONFIG_FEC_XCV_TYPE            RGMII
-#define FEC_QUIRK_ENET_MAC
 
 #include <linux/stringify.h>
 #endif /* __IMX8QM_ROM7720_H */
index 51a8eb67605d48001a9b759a92528dc7d8397b58..a7d623a9b9e358c97695aca89ec5344bcc566fdd 100644 (file)
 
 /* Networking */
 #define CONFIG_FEC_XCV_TYPE            RGMII
-#define FEC_QUIRK_ENET_MAC
 
 /* Misc configuration */
 #define CONFIG_SYS_CBSIZE      2048