imx: initialize fec only when enabled

board early initialize fec ethernet controller pinmux
only when FEC is enabled

Signed-off-by: Parthiban Nallathambi <pn@denx.de>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Parthiban Nallathambi 2019-08-23 18:35:09 +02:00 committed by Stefano Babic
parent 84d5e72ffb
commit 921bb8641d

View File

@ -178,7 +178,9 @@ int board_phy_config(struct phy_device *phydev)
int board_early_init_f(void)
{
setup_iomux_uart();
#ifdef CONFIG_FEC_MXC
setup_iomux_fec();
#endif
return 0;
}