Skip to contentSkip to conversation

mx6sabre_common: Remove FEC related settings

PATCH New Alifer Moraes 1 participant 1 message Jan 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 mx6sabre_common: Remove FEC related settings

From: Fabio Estevam <[email protected]>

In preparation for converting to DM_ETH and moving the FEC symbols to Kconfig we need to move the FEC definitions to mx6sabreauto.h and mx6sabresd.h to avoid build breakage during the conversion.

---
 include/configs/mx6sabre_common.h | 8 --------
 include/configs/mx6sabreauto.h    | 8 ++++++++
 include/configs/mx6sabresd.h      | 9 +++++++++
 3 files changed, 17 insertions(+), 8 deletions(-)
include/configs/mx6sabre_common.h +0 -8
index 9309e0320f..ee3b754910 100644
@@ -20,14 +20,6 @@
 /* MMC Configs */
 #define CONFIG_SYS_FSL_ESDHC_ADDR      0
 
-#define CONFIG_FEC_MXC
-#define IMX_FEC_BASE			ENET_BASE_ADDR
-#define CONFIG_FEC_XCV_TYPE		RGMII
-#define CONFIG_ETHPRIME			"FEC"
-#define CONFIG_FEC_MXC_PHYADDR		1
-
-#define CONFIG_PHY_ATHEROS
-
 #ifdef CONFIG_SUPPORT_EMMC_BOOT
 #define EMMC_ENV \
 	"emmcdev=2\0" \
include/configs/mx6sabreauto.h +8 -0
index e444930dc8..c07b03984a 100644
@@ -75,4 +75,12 @@
 #define CONFIG_POWER_PFUZE100
 #define CONFIG_POWER_PFUZE100_I2C_ADDR	0x08
 
+#define CONFIG_FEC_MXC
+#define IMX_FEC_BASE			ENET_BASE_ADDR
+#define CONFIG_FEC_XCV_TYPE		RGMII
+#define CONFIG_ETHPRIME			"FEC"
+#define CONFIG_FEC_MXC_PHYADDR		1
+
+#define CONFIG_PHY_ATHEROS
+
 #endif                         /* __MX6SABREAUTO_CONFIG_H */
include/configs/mx6sabresd.h +9 -0
index ec1537541a..d810202117 100644
@@ -62,4 +62,13 @@
 #define CONFIG_USB_MAX_CONTROLLER_COUNT	1 /* Enabled USB controller number */
 #endif
 
+#define CONFIG_FEC_MXC
+#define IMX_FEC_BASE			ENET_BASE_ADDR
+#define CONFIG_FEC_XCV_TYPE		RGMII
+#define CONFIG_ETHPRIME			"FEC"
+#define CONFIG_FEC_MXC_PHYADDR		1
+
+#define CONFIG_PHY_ATHEROS
+
+
 #endif                         /* __MX6SABRESD_CONFIG_H */
Signature · 1 line
2.17.1