From 56d84b94ec4ba6fee6cff61301272678d0f86218 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Mon, 7 Sep 2020 17:49:32 +0300 Subject: apalis-imx8x: provide proper phy address Provide proper value for FEC_MXC_PHYADDR, which fixes broken FEC1. Now ethernet is functional: Net: eth0: ethernet@5b040000 [PRIME] .... Apalis iMX8X # dhcp BOOTP broadcast 1 BOOTP broadcast 2 DHCP client bound to address 192.168.88.254 (578 ms) Using ethernet@5b040000 device TFTP from server 192.168.88.2; our IP address is 192.168.88.254 Filename 'zImage'. Load address: 0x80280000 Loading: ################################################## 9 MiB 6.5 MiB/s done Bytes transferred = 9400832 (8f7200 hex) Relates-to: ELB-2948 Signed-off-by: Igor Opaniuk --- include/configs/apalis-imx8x.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/configs/apalis-imx8x.h b/include/configs/apalis-imx8x.h index c9f77e70d0..58653afb46 100644 --- a/include/configs/apalis-imx8x.h +++ b/include/configs/apalis-imx8x.h @@ -170,15 +170,9 @@ /* Networking */ #define CONFIG_FEC_ENET_DEV 0 -#if (CONFIG_FEC_ENET_DEV == 0) #define IMX_FEC_BASE 0x5B040000 -#define CONFIG_FEC_MXC_PHYADDR 0x0 +#define CONFIG_FEC_MXC_PHYADDR 0x4 #define CONFIG_ETHPRIME "eth0" -#elif (CONFIG_FEC_ENET_DEV == 1) -#define IMX_FEC_BASE 0x5B050000 -#define CONFIG_FEC_MXC_PHYADDR 0x1 -#define CONFIG_ETHPRIME "eth1" -#endif #define CONFIG_FEC_XCV_TYPE RGMII #define FEC_QUIRK_ENET_MAC -- cgit v1.2.3