From 3d3d8f5f1910ccc5659095a50c2fd4dd139ecdda Mon Sep 17 00:00:00 2001 From: Ye Li Date: Fri, 4 Mar 2016 16:45:17 +0800 Subject: MLK-12452-4 mx6sxsabreauto: Add secondary enet support Add configurations and board codes for second enet. Signed-off-by: Ye Li (cherry picked from commit 4dfd06dc649615f8dd3e1ac8018a0a7109fc4147) --- include/configs/mx6sxsabreauto.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/configs') 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" -- cgit v1.1