aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParthiban Nallathambi2019-08-23 18:35:09 +0200
committerStefano Babic2019-10-08 16:36:37 +0200
commit921bb8641d15f8a2570d43321e5c74ff65aa28f3 (patch)
tree81df1eeb8ad7dcec19287dd7c25583b00436f88c
parent84d5e72ffbbb75826b1592a3474ce9b7b44d14cd (diff)
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>
-rw-r--r--board/phytec/pcl063/pcl063.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/phytec/pcl063/pcl063.c b/board/phytec/pcl063/pcl063.c
index f8cbd1c11e8..96dd9e38f37 100644
--- a/board/phytec/pcl063/pcl063.c
+++ b/board/phytec/pcl063/pcl063.c
@@ -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;
}