summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-04 16:43:35 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:32 +0800
commit62ae2d1daeaeb332ff52ac84e30358f7c3195a68 (patch)
treeee0cb833e978207bdd5bf24d5fc57228156d785b /include
parenta46e14a18e71d7080457a4be4320cccb311f7879 (diff)
downloadu-boot-imx-62ae2d1daeaeb332ff52ac84e30358f7c3195a68.zip
u-boot-imx-62ae2d1daeaeb332ff52ac84e30358f7c3195a68.tar.gz
u-boot-imx-62ae2d1daeaeb332ff52ac84e30358f7c3195a68.tar.bz2
MLK-12452-3 mx6sxsabresd: Add secondary enet support
Add configurations and board codes for second enet. Signed-off-by: Ye Li <ye.li@nxp.com> (cherry picked from commit b646262f1f201e11e08968ddf88aeb8ab41fcf21)
Diffstat (limited to 'include')
-rw-r--r--include/configs/mx6sxsabresd.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h
index 45adfd4..639d39f 100644
--- a/include/configs/mx6sxsabresd.h
+++ b/include/configs/mx6sxsabresd.h
@@ -160,8 +160,15 @@
#define CONFIG_FEC_MXC
#define CONFIG_MII
+#define CONFIG_FEC_ENET_DEV 0
+
+#if (CONFIG_FEC_ENET_DEV == 0)
#define IMX_FEC_BASE ENET_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x1
+#elif (CONFIG_FEC_ENET_DEV == 1)
+#define IMX_FEC_BASE ENET2_BASE_ADDR
+#define CONFIG_FEC_MXC_PHYADDR 0x2
+#endif
#define CONFIG_FEC_XCV_TYPE RGMII
#define CONFIG_ETHPRIME "FEC"