summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYe Li <ye.li@nxp.com>2016-03-04 16:45:17 +0800
committerYe Li <ye.li@nxp.com>2017-04-05 14:04:33 +0800
commit3d3d8f5f1910ccc5659095a50c2fd4dd139ecdda (patch)
tree433345ec6e5afd5990e67df6730aacc05d0f08df /include
parent62ae2d1daeaeb332ff52ac84e30358f7c3195a68 (diff)
downloadu-boot-imx-3d3d8f5f1910ccc5659095a50c2fd4dd139ecdda.zip
u-boot-imx-3d3d8f5f1910ccc5659095a50c2fd4dd139ecdda.tar.gz
u-boot-imx-3d3d8f5f1910ccc5659095a50c2fd4dd139ecdda.tar.bz2
MLK-12452-4 mx6sxsabreauto: 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 4dfd06dc649615f8dd3e1ac8018a0a7109fc4147)
Diffstat (limited to 'include')
-rw-r--r--include/configs/mx6sxsabreauto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/configs/mx6sxsabreauto.h b/include/configs/mx6sxsabreauto.h
index 752ad47..ece744b 100644
--- a/include/configs/mx6sxsabreauto.h
+++ b/include/configs/mx6sxsabreauto.h
@@ -143,8 +143,15 @@
#define CONFIG_FEC_MXC
#define CONFIG_MII
+#define CONFIG_FEC_ENET_DEV 1 /* Use onboard ethernet as default */
+
+#if (CONFIG_FEC_ENET_DEV == 0)
+#define IMX_FEC_BASE ENET_BASE_ADDR
+#define CONFIG_FEC_MXC_PHYADDR 0x0
+#elif (CONFIG_FEC_ENET_DEV == 1)
#define IMX_FEC_BASE ENET2_BASE_ADDR
#define CONFIG_FEC_MXC_PHYADDR 0x0
+#endif
#define CONFIG_FEC_XCV_TYPE RGMII
#define CONFIG_ETHPRIME "FEC"