LF-3483-9 imx8mp_evk: Fix incorrect cascade for FEC and EQOS setup
authorYe Li <ye.li@nxp.com>
Sat, 6 Feb 2021 18:20:14 +0000 (10:20 -0800)
committerYe Li <ye.li@nxp.com>
Thu, 29 Apr 2021 07:56:37 +0000 (00:56 -0700)
The setup functions should be independent for two ethernet controllers

Signed-off-by: Ye Li <ye.li@nxp.com>
board/freescale/imx8mp_evk/imx8mp_evk.c

index 89cc17c..bc4753c 100644 (file)
@@ -101,9 +101,10 @@ int board_init(void)
 
        if (CONFIG_IS_ENABLED(FEC_MXC)) {
                setup_fec();
+       }
 
-               if (CONFIG_IS_ENABLED(DWC_ETH_QOS))
-                       ret = setup_eqos();
+       if (CONFIG_IS_ENABLED(DWC_ETH_QOS)) {
+               ret = setup_eqos();
        }
 
        return ret;