diff options
author | Ye Li <ye.li@nxp.com> | 2017-05-08 03:05:09 -0500 |
---|---|---|
committer | Ye Li <ye.li@nxp.com> | 2017-05-08 03:05:09 -0500 |
commit | ab3e75aca829d5bfb998ce3434b419139b7ca7c8 (patch) | |
tree | bdb3bd23e177785c989e86d495be9d11fd6b8c00 /include/configs/mx6ullevk.h | |
parent | eacd50f370203218a8e96c28c8a7adc0b638fc6d (diff) | |
download | u-boot-imx-ab3e75aca829d5bfb998ce3434b419139b7ca7c8.zip u-boot-imx-ab3e75aca829d5bfb998ce3434b419139b7ca7c8.tar.gz u-boot-imx-ab3e75aca829d5bfb998ce3434b419139b7ca7c8.tar.bz2 |
MLK-14768 fec: Change CONFIG_ETHPRIME name to align with DM ETH
The DM Ethernet driver requests the "ethprime" to align with DTB name
or start with "eth" with seq number as index.
So previous name "FEC" can't work as prime. Must change it to the "eth0" for
first ethernet device, or "eth1" for second one.
Signed-off-by: Ye Li <ye.li@nxp.com>
Diffstat (limited to 'include/configs/mx6ullevk.h')
-rw-r--r-- | include/configs/mx6ullevk.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/configs/mx6ullevk.h b/include/configs/mx6ullevk.h index 92fbac3..d9f03dd 100644 --- a/include/configs/mx6ullevk.h +++ b/include/configs/mx6ullevk.h @@ -298,13 +298,21 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x2 #define CONFIG_FEC_XCV_TYPE RMII +#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_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1 #define CONFIG_FEC_XCV_TYPE RMII +#ifdef CONFIG_DM_ETH +#define CONFIG_ETHPRIME "eth1" +#else #define CONFIG_ETHPRIME "FEC1" #endif +#endif #define CONFIG_PHYLIB #define CONFIG_PHY_MICREL |