summaryrefslogtreecommitdiff
path: root/include/configs/mx7dsabresd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/mx7dsabresd.h')
-rw-r--r--include/configs/mx7dsabresd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h
index 55415e4..9f06878 100644
--- a/include/configs/mx7dsabresd.h
+++ b/include/configs/mx7dsabresd.h
@@ -32,12 +32,20 @@
#if (CONFIG_FEC_ENET_DEV == 0)
#define IMX_FEC_BASE ENET_IPS_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x0
+#ifdef CONFIG_DM_ETH
+#define CONFIG_ETHPRIME "eth0"
+#else
#define CONFIG_ETHPRIME "FEC0"
+#endif
#elif (CONFIG_FEC_ENET_DEV == 1)
#define IMX_FEC_BASE ENET2_IPS_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x1
+#ifdef CONFIG_DM_ETH
+#define CONFIG_ETHPRIME "eth1"
+#else
#define CONFIG_ETHPRIME "FEC1"
#endif
+#endif
#define CONFIG_FEC_MXC_MDIO_BASE ENET_IPS_BASE_ADDR
#endif