]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx8mp_evk: Fix incorrect cascade for FEC and EQOS setup
authorYe Li <ye.li@nxp.com>
Mon, 16 Aug 2021 10:44:29 +0000 (18:44 +0800)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Oct 2021 11:59:26 +0000 (13:59 +0200)
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 89cc17cbeac59a7181f293e210c4ba58185bc54f..bc4753c6cc95d8d391aefc2966c16dbdacc72abc 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;