imx: initialize fec only when enabled
authorParthiban Nallathambi <pn@denx.de>
Fri, 23 Aug 2019 16:35:09 +0000 (18:35 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:37 +0000 (16:36 +0200)
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>
board/phytec/pcl063/pcl063.c

index f8cbd1c11e89ae9decdb64bc437d4dda06b4f768..96dd9e38f3708afd7555cbd48a2f386b4618d480 100644 (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;
 }