imx6: geam6ul: Add FEC support
authorJagan Teki <jagan@amarulasolutions.com>
Tue, 13 Dec 2016 16:57:04 +0000 (17:57 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 16 Dec 2016 17:39:05 +0000 (18:39 +0100)
Add FEC support for Engicam GEAM6UL module.

Cc: Stefano Babic <sbabic@denx.de>
Cc: Matteo Lisi <matteo.lisi@engicam.com>
Cc: Michael Trimarchi <michael@amarulasolutions.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
arch/arm/cpu/armv7/mx6/Kconfig
configs/imx6ul_geam_mmc_defconfig
configs/imx6ul_geam_nand_defconfig
include/configs/imx6ul_geam.h

index d9e63ffb571d5ca2213194b4a5e846bee7a26af0..058b62df45cd93ad02d2f5387e0974d26c0c55d3 100644 (file)
@@ -197,6 +197,7 @@ config TARGET_MX6UL_GEAM
        select MX6UL
        select OF_CONTROL
        select DM
+       select DM_ETH
        select DM_GPIO
        select DM_I2C
        select DM_MMC
index e1e1dd24cfac54749f0f4404fa30df1f90439271..d5be076caa719fb18f2eef237b2c2df271ed7732 100644 (file)
@@ -18,6 +18,8 @@ CONFIG_SYS_MAXARGS=32
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_EXT2=y
@@ -27,6 +29,7 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_CMD_I2C=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FEC_MXC=y
 CONFIG_MXC_UART=y
 CONFIG_IMX_THERMAL=y
 CONFIG_PINCTRL=y
index b7a44c763ee4f42405a73820f8a92267ecd6ac37..cc45602c25c89fba8a6fc926597d532608f8d184 100644 (file)
@@ -18,9 +18,12 @@ CONFIG_SYS_MAXARGS=32
 CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
 CONFIG_CMD_NAND=y
 CONFIG_CMD_CACHE=y
 CONFIG_OF_LIBFDT=y
+CONFIG_FEC_MXC=y
 CONFIG_MXC_UART=y
 CONFIG_NAND_MXS=y
 CONFIG_IMX_THERMAL=y
index 7cfdfefe5ecd20e1052b73515680f7f994ff7c63..48b11209101f34ac2370614f58b2ff9561504fbe 100644 (file)
 # define CONFIG_APBH_DMA_BURST8
 #endif
 
+/* Ethernet */
+#ifdef CONFIG_FEC_MXC
+# define CONFIG_FEC_MXC_PHYADDR                0
+# define CONFIG_FEC_XCV_TYPE           RMII
+
+# define CONFIG_MII
+# define CONFIG_PHYLIB
+# define CONFIG_PHY_SMSC
+#endif
+
 /* SPL */
 #ifdef CONFIG_SPL
 # ifdef CONFIG_NAND_MXS