imx8mp_evk: Fix incorrect cascade for FEC and EQOS setup

The setup functions should be independent for two ethernet controllers

Signed-off-by: Ye Li <ye.li@nxp.com>
This commit is contained in:
Ye Li 2021-08-16 18:44:29 +08:00 committed by Stefano Babic
parent a65b7fb2a5
commit e1260aef37

View 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;