[U-Boot] [PATCH 00/10] net: fec: Code Improvement/cleanups

dm code in fec_mxc has some quite few issues with mdio handling and the dm vs non-dm code in fec_mxc looks very uncomfortable to read and add new support.
This series is trying to fixe all necessary issues regarding fec_mxc, along with necessary CONFIG options are moved into defconfig.
Require enough testing to get these changes to move further.
Jagan Teki (10): configs: Drop imx27lite-common.h configs: Move CONFIG_FEC_MXC net: fec: Use PHY_INTERFACE_MODE_ for xcv_type net: fec: Add default CONFIG_FEC_MXC_PHYADDR for few boards net: fec: Use PHY_ADDR instead of FEC_MXC_PHYADDR net: fec_mxc: Use udevice to retrive priv, in fec_phy_init dm: net: fec: Move enet init in fec_enet dm: net: fec: Refactor mdio_init code dm: net: fec: Add support for PHY reset net: fec: Setup common eth_ops code for dm and non-dm
board/compulab/cl-som-imx7/cl-som-imx7.c | 2 +- .../freescale/mx6sxsabreauto/mx6sxsabreauto.c | 3 +- .../mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +- board/freescale/mx7dsabresd/mx7dsabresd.c | 3 +- board/samtec/vining_2000/vining_2000.c | 3 +- board/sks-kinkel/sksimx6/sksimx6.c | 2 +- board/technexion/pico-imx7d/pico-imx7d.c | 3 +- board/toradex/colibri_imx7/colibri_imx7.c | 3 +- board/tqc/tqma6/tqma6_mba6.c | 2 +- board/udoo/neo/neo.c | 2 +- configs/apalis_imx6_defconfig | 2 + configs/apalis_imx6_nospl_com_defconfig | 2 + configs/apalis_imx6_nospl_it_defconfig | 3 + configs/apf27_defconfig | 3 + configs/apx4devkit_defconfig | 1 + configs/aristainetos2_defconfig | 1 + configs/aristainetos2b_defconfig | 1 + configs/aristainetos_defconfig | 1 + configs/bg0900_defconfig | 1 + configs/cgtqmx6eval_defconfig | 2 + configs/cl-som-imx7_defconfig | 2 + configs/cm_fx6_defconfig | 1 + configs/colibri_imx6_defconfig | 2 + configs/colibri_imx6_nospl_defconfig | 2 + configs/colibri_imx7_defconfig | 1 + configs/colibri_vf_defconfig | 1 + configs/dms-ba16-1g_defconfig | 2 + configs/dms-ba16_defconfig | 2 + configs/flea3_defconfig | 2 + configs/ge_bx50v3_defconfig | 3 + configs/gwventana_emmc_defconfig | 1 + configs/gwventana_gw5904_defconfig | 1 + configs/gwventana_nand_defconfig | 1 + configs/imx6dl_mamoj_defconfig | 1 + configs/imx6qdl_icore_rqs_defconfig | 1 + configs/liteboard_defconfig | 1 + configs/marsboard_defconfig | 2 + configs/mccmon6_nor_defconfig | 2 + configs/mccmon6_sd_defconfig | 2 + configs/mx25pdk_defconfig | 3 + configs/mx28evk_auart_console_defconfig | 1 + configs/mx28evk_defconfig | 1 + configs/mx28evk_nand_defconfig | 1 + configs/mx28evk_spi_defconfig | 1 + configs/mx35pdk_defconfig | 3 + configs/mx51evk_defconfig | 3 + configs/mx53cx9020_defconfig | 2 + configs/mx53evk_defconfig | 3 + configs/mx53loco_defconfig | 3 + configs/mx53ppd_defconfig | 3 + configs/mx53smd_defconfig | 3 + configs/mx6cuboxi_defconfig | 1 + configs/mx6dlarm2_defconfig | 1 + configs/mx6dlarm2_lpddr2_defconfig | 1 + configs/mx6qarm2_defconfig | 1 + configs/mx6qarm2_lpddr2_defconfig | 1 + configs/mx6qsabrelite_defconfig | 1 + configs/mx6sabreauto_defconfig | 2 + configs/mx6sabresd_defconfig | 2 + configs/mx6slevk_defconfig | 1 + configs/mx6slevk_spinor_defconfig | 1 + configs/mx6slevk_spl_defconfig | 2 + configs/mx6sxsabreauto_defconfig | 1 + configs/mx6sxsabresd_defconfig | 2 + configs/mx6sxsabresd_spl_defconfig | 2 + configs/mx6ul_14x14_evk_defconfig | 2 + configs/mx6ul_9x9_evk_defconfig | 2 + configs/mx7dsabresd_defconfig | 1 + configs/nitrogen6dl2g_defconfig | 2 + configs/nitrogen6dl_defconfig | 2 + configs/nitrogen6q2g_defconfig | 2 + configs/nitrogen6q_defconfig | 2 + configs/nitrogen6s1g_defconfig | 2 + configs/nitrogen6s_defconfig | 2 + configs/novena_defconfig | 2 + configs/opos6uldev_defconfig | 1 + configs/ot1200_defconfig | 2 + configs/ot1200_spl_defconfig | 2 + configs/pcm052_defconfig | 1 + configs/pcm058_defconfig | 2 + configs/pfla02_defconfig | 1 + configs/pico-imx6ul_defconfig | 2 + configs/pico-imx7d_defconfig | 2 + configs/platinum_picon_defconfig | 1 + configs/platinum_titanium_defconfig | 2 + configs/riotboard_defconfig | 2 + configs/sc_sps_1_defconfig | 1 + configs/secomx6quq7_defconfig | 2 + configs/sksimx6_defconfig | 1 + configs/tbs2910_defconfig | 2 + configs/titanium_defconfig | 2 + configs/tqma6dl_mba6_mmc_defconfig | 2 + configs/tqma6dl_mba6_spi_defconfig | 2 + configs/tqma6q_mba6_mmc_defconfig | 2 + configs/tqma6q_mba6_spi_defconfig | 2 + configs/tqma6s_mba6_mmc_defconfig | 2 + configs/tqma6s_mba6_spi_defconfig | 2 + configs/tqma6s_wru4_mmc_defconfig | 2 + configs/ts4800_defconfig | 1 + configs/udoo_defconfig | 2 + configs/udoo_neo_defconfig | 1 + configs/vf610twr_defconfig | 1 + configs/vf610twr_nand_defconfig | 1 + configs/vining_2000_defconfig | 1 + configs/wandboard_defconfig | 2 + configs/woodburn_defconfig | 2 + configs/woodburn_sd_defconfig | 2 + configs/xpress_defconfig | 1 + configs/xpress_spl_defconfig | 1 + configs/zc5202_defconfig | 2 + configs/zc5601_defconfig | 2 + configs/zmx25_defconfig | 2 + doc/README.fec_mxc | 2 +- drivers/net/Kconfig | 3 +- drivers/net/fec_mxc.c | 483 ++++++++++-------- drivers/net/fec_mxc.h | 19 +- drivers/net/phy/Kconfig | 1 + include/configs/advantech_dms-ba16.h | 4 +- include/configs/apalis_imx6.h | 4 +- include/configs/apf27.h | 6 - include/configs/apx4devkit.h | 2 - include/configs/aristainetos-common.h | 2 - include/configs/aristainetos.h | 2 +- include/configs/aristainetos2.h | 2 +- include/configs/aristainetos2b.h | 2 +- include/configs/bg0900.h | 1 - include/configs/cgtqmx6eval.h | 4 +- include/configs/cl-som-imx7.h | 5 +- include/configs/cm_fx6.h | 4 +- include/configs/colibri_imx6.h | 4 +- include/configs/colibri_imx7.h | 4 +- include/configs/colibri_vf.h | 4 +- include/configs/dh_imx6.h | 3 +- include/configs/display5.h | 3 +- include/configs/embestmx6boards.h | 4 +- include/configs/flea3.h | 2 - include/configs/ge_bx50v3.h | 4 +- include/configs/gw_ventana.h | 4 +- include/configs/imx27lite-common.h | 172 ------- include/configs/imx6-engicam.h | 11 - include/configs/imx6_logic.h | 2 - include/configs/imx6dl-mamoj.h | 3 - include/configs/kp_imx6q_tpc.h | 3 +- include/configs/liteboard.h | 4 +- include/configs/mccmon6.h | 4 +- include/configs/mx25pdk.h | 2 - include/configs/mx28evk.h | 1 - include/configs/mx35pdk.h | 2 - include/configs/mx51evk.h | 3 - include/configs/mx53cx9020.h | 1 - include/configs/mx53evk.h | 2 - include/configs/mx53loco.h | 2 - include/configs/mx53ppd.h | 2 - include/configs/mx53smd.h | 2 - include/configs/mx6cuboxi.h | 4 +- include/configs/mx6qarm2.h | 4 +- include/configs/mx6sabre_common.h | 4 +- include/configs/mx6slevk.h | 4 +- include/configs/mx6sxsabreauto.h | 6 +- include/configs/mx6sxsabresd.h | 5 +- include/configs/mx6ul_14x14_evk.h | 7 +- include/configs/mx7dsabresd.h | 4 +- include/configs/mxs.h | 2 +- include/configs/nitrogen6x.h | 4 +- include/configs/novena.h | 4 +- include/configs/opos6uldev.h | 3 +- include/configs/ot1200.h | 4 +- include/configs/pcm052.h | 4 +- include/configs/pcm058.h | 4 +- include/configs/pfla02.h | 3 +- include/configs/pico-imx6ul.h | 4 +- include/configs/pico-imx7d.h | 4 +- include/configs/platinum.h | 1 - include/configs/platinum_picon.h | 3 +- include/configs/platinum_titanium.h | 3 +- include/configs/sc_sps_1.h | 1 - include/configs/secomx6quq7.h | 4 +- include/configs/sksimx6.h | 3 +- include/configs/tbs2910.h | 5 +- include/configs/titanium.h | 4 +- include/configs/tqma6.h | 1 - include/configs/tqma6_mba6.h | 4 +- include/configs/tqma6_wru4.h | 3 +- include/configs/ts4800.h | 2 - include/configs/udoo.h | 4 +- include/configs/udoo_neo.h | 5 +- include/configs/vf610twr.h | 4 +- include/configs/vining_2000.h | 6 +- include/configs/wandboard.h | 4 +- include/configs/woodburn_common.h | 2 - include/configs/xpress.h | 4 +- include/configs/zc5202.h | 4 +- include/configs/zc5601.h | 4 +- include/configs/zmx25.h | 6 - include/phy.h | 4 + scripts/config_whitelist.txt | 1 - 196 files changed, 530 insertions(+), 618 deletions(-) delete mode 100644 include/configs/imx27lite-common.h

This file not used by any config file, hence droped.
Cc: Adam Ford aford173@gmail.com Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- include/configs/imx27lite-common.h | 172 ----------------------------- 1 file changed, 172 deletions(-) delete mode 100644 include/configs/imx27lite-common.h
diff --git a/include/configs/imx27lite-common.h b/include/configs/imx27lite-common.h deleted file mode 100644 index f5c5298812..0000000000 --- a/include/configs/imx27lite-common.h +++ /dev/null @@ -1,172 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* - * Copyright (C) 2010 Heiko Schocher hs@denx.de - * - * based on: - * Copyright (C) 2009 Ilya Yanok yanok@emcraft.com - */ - -#ifndef __IMX27LITE_COMMON_CONFIG_H -#define __IMX27LITE_COMMON_CONFIG_H - -/* - * SoC Configuration - */ -#define CONFIG_MX27 -#define CONFIG_MX27_CLK32 32768 /* OSC32K frequency */ - -#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */ -#define CONFIG_SETUP_MEMORY_TAGS 1 -#define CONFIG_INITRD_TAG 1 - -/* - * Lowlevel configuration - */ -#define SDRAM_ESDCFG_REGISTER_VAL(cas) \ - (ESDCFG_TRC(10) | \ - ESDCFG_TRCD(3) | \ - ESDCFG_TCAS(cas) | \ - ESDCFG_TRRD(1) | \ - ESDCFG_TRAS(5) | \ - ESDCFG_TWR | \ - ESDCFG_TMRD(2) | \ - ESDCFG_TRP(2) | \ - ESDCFG_TXP(3)) - -#define SDRAM_ESDCTL_REGISTER_VAL \ - (ESDCTL_PRCT(0) | \ - ESDCTL_BL | \ - ESDCTL_PWDT(0) | \ - ESDCTL_SREFR(3) | \ - ESDCTL_DSIZ_32 | \ - ESDCTL_COL10 | \ - ESDCTL_ROW13 | \ - ESDCTL_SDE) - -#define SDRAM_ALL_VAL 0xf00 - -#define SDRAM_MODE_REGISTER_VAL 0x33 /* BL: 8, CAS: 3 */ -#define SDRAM_EXT_MODE_REGISTER_VAL 0x1000000 - -#define MPCTL0_VAL 0x1ef15d5 - -#define SPCTL0_VAL 0x043a1c09 - -#define CSCR_VAL 0x33f08107 - -#define PCDR0_VAL 0x120470c3 -#define PCDR1_VAL 0x03030303 -#define PCCR0_VAL 0xffffffff -#define PCCR1_VAL 0xfffffffc - -#define AIPI1_PSR0_VAL 0x20040304 -#define AIPI1_PSR1_VAL 0xdffbfcfb -#define AIPI2_PSR0_VAL 0x07ffc200 -#define AIPI2_PSR1_VAL 0xffffffff - -/* - * Memory Info - */ -/* malloc() len */ -#define CONFIG_SYS_MALLOC_LEN (0x10000 + 512 * 1024) -/* memtest start address */ -#define CONFIG_SYS_MEMTEST_START 0xA0000000 -#define CONFIG_SYS_MEMTEST_END 0xA1000000 /* 16MB RAM test */ -#define CONFIG_NR_DRAM_BANKS 1 /* we have 1 bank of DRAM */ -#define PHYS_SDRAM_1 0xA0000000 /* DDR Start */ -#define PHYS_SDRAM_1_SIZE 0x08000000 /* DDR size 128MB */ - -/* - * Serial Driver info - */ -#define CONFIG_MXC_UART -#define CONFIG_MXC_UART_BASE UART1_BASE - -/* - * Flash & Environment - */ -#define CONFIG_FLASH_CFI_DRIVER -#define CONFIG_SYS_FLASH_CFI -/* Use buffered writes (~10x faster) */ -#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1 -/* Use hardware sector protection */ -#define CONFIG_SYS_FLASH_PROTECTION 1 -#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of flash banks */ -/* CS2 Base address */ -#define PHYS_FLASH_1 0xc0000000 -/* Flash Base for U-Boot */ -#define CONFIG_SYS_FLASH_BASE PHYS_FLASH_1 -#define CONFIG_SYS_MAX_FLASH_SECT (PHYS_FLASH_SIZE / \ - CONFIG_SYS_FLASH_SECT_SZ) -#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE -#define CONFIG_SYS_MONITOR_LEN 0x40000 /* Reserve 256KiB */ -#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE -/* Address and size of Redundant Environment Sector */ -#define CONFIG_ENV_OFFSET_REDUND (CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE) -#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE - -/* - * Ethernet - */ -#define CONFIG_FEC_MXC -#define CONFIG_FEC_MXC_PHYADDR 0x1f - -/* - * MTD - */ -#define CONFIG_FLASH_CFI_MTD -#define CONFIG_MTD_DEVICE - -/* - * NAND - */ -#define CONFIG_MXC_NAND_REGS_BASE 0xd8000000 -#define CONFIG_SYS_MAX_NAND_DEVICE 1 -#define CONFIG_SYS_NAND_BASE 0xd8000000 -#define CONFIG_JFFS2_NAND -#define CONFIG_MXC_NAND_HWECC - -/* - * U-Boot general configuration - */ -#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ -/* Boot Argument Buffer Size */ -#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE - -#define CONFIG_LOADADDR 0xa0800000 /* loadaddr env var */ -#define CONFIG_SYS_LOAD_ADDR CONFIG_LOADADDR - -#define CONFIG_EXTRA_ENV_SETTINGS \ - "netdev=eth0\0" \ - "nfsargs=setenv bootargs root=/dev/nfs rw " \ - "nfsroot=${serverip}:${rootpath}\0" \ - "ramargs=setenv bootargs root=/dev/ram rw\0" \ - "addip=setenv bootargs ${bootargs} " \ - "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ - ":${hostname}:${netdev}:off panic=1\0" \ - "addtty=setenv bootargs ${bootargs}" \ - " console=ttymxc0,${baudrate}\0" \ - "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0" \ - "addmisc=setenv bootargs ${bootargs}\0" \ - "u-boot=" CONFIG_HOSTNAME "/u-boot.bin\0" \ - "kernel_addr_r=a0800000\0" \ - "bootfile=" CONFIG_HOSTNAME "/uImage\0" \ - "rootpath=/opt/eldk-4.2-arm/arm\0" \ - "net_nfs=tftp ${kernel_addr_r} ${bootfile};" \ - "run nfsargs addip addtty addmtd addmisc;" \ - "bootm\0" \ - "bootcmd=run net_nfs\0" \ - "load=tftp ${loadaddr} ${u-boot}\0" \ - "update=protect off " __stringify(CONFIG_SYS_MONITOR_BASE) \ - " +${filesize};era " __stringify(CONFIG_SYS_MONITOR_BASE)\ - " +${filesize};cp.b ${fileaddr} " \ - __stringify(CONFIG_SYS_MONITOR_BASE) " ${filesize}\0" \ - "upd=run load update\0" \ - "mtdids=" CONFIG_MTDIDS_DEFAULT "\0" \ - "mtdparts=" CONFIG_MTDPARTS_DEFAULT "\0" \ - -/* additions for new relocation code, must be added to all boards */ -#define CONFIG_SYS_SDRAM_BASE PHYS_SDRAM_1 -#define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_SDRAM_BASE + 0x1000 - /* Fix this */ \ - GENERATED_GBL_DATA_SIZE) -#endif /* __IMX27LITE_COMMON_CONFIG_H */

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
This file not used by any config file, hence droped.
Cc: Adam Ford aford173@gmail.com Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

- Move CONFIG_FEC_MXC to defconfigs - Add require depends on in kconfig
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- Note: - On top of "[PATCH] Convert CONFIG_MII et al to Kconfig"
configs/apalis_imx6_defconfig | 1 + configs/apalis_imx6_nospl_com_defconfig | 1 + configs/apalis_imx6_nospl_it_defconfig | 1 + configs/apf27_defconfig | 1 + configs/apx4devkit_defconfig | 1 + configs/aristainetos2_defconfig | 1 + configs/aristainetos2b_defconfig | 1 + configs/aristainetos_defconfig | 1 + configs/bg0900_defconfig | 1 + configs/cgtqmx6eval_defconfig | 1 + configs/cl-som-imx7_defconfig | 1 + configs/cm_fx6_defconfig | 1 + configs/colibri_imx6_defconfig | 1 + configs/colibri_imx6_nospl_defconfig | 1 + configs/colibri_imx7_defconfig | 1 + configs/colibri_vf_defconfig | 1 + configs/dms-ba16-1g_defconfig | 1 + configs/dms-ba16_defconfig | 1 + configs/flea3_defconfig | 1 + configs/ge_bx50v3_defconfig | 1 + configs/gwventana_emmc_defconfig | 1 + configs/gwventana_gw5904_defconfig | 1 + configs/gwventana_nand_defconfig | 1 + configs/liteboard_defconfig | 1 + configs/marsboard_defconfig | 1 + configs/mccmon6_nor_defconfig | 1 + configs/mccmon6_sd_defconfig | 1 + configs/mx25pdk_defconfig | 1 + configs/mx28evk_auart_console_defconfig | 1 + configs/mx28evk_defconfig | 1 + configs/mx28evk_nand_defconfig | 1 + configs/mx28evk_spi_defconfig | 1 + configs/mx35pdk_defconfig | 1 + configs/mx51evk_defconfig | 1 + configs/mx53evk_defconfig | 1 + configs/mx53loco_defconfig | 1 + configs/mx53ppd_defconfig | 1 + configs/mx53smd_defconfig | 1 + configs/mx6cuboxi_defconfig | 1 + configs/mx6dlarm2_defconfig | 1 + configs/mx6dlarm2_lpddr2_defconfig | 1 + configs/mx6qarm2_defconfig | 1 + configs/mx6qarm2_lpddr2_defconfig | 1 + configs/mx6qsabrelite_defconfig | 1 + configs/mx6sabreauto_defconfig | 1 + configs/mx6sabresd_defconfig | 1 + configs/mx6slevk_defconfig | 1 + configs/mx6slevk_spinor_defconfig | 1 + configs/mx6slevk_spl_defconfig | 2 ++ configs/mx6sxsabreauto_defconfig | 1 + configs/mx6sxsabresd_defconfig | 1 + configs/mx6sxsabresd_spl_defconfig | 1 + configs/mx6ul_14x14_evk_defconfig | 1 + configs/mx6ul_9x9_evk_defconfig | 1 + configs/mx7dsabresd_defconfig | 1 + configs/nitrogen6dl2g_defconfig | 1 + configs/nitrogen6dl_defconfig | 1 + configs/nitrogen6q2g_defconfig | 1 + configs/nitrogen6q_defconfig | 1 + configs/nitrogen6s1g_defconfig | 1 + configs/nitrogen6s_defconfig | 1 + configs/novena_defconfig | 1 + configs/ot1200_defconfig | 1 + configs/ot1200_spl_defconfig | 1 + configs/pcm052_defconfig | 1 + configs/pcm058_defconfig | 1 + configs/pico-imx6ul_defconfig | 1 + configs/pico-imx7d_defconfig | 1 + configs/platinum_picon_defconfig | 1 + configs/platinum_titanium_defconfig | 1 + configs/riotboard_defconfig | 1 + configs/sc_sps_1_defconfig | 1 + configs/secomx6quq7_defconfig | 1 + configs/tbs2910_defconfig | 1 + configs/titanium_defconfig | 1 + configs/tqma6dl_mba6_mmc_defconfig | 1 + configs/tqma6dl_mba6_spi_defconfig | 1 + configs/tqma6q_mba6_mmc_defconfig | 1 + configs/tqma6q_mba6_spi_defconfig | 1 + configs/tqma6s_mba6_mmc_defconfig | 1 + configs/tqma6s_mba6_spi_defconfig | 1 + configs/tqma6s_wru4_mmc_defconfig | 1 + configs/ts4800_defconfig | 1 + configs/udoo_defconfig | 1 + configs/udoo_neo_defconfig | 1 + configs/vf610twr_defconfig | 1 + configs/vf610twr_nand_defconfig | 1 + configs/vining_2000_defconfig | 1 + configs/wandboard_defconfig | 1 + configs/woodburn_defconfig | 1 + configs/woodburn_sd_defconfig | 1 + configs/xpress_defconfig | 1 + configs/xpress_spl_defconfig | 1 + configs/zc5202_defconfig | 1 + configs/zc5601_defconfig | 1 + configs/zmx25_defconfig | 1 + drivers/net/Kconfig | 3 ++- include/configs/advantech_dms-ba16.h | 1 - include/configs/apalis_imx6.h | 1 - include/configs/apf27.h | 1 - include/configs/apx4devkit.h | 1 - include/configs/aristainetos-common.h | 1 - include/configs/bg0900.h | 1 - include/configs/cgtqmx6eval.h | 1 - include/configs/cl-som-imx7.h | 1 - include/configs/cm_fx6.h | 1 - include/configs/colibri_imx6.h | 1 - include/configs/colibri_imx7.h | 1 - include/configs/colibri_vf.h | 1 - include/configs/embestmx6boards.h | 1 - include/configs/flea3.h | 1 - include/configs/ge_bx50v3.h | 1 - include/configs/gw_ventana.h | 1 - include/configs/liteboard.h | 1 - include/configs/mccmon6.h | 1 - include/configs/mx25pdk.h | 1 - include/configs/mx28evk.h | 1 - include/configs/mx35pdk.h | 1 - include/configs/mx51evk.h | 2 -- include/configs/mx53evk.h | 1 - include/configs/mx53loco.h | 1 - include/configs/mx53ppd.h | 1 - include/configs/mx53smd.h | 1 - include/configs/mx6cuboxi.h | 1 - include/configs/mx6qarm2.h | 1 - include/configs/mx6sabre_common.h | 1 - include/configs/mx6slevk.h | 1 - include/configs/mx6sxsabreauto.h | 3 --- include/configs/mx6sxsabresd.h | 2 -- include/configs/mx6ul_14x14_evk.h | 1 - include/configs/mx7dsabresd.h | 1 - include/configs/nitrogen6x.h | 1 - include/configs/novena.h | 1 - include/configs/ot1200.h | 1 - include/configs/pcm052.h | 1 - include/configs/pcm058.h | 1 - include/configs/pico-imx6ul.h | 1 - include/configs/pico-imx7d.h | 1 - include/configs/platinum.h | 1 - include/configs/sc_sps_1.h | 1 - include/configs/secomx6quq7.h | 1 - include/configs/tbs2910.h | 2 -- include/configs/titanium.h | 1 - include/configs/tqma6.h | 1 - include/configs/ts4800.h | 1 - include/configs/udoo.h | 1 - include/configs/udoo_neo.h | 2 -- include/configs/vf610twr.h | 1 - include/configs/vining_2000.h | 2 -- include/configs/wandboard.h | 1 - include/configs/woodburn_common.h | 1 - include/configs/xpress.h | 1 - include/configs/zc5202.h | 1 - include/configs/zc5601.h | 1 - include/configs/zmx25.h | 1 - 155 files changed, 99 insertions(+), 66 deletions(-)
diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index d78fb685a2..da7053104c 100644 --- a/configs/apalis_imx6_defconfig +++ b/configs/apalis_imx6_defconfig @@ -55,6 +55,7 @@ CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/apalis_imx6_nospl_com_defconfig b/configs/apalis_imx6_nospl_com_defconfig index 3a1423c0bf..df2338921d 100644 --- a/configs/apalis_imx6_nospl_com_defconfig +++ b/configs/apalis_imx6_nospl_com_defconfig @@ -44,6 +44,7 @@ CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/apalis_imx6_nospl_it_defconfig b/configs/apalis_imx6_nospl_it_defconfig index 2a77f3af27..8446dce4ad 100644 --- a/configs/apalis_imx6_nospl_it_defconfig +++ b/configs/apalis_imx6_nospl_it_defconfig @@ -44,6 +44,7 @@ CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/apf27_defconfig b/configs/apf27_defconfig index 092fbf85f7..6689214172 100644 --- a/configs/apf27_defconfig +++ b/configs/apf27_defconfig @@ -41,5 +41,6 @@ CONFIG_MMC_MXC=y CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_OF_LIBFDT=y diff --git a/configs/apx4devkit_defconfig b/configs/apx4devkit_defconfig index b2f05fe801..6997a242c8 100644 --- a/configs/apx4devkit_defconfig +++ b/configs/apx4devkit_defconfig @@ -31,6 +31,7 @@ CONFIG_ENV_IS_IN_NAND=y CONFIG_MMC_MXS=y CONFIG_NAND=y CONFIG_NAND_MXS=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_CONS_INDEX=0 CONFIG_USB=y diff --git a/configs/aristainetos2_defconfig b/configs/aristainetos2_defconfig index a4f25e4782..f4accde5ad 100644 --- a/configs/aristainetos2_defconfig +++ b/configs/aristainetos2_defconfig @@ -42,6 +42,7 @@ CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/aristainetos2b_defconfig b/configs/aristainetos2b_defconfig index d9cf323183..f7aa26681d 100644 --- a/configs/aristainetos2b_defconfig +++ b/configs/aristainetos2b_defconfig @@ -42,6 +42,7 @@ CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/aristainetos_defconfig b/configs/aristainetos_defconfig index 76d798c18f..245e59a90d 100644 --- a/configs/aristainetos_defconfig +++ b/configs/aristainetos_defconfig @@ -41,6 +41,7 @@ CONFIG_MTD_UBI_FASTMAP=y CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/bg0900_defconfig b/configs/bg0900_defconfig index 712ea58a08..aa1e19d72a 100644 --- a/configs/bg0900_defconfig +++ b/configs/bg0900_defconfig @@ -33,6 +33,7 @@ CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_CONS_INDEX=0 CONFIG_SPI=y diff --git a/configs/cgtqmx6eval_defconfig b/configs/cgtqmx6eval_defconfig index 8d258b7303..99b6efb2df 100644 --- a/configs/cgtqmx6eval_defconfig +++ b/configs/cgtqmx6eval_defconfig @@ -53,6 +53,7 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x12000000 CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/cl-som-imx7_defconfig b/configs/cl-som-imx7_defconfig index 049e97398f..8c67f95bfd 100644 --- a/configs/cl-som-imx7_defconfig +++ b/configs/cl-som-imx7_defconfig @@ -47,6 +47,7 @@ CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/cm_fx6_defconfig b/configs/cm_fx6_defconfig index 46f741e20f..528dac47e6 100644 --- a/configs/cm_fx6_defconfig +++ b/configs/cm_fx6_defconfig @@ -63,6 +63,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_SST=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_PMIC=y CONFIG_DM_REGULATOR=y diff --git a/configs/colibri_imx6_defconfig b/configs/colibri_imx6_defconfig index d344bafcbe..1e642638ce 100644 --- a/configs/colibri_imx6_defconfig +++ b/configs/colibri_imx6_defconfig @@ -53,6 +53,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/colibri_imx6_nospl_defconfig b/configs/colibri_imx6_nospl_defconfig index 3bf13cc794..819364f1f3 100644 --- a/configs/colibri_imx6_nospl_defconfig +++ b/configs/colibri_imx6_nospl_defconfig @@ -42,6 +42,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/colibri_imx7_defconfig b/configs/colibri_imx7_defconfig index f7e03c8d47..d2ac75b98b 100644 --- a/configs/colibri_imx7_defconfig +++ b/configs/colibri_imx7_defconfig @@ -53,6 +53,7 @@ CONFIG_NAND_MXS=y CONFIG_MTD_UBI_FASTMAP=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX7=y diff --git a/configs/colibri_vf_defconfig b/configs/colibri_vf_defconfig index 05bb3b788e..97d2dc1740 100644 --- a/configs/colibri_vf_defconfig +++ b/configs/colibri_vf_defconfig @@ -51,6 +51,7 @@ CONFIG_SYS_NAND_VF610_NFC_60_ECC_BYTES=y CONFIG_MTD_UBI_FASTMAP=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y diff --git a/configs/dms-ba16-1g_defconfig b/configs/dms-ba16-1g_defconfig index 444c1fa32b..9172e2140c 100644 --- a/configs/dms-ba16-1g_defconfig +++ b/configs/dms-ba16-1g_defconfig @@ -35,6 +35,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/dms-ba16_defconfig b/configs/dms-ba16_defconfig index 311816c0dc..28c3bc6edb 100644 --- a/configs/dms-ba16_defconfig +++ b/configs/dms-ba16_defconfig @@ -34,6 +34,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/flea3_defconfig b/configs/flea3_defconfig index 7db05587df..a47ddda9c4 100644 --- a/configs/flea3_defconfig +++ b/configs/flea3_defconfig @@ -27,6 +27,7 @@ CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/ge_bx50v3_defconfig b/configs/ge_bx50v3_defconfig index 497e9a7a48..7576b74e62 100644 --- a/configs/ge_bx50v3_defconfig +++ b/configs/ge_bx50v3_defconfig @@ -36,6 +36,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_E1000=y CONFIG_CMD_E1000=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/gwventana_emmc_defconfig b/configs/gwventana_emmc_defconfig index c7faddcf83..e535a6ba49 100644 --- a/configs/gwventana_emmc_defconfig +++ b/configs/gwventana_emmc_defconfig @@ -60,6 +60,7 @@ CONFIG_SUPPORT_EMMC_RPMB=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_E1000=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_DM_SERIAL=y diff --git a/configs/gwventana_gw5904_defconfig b/configs/gwventana_gw5904_defconfig index e7cbb5a0ea..595c25ab07 100644 --- a/configs/gwventana_gw5904_defconfig +++ b/configs/gwventana_gw5904_defconfig @@ -64,6 +64,7 @@ CONFIG_MV88E61XX_CPU_PORT=5 CONFIG_MV88E61XX_PHY_PORTS=0xf CONFIG_MV88E61XX_FIXED_PORTS=0x0 CONFIG_E1000=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_DM_SERIAL=y diff --git a/configs/gwventana_nand_defconfig b/configs/gwventana_nand_defconfig index f232f79369..db3bb5fe43 100644 --- a/configs/gwventana_nand_defconfig +++ b/configs/gwventana_nand_defconfig @@ -64,6 +64,7 @@ CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_PHYLIB=y CONFIG_E1000=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_DM_SERIAL=y diff --git a/configs/liteboard_defconfig b/configs/liteboard_defconfig index d500dabfc2..0492365b59 100644 --- a/configs/liteboard_defconfig +++ b/configs/liteboard_defconfig @@ -31,6 +31,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/marsboard_defconfig b/configs/marsboard_defconfig index 2f72d034f9..1c117c38fa 100644 --- a/configs/marsboard_defconfig +++ b/configs/marsboard_defconfig @@ -23,6 +23,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/mccmon6_nor_defconfig b/configs/mccmon6_nor_defconfig index d0946e3f73..48cf122d80 100644 --- a/configs/mccmon6_nor_defconfig +++ b/configs/mccmon6_nor_defconfig @@ -34,6 +34,7 @@ CONFIG_SPI_FLASH_SPANSION=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/mccmon6_sd_defconfig b/configs/mccmon6_sd_defconfig index 1168add910..13bba555d3 100644 --- a/configs/mccmon6_sd_defconfig +++ b/configs/mccmon6_sd_defconfig @@ -35,6 +35,7 @@ CONFIG_SPI_FLASH_SPANSION=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/mx25pdk_defconfig b/configs/mx25pdk_defconfig index acec2708a4..a93ecf291a 100644 --- a/configs/mx25pdk_defconfig +++ b/configs/mx25pdk_defconfig @@ -19,6 +19,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_DOS_PARTITION=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_FS_EXT4=y CONFIG_FS_FAT=y diff --git a/configs/mx28evk_auart_console_defconfig b/configs/mx28evk_auart_console_defconfig index 231bc68b78..9edb1099c6 100644 --- a/configs/mx28evk_auart_console_defconfig +++ b/configs/mx28evk_auart_console_defconfig @@ -42,6 +42,7 @@ CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_CONS_INDEX=0 CONFIG_SPI=y diff --git a/configs/mx28evk_defconfig b/configs/mx28evk_defconfig index 21bfa419c9..e147152117 100644 --- a/configs/mx28evk_defconfig +++ b/configs/mx28evk_defconfig @@ -42,6 +42,7 @@ CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_CONS_INDEX=0 CONFIG_SPI=y diff --git a/configs/mx28evk_nand_defconfig b/configs/mx28evk_nand_defconfig index eedbbecbe1..825aa5919e 100644 --- a/configs/mx28evk_nand_defconfig +++ b/configs/mx28evk_nand_defconfig @@ -41,6 +41,7 @@ CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_CONS_INDEX=0 CONFIG_SPI=y diff --git a/configs/mx28evk_spi_defconfig b/configs/mx28evk_spi_defconfig index 5e5f6e1ba3..1eb9107aa3 100644 --- a/configs/mx28evk_spi_defconfig +++ b/configs/mx28evk_spi_defconfig @@ -41,6 +41,7 @@ CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_CONS_INDEX=0 CONFIG_SPI=y diff --git a/configs/mx35pdk_defconfig b/configs/mx35pdk_defconfig index f77e54ee85..75fabb7767 100644 --- a/configs/mx35pdk_defconfig +++ b/configs/mx35pdk_defconfig @@ -29,6 +29,7 @@ CONFIG_FSL_ESDHC=y CONFIG_MTD_NOR_FLASH=y CONFIG_NAND=y CONFIG_NAND_MXC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SMC911X=y CONFIG_SMC911X_BASE=0xB6000000 diff --git a/configs/mx51evk_defconfig b/configs/mx51evk_defconfig index 0fc09c7e3a..443b8e4d12 100644 --- a/configs/mx51evk_defconfig +++ b/configs/mx51evk_defconfig @@ -21,6 +21,7 @@ CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/mx53evk_defconfig b/configs/mx53evk_defconfig index 2931913399..f1cae5d273 100644 --- a/configs/mx53evk_defconfig +++ b/configs/mx53evk_defconfig @@ -14,5 +14,6 @@ CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_OF_LIBFDT=y diff --git a/configs/mx53loco_defconfig b/configs/mx53loco_defconfig index 23d2cc0431..8e1b852d01 100644 --- a/configs/mx53loco_defconfig +++ b/configs/mx53loco_defconfig @@ -23,6 +23,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/mx53ppd_defconfig b/configs/mx53ppd_defconfig index 92a0f8001f..b254ae6cd7 100644 --- a/configs/mx53ppd_defconfig +++ b/configs/mx53ppd_defconfig @@ -28,6 +28,7 @@ CONFIG_BOOTCOUNT_EXT=y CONFIG_SYS_BOOTCOUNT_EXT_DEVPART="0:5" CONFIG_SYS_BOOTCOUNT_ADDR=0x7000A000 CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_RTC_S35392A=y CONFIG_USB=y diff --git a/configs/mx53smd_defconfig b/configs/mx53smd_defconfig index b8db7bdd44..39c011c7b2 100644 --- a/configs/mx53smd_defconfig +++ b/configs/mx53smd_defconfig @@ -14,5 +14,6 @@ CONFIG_CMD_PING=y CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_OF_LIBFDT=y diff --git a/configs/mx6cuboxi_defconfig b/configs/mx6cuboxi_defconfig index 7f720f023a..82908be483 100644 --- a/configs/mx6cuboxi_defconfig +++ b/configs/mx6cuboxi_defconfig @@ -32,6 +32,7 @@ CONFIG_DM=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_THERMAL=y CONFIG_USB=y diff --git a/configs/mx6dlarm2_defconfig b/configs/mx6dlarm2_defconfig index 964d497757..9ded1c84c2 100644 --- a/configs/mx6dlarm2_defconfig +++ b/configs/mx6dlarm2_defconfig @@ -25,6 +25,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/mx6dlarm2_lpddr2_defconfig b/configs/mx6dlarm2_lpddr2_defconfig index 4bb6fc32be..56bef527ed 100644 --- a/configs/mx6dlarm2_lpddr2_defconfig +++ b/configs/mx6dlarm2_lpddr2_defconfig @@ -25,6 +25,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/mx6qarm2_defconfig b/configs/mx6qarm2_defconfig index e4160ca9f0..8c36c0a7ca 100644 --- a/configs/mx6qarm2_defconfig +++ b/configs/mx6qarm2_defconfig @@ -25,6 +25,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/mx6qarm2_lpddr2_defconfig b/configs/mx6qarm2_lpddr2_defconfig index 56853011dd..f7d8faa71a 100644 --- a/configs/mx6qarm2_lpddr2_defconfig +++ b/configs/mx6qarm2_lpddr2_defconfig @@ -25,6 +25,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/mx6qsabrelite_defconfig b/configs/mx6qsabrelite_defconfig index 6467d2f94d..f33e21490e 100644 --- a/configs/mx6qsabrelite_defconfig +++ b/configs/mx6qsabrelite_defconfig @@ -37,6 +37,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index ae5b0294ca..08a3edca24 100644 --- a/configs/mx6sabreauto_defconfig +++ b/configs/mx6sabreauto_defconfig @@ -48,6 +48,7 @@ CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index 7efff43694..ef9d266cfd 100644 --- a/configs/mx6sabresd_defconfig +++ b/configs/mx6sabresd_defconfig @@ -56,6 +56,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_SPI=y diff --git a/configs/mx6slevk_defconfig b/configs/mx6slevk_defconfig index f756d5a631..7222a0bdab 100644 --- a/configs/mx6slevk_defconfig +++ b/configs/mx6slevk_defconfig @@ -36,6 +36,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y diff --git a/configs/mx6slevk_spinor_defconfig b/configs/mx6slevk_spinor_defconfig index 14b507cd35..c9c3c4f733 100644 --- a/configs/mx6slevk_spinor_defconfig +++ b/configs/mx6slevk_spinor_defconfig @@ -36,6 +36,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y diff --git a/configs/mx6slevk_spl_defconfig b/configs/mx6slevk_spl_defconfig index 66f4c60ebf..8d85c5958a 100644 --- a/configs/mx6slevk_spl_defconfig +++ b/configs/mx6slevk_spl_defconfig @@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_FEC_MXC=y CONFIG_ARCH_MX6=y CONFIG_SYS_TEXT_BASE=0x87800000 CONFIG_SPL_GPIO_SUPPORT=y @@ -44,6 +45,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y diff --git a/configs/mx6sxsabreauto_defconfig b/configs/mx6sxsabreauto_defconfig index cebbedd0cd..a150cc743d 100644 --- a/configs/mx6sxsabreauto_defconfig +++ b/configs/mx6sxsabreauto_defconfig @@ -39,6 +39,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX6=y diff --git a/configs/mx6sxsabresd_defconfig b/configs/mx6sxsabresd_defconfig index cfc420aaf2..fbb2d09f0b 100644 --- a/configs/mx6sxsabresd_defconfig +++ b/configs/mx6sxsabresd_defconfig @@ -39,6 +39,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_PINCTRL=y diff --git a/configs/mx6sxsabresd_spl_defconfig b/configs/mx6sxsabresd_spl_defconfig index 1023cde334..84fce44542 100644 --- a/configs/mx6sxsabresd_spl_defconfig +++ b/configs/mx6sxsabresd_spl_defconfig @@ -47,6 +47,7 @@ CONFIG_DM_MMC=y CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_PINCTRL=y diff --git a/configs/mx6ul_14x14_evk_defconfig b/configs/mx6ul_14x14_evk_defconfig index 13388a12b1..68b2c41105 100644 --- a/configs/mx6ul_14x14_evk_defconfig +++ b/configs/mx6ul_14x14_evk_defconfig @@ -42,6 +42,7 @@ CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_FSL_QSPI=y diff --git a/configs/mx6ul_9x9_evk_defconfig b/configs/mx6ul_9x9_evk_defconfig index 29bc01d963..84d4c63871 100644 --- a/configs/mx6ul_9x9_evk_defconfig +++ b/configs/mx6ul_9x9_evk_defconfig @@ -42,6 +42,7 @@ CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_FSL_QSPI=y diff --git a/configs/mx7dsabresd_defconfig b/configs/mx7dsabresd_defconfig index c44b4b061e..31f0dd34f4 100644 --- a/configs/mx7dsabresd_defconfig +++ b/configs/mx7dsabresd_defconfig @@ -50,6 +50,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_EON=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y CONFIG_PINCTRL_IMX7=y diff --git a/configs/nitrogen6dl2g_defconfig b/configs/nitrogen6dl2g_defconfig index 59d3ca90db..42bfd007bd 100644 --- a/configs/nitrogen6dl2g_defconfig +++ b/configs/nitrogen6dl2g_defconfig @@ -39,6 +39,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/nitrogen6dl_defconfig b/configs/nitrogen6dl_defconfig index e38a16f12a..27fe342b57 100644 --- a/configs/nitrogen6dl_defconfig +++ b/configs/nitrogen6dl_defconfig @@ -39,6 +39,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/nitrogen6q2g_defconfig b/configs/nitrogen6q2g_defconfig index 86b2601c29..87276fe9c5 100644 --- a/configs/nitrogen6q2g_defconfig +++ b/configs/nitrogen6q2g_defconfig @@ -41,6 +41,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/nitrogen6q_defconfig b/configs/nitrogen6q_defconfig index 5d609ff894..9cdcdd61d7 100644 --- a/configs/nitrogen6q_defconfig +++ b/configs/nitrogen6q_defconfig @@ -41,6 +41,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/nitrogen6s1g_defconfig b/configs/nitrogen6s1g_defconfig index 00e33385af..47775e7a7a 100644 --- a/configs/nitrogen6s1g_defconfig +++ b/configs/nitrogen6s1g_defconfig @@ -39,6 +39,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/nitrogen6s_defconfig b/configs/nitrogen6s_defconfig index c15da7f4c6..20d5c0240e 100644 --- a/configs/nitrogen6s_defconfig +++ b/configs/nitrogen6s_defconfig @@ -39,6 +39,7 @@ CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/novena_defconfig b/configs/novena_defconfig index a752fd0958..5a67e133a9 100644 --- a/configs/novena_defconfig +++ b/configs/novena_defconfig @@ -42,6 +42,7 @@ CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_USB=y diff --git a/configs/ot1200_defconfig b/configs/ot1200_defconfig index 991abb581b..86d4fafab5 100644 --- a/configs/ot1200_defconfig +++ b/configs/ot1200_defconfig @@ -35,6 +35,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_SST=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/ot1200_spl_defconfig b/configs/ot1200_spl_defconfig index 2a4647b4c0..136ade3d7d 100644 --- a/configs/ot1200_spl_defconfig +++ b/configs/ot1200_spl_defconfig @@ -44,6 +44,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_SST=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/pcm052_defconfig b/configs/pcm052_defconfig index 2015929377..06356540c7 100644 --- a/configs/pcm052_defconfig +++ b/configs/pcm052_defconfig @@ -33,6 +33,7 @@ CONFIG_NAND_VF610_NFC=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y diff --git a/configs/pcm058_defconfig b/configs/pcm058_defconfig index 339776b7fa..8b3232f685 100644 --- a/configs/pcm058_defconfig +++ b/configs/pcm058_defconfig @@ -48,6 +48,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/pico-imx6ul_defconfig b/configs/pico-imx6ul_defconfig index aac1fcf952..1f6b9503e7 100644 --- a/configs/pico-imx6ul_defconfig +++ b/configs/pico-imx6ul_defconfig @@ -33,6 +33,7 @@ CONFIG_DFU_MMC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/pico-imx7d_defconfig b/configs/pico-imx7d_defconfig index 9995eb4b71..c5a74ebb93 100644 --- a/configs/pico-imx7d_defconfig +++ b/configs/pico-imx7d_defconfig @@ -25,6 +25,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y diff --git a/configs/platinum_picon_defconfig b/configs/platinum_picon_defconfig index 21ff65c4be..86a1a6ba1e 100644 --- a/configs/platinum_picon_defconfig +++ b/configs/platinum_picon_defconfig @@ -46,6 +46,7 @@ CONFIG_FSL_ESDHC=y CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/platinum_titanium_defconfig b/configs/platinum_titanium_defconfig index 340bc9a43d..695b883d81 100644 --- a/configs/platinum_titanium_defconfig +++ b/configs/platinum_titanium_defconfig @@ -48,6 +48,7 @@ CONFIG_NAND_MXS=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/riotboard_defconfig b/configs/riotboard_defconfig index 6c5ade5a09..aab23af94b 100644 --- a/configs/riotboard_defconfig +++ b/configs/riotboard_defconfig @@ -23,6 +23,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/sc_sps_1_defconfig b/configs/sc_sps_1_defconfig index 98b753bd83..1be74af286 100644 --- a/configs/sc_sps_1_defconfig +++ b/configs/sc_sps_1_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y CONFIG_MMC_MXS=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_CONS_INDEX=0 CONFIG_USB=y diff --git a/configs/secomx6quq7_defconfig b/configs/secomx6quq7_defconfig index c36f93393c..81b2a6a5a1 100644 --- a/configs/secomx6quq7_defconfig +++ b/configs/secomx6quq7_defconfig @@ -28,5 +28,6 @@ CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_OF_LIBFDT=y diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig index a2882c4cf1..269cc39516 100644 --- a/configs/tbs2910_defconfig +++ b/configs/tbs2910_defconfig @@ -40,6 +40,7 @@ CONFIG_DM=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_DM_THERMAL=y diff --git a/configs/titanium_defconfig b/configs/titanium_defconfig index b86e5376bf..d7dd805459 100644 --- a/configs/titanium_defconfig +++ b/configs/titanium_defconfig @@ -36,6 +36,7 @@ CONFIG_NAND_MXS=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/tqma6dl_mba6_mmc_defconfig b/configs/tqma6dl_mba6_mmc_defconfig index 4473b5a8c2..a94b98bafa 100644 --- a/configs/tqma6dl_mba6_mmc_defconfig +++ b/configs/tqma6dl_mba6_mmc_defconfig @@ -36,6 +36,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/tqma6dl_mba6_spi_defconfig b/configs/tqma6dl_mba6_spi_defconfig index eaedfb367e..a393f71b63 100644 --- a/configs/tqma6dl_mba6_spi_defconfig +++ b/configs/tqma6dl_mba6_spi_defconfig @@ -37,6 +37,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/tqma6q_mba6_mmc_defconfig b/configs/tqma6q_mba6_mmc_defconfig index 29304ca467..6cb680f55d 100644 --- a/configs/tqma6q_mba6_mmc_defconfig +++ b/configs/tqma6q_mba6_mmc_defconfig @@ -35,6 +35,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/tqma6q_mba6_spi_defconfig b/configs/tqma6q_mba6_spi_defconfig index f9ce67ae97..297f320ed9 100644 --- a/configs/tqma6q_mba6_spi_defconfig +++ b/configs/tqma6q_mba6_spi_defconfig @@ -36,6 +36,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/tqma6s_mba6_mmc_defconfig b/configs/tqma6s_mba6_mmc_defconfig index 9ac2986e74..6c501cb8dc 100644 --- a/configs/tqma6s_mba6_mmc_defconfig +++ b/configs/tqma6s_mba6_mmc_defconfig @@ -36,6 +36,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/tqma6s_mba6_spi_defconfig b/configs/tqma6s_mba6_spi_defconfig index d24429bbb9..36cae10e5f 100644 --- a/configs/tqma6s_mba6_spi_defconfig +++ b/configs/tqma6s_mba6_spi_defconfig @@ -37,6 +37,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/tqma6s_wru4_mmc_defconfig b/configs/tqma6s_wru4_mmc_defconfig index 126c5aec41..2d78ddd59b 100644 --- a/configs/tqma6s_wru4_mmc_defconfig +++ b/configs/tqma6s_wru4_mmc_defconfig @@ -58,6 +58,7 @@ CONFIG_LED_STATUS_CMD=y CONFIG_PCA9551_LED=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/ts4800_defconfig b/configs/ts4800_defconfig index 8b70497455..8201090b29 100644 --- a/configs/ts4800_defconfig +++ b/configs/ts4800_defconfig @@ -16,6 +16,7 @@ CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/udoo_defconfig b/configs/udoo_defconfig index 33e0ba54b2..fe60b1b23f 100644 --- a/configs/udoo_defconfig +++ b/configs/udoo_defconfig @@ -38,6 +38,7 @@ CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_THERMAL=y CONFIG_OF_LIBFDT=y diff --git a/configs/udoo_neo_defconfig b/configs/udoo_neo_defconfig index ac7fb07b63..287d9b8146 100644 --- a/configs/udoo_neo_defconfig +++ b/configs/udoo_neo_defconfig @@ -28,5 +28,6 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_OF_LIBFDT=y diff --git a/configs/vf610twr_defconfig b/configs/vf610twr_defconfig index c0c63b89fc..3acf5f3949 100644 --- a/configs/vf610twr_defconfig +++ b/configs/vf610twr_defconfig @@ -35,6 +35,7 @@ CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_SPI_FLASH=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y diff --git a/configs/vf610twr_nand_defconfig b/configs/vf610twr_nand_defconfig index 79e94a80fb..3d7d84565d 100644 --- a/configs/vf610twr_nand_defconfig +++ b/configs/vf610twr_nand_defconfig @@ -35,6 +35,7 @@ CONFIG_SYS_NAND_BUSWIDTH_16BIT=y CONFIG_SPI_FLASH=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_SERIAL=y CONFIG_FSL_LPUART=y diff --git a/configs/vining_2000_defconfig b/configs/vining_2000_defconfig index 865322f259..aa5606cb66 100644 --- a/configs/vining_2000_defconfig +++ b/configs/vining_2000_defconfig @@ -33,6 +33,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_SUPPORT_EMMC_RPMB=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_USB=y diff --git a/configs/wandboard_defconfig b/configs/wandboard_defconfig index 1bd3a36fcf..701de3653e 100644 --- a/configs/wandboard_defconfig +++ b/configs/wandboard_defconfig @@ -36,6 +36,7 @@ CONFIG_DM=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_THERMAL=y CONFIG_USB=y diff --git a/configs/woodburn_defconfig b/configs/woodburn_defconfig index b9e07d4a49..f0382aa0a2 100644 --- a/configs/woodburn_defconfig +++ b/configs/woodburn_defconfig @@ -32,6 +32,7 @@ CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/woodburn_sd_defconfig b/configs/woodburn_sd_defconfig index e191d8d86c..24fcd12225 100644 --- a/configs/woodburn_sd_defconfig +++ b/configs/woodburn_sd_defconfig @@ -43,6 +43,7 @@ CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_PHYLIB=y CONFIG_PHY_MICREL=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/xpress_defconfig b/configs/xpress_defconfig index a515ea4837..d0ff0b548e 100644 --- a/configs/xpress_defconfig +++ b/configs/xpress_defconfig @@ -25,6 +25,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/xpress_spl_defconfig b/configs/xpress_spl_defconfig index a7ebbf53be..7292125fa0 100644 --- a/configs/xpress_spl_defconfig +++ b/configs/xpress_spl_defconfig @@ -35,6 +35,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_STORAGE=y diff --git a/configs/zc5202_defconfig b/configs/zc5202_defconfig index 0a7ef30b1e..1dc4312cb4 100644 --- a/configs/zc5202_defconfig +++ b/configs/zc5202_defconfig @@ -34,6 +34,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y CONFIG_SPI=y diff --git a/configs/zc5601_defconfig b/configs/zc5601_defconfig index 2eed6734ee..d43281248b 100644 --- a/configs/zc5601_defconfig +++ b/configs/zc5601_defconfig @@ -34,6 +34,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y CONFIG_MXC_SPI=y diff --git a/configs/zmx25_defconfig b/configs/zmx25_defconfig index 7d082b5693..690a912f97 100644 --- a/configs/zmx25_defconfig +++ b/configs/zmx25_defconfig @@ -22,6 +22,7 @@ CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_FLASH=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y +CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y CONFIG_USB_EHCI_HCD=y diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index a6c28ee1a4..5beb913785 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig @@ -168,7 +168,8 @@ config FEC_MXC_MDIO_BASE
config FEC_MXC bool "FEC Ethernet controller" - depends on MX5 || MX6 || MX7 + depends on ARCH_VF610 || MX25 || MX28 || MX5 || MX6 || MX7 || \ + TARGET_APF27 || TARGET_MX35PDK || TARGET_FLEA3 help This driver supports the 10/100 Fast Ethernet controller for NXP i.MX processors. diff --git a/include/configs/advantech_dms-ba16.h b/include/configs/advantech_dms-ba16.h index 467221e365..2a7c3921bb 100644 --- a/include/configs/advantech_dms-ba16.h +++ b/include/configs/advantech_dms-ba16.h @@ -55,7 +55,6 @@ #define CONFIG_USBD_HS
/* Networking Configs */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index 94cee982ac..1a2e95f32d 100644 --- a/include/configs/apalis_imx6.h +++ b/include/configs/apalis_imx6.h @@ -68,7 +68,6 @@ #endif
/* Network */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/apf27.h b/include/configs/apf27.h index f7b4854b6d..5919e30e2e 100644 --- a/include/configs/apf27.h +++ b/include/configs/apf27.h @@ -190,7 +190,6 @@ /* * Ethernet (on SOC imx FEC) */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_MXC_PHYADDR 0x1f
/* diff --git a/include/configs/apx4devkit.h b/include/configs/apx4devkit.h index ebebec07fc..475f9c372f 100644 --- a/include/configs/apx4devkit.h +++ b/include/configs/apx4devkit.h @@ -51,7 +51,6 @@
/* FEC Ethernet on SoC */ #ifdef CONFIG_CMD_NET -#define CONFIG_FEC_MXC #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 #define IMX_FEC_BASE MXS_ENET0_BASE diff --git a/include/configs/aristainetos-common.h b/include/configs/aristainetos-common.h index 2fceff8439..933b91b7e7 100644 --- a/include/configs/aristainetos-common.h +++ b/include/configs/aristainetos-common.h @@ -25,7 +25,6 @@ /* MMC Configs */ #define CONFIG_SYS_FSL_ESDHC_ADDR 0
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/bg0900.h b/include/configs/bg0900.h index 98cd7b6f28..4ec105cb77 100644 --- a/include/configs/bg0900.h +++ b/include/configs/bg0900.h @@ -17,7 +17,6 @@
/* FEC Ethernet on SoC */ #ifdef CONFIG_CMD_NET -#define CONFIG_FEC_MXC #endif
/* SPI */ diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h index 3d5cfe9102..553a470306 100644 --- a/include/configs/cgtqmx6eval.h +++ b/include/configs/cgtqmx6eval.h @@ -82,7 +82,6 @@ #define CONFIG_LBA48
/* Ethernet */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/cl-som-imx7.h b/include/configs/cl-som-imx7.h index 30931f1c86..a9fbcfe6ab 100644 --- a/include/configs/cl-som-imx7.h +++ b/include/configs/cl-som-imx7.h @@ -24,7 +24,6 @@ #define CONFIG_CSF_SIZE 0x4000
/* Network */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h index 7cc0e07f94..574242ad0f 100644 --- a/include/configs/cm_fx6.h +++ b/include/configs/cm_fx6.h @@ -177,7 +177,6 @@ #endif
/* Ethernet */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_FEC_XCV_TYPE RGMII #define IMX_FEC_BASE ENET_BASE_ADDR diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index 11e623c3fb..efd7423afd 100644 --- a/include/configs/colibri_imx6.h +++ b/include/configs/colibri_imx6.h @@ -56,7 +56,6 @@ #define CONFIG_SUPPORT_EMMC_BOOT /* eMMC specific */
/* Network */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index 087aa7260d..f34d33fcf6 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -20,7 +20,6 @@ #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M)
/* Network */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_XCV_TYPE RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index d2342f8f10..41060e601a 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -49,7 +49,6 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR 0 #define CONFIG_SYS_FSL_ESDHC_NUM 1
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET1_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RMII #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/embestmx6boards.h b/include/configs/embestmx6boards.h index c0a5a70086..b295c07922 100644 --- a/include/configs/embestmx6boards.h +++ b/include/configs/embestmx6boards.h @@ -41,7 +41,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" diff --git a/include/configs/flea3.h b/include/configs/flea3.h index d8a0c8f9f4..3f4a514d10 100644 --- a/include/configs/flea3.h +++ b/include/configs/flea3.h @@ -67,7 +67,6 @@ /* * Ethernet on SOC (FEC) */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1
diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h index 29db89959f..01352adac9 100644 --- a/include/configs/ge_bx50v3.h +++ b/include/configs/ge_bx50v3.h @@ -64,7 +64,6 @@
/* Networking Configs */ #ifdef CONFIG_NET -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 049956b717..f90d66f118 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -123,7 +123,6 @@ #define CONFIG_CMD_UNZIP /* gzwrite */
/* Ethernet support */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/liteboard.h b/include/configs/liteboard.h index fc4e00f0fc..42dbee1973 100644 --- a/include/configs/liteboard.h +++ b/include/configs/liteboard.h @@ -140,7 +140,6 @@ #endif
#ifdef CONFIG_CMD_NET -#define CONFIG_FEC_MXC #define CONFIG_FEC_ENET_DEV 0
#define IMX_FEC_BASE ENET_BASE_ADDR diff --git a/include/configs/mccmon6.h b/include/configs/mccmon6.h index 932d657c11..aa5adb9076 100644 --- a/include/configs/mccmon6.h +++ b/include/configs/mccmon6.h @@ -86,7 +86,6 @@ #define CONFIG_MXC_USB_FLAGS 0
/* Ethernet Configuration */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h index 350c6a8383..81079e040f 100644 --- a/include/configs/mx25pdk.h +++ b/include/configs/mx25pdk.h @@ -60,7 +60,6 @@ #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
/* Ethernet */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_MXC_PHYADDR 0x1f #define CONFIG_ENV_OVERWRITE
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index dc4db2bec8..6e8efcb21a 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -63,7 +63,6 @@
/* FEC Ethernet on SoC */ #ifdef CONFIG_CMD_NET -#define CONFIG_FEC_MXC #define CONFIG_FEC_MXC_MDIO_BASE MXS_ENET0_BASE #define CONFIG_MX28_FEC_MAC_IN_OCOTP #endif diff --git a/include/configs/mx35pdk.h b/include/configs/mx35pdk.h index f449ecc3cf..d4243b48e8 100644 --- a/include/configs/mx35pdk.h +++ b/include/configs/mx35pdk.h @@ -83,7 +83,6 @@ /* * Ethernet on SOC (FEC) */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1F
diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h index ea80c9ff60..ea3d80d25c 100644 --- a/include/configs/mx51evk.h +++ b/include/configs/mx51evk.h @@ -55,8 +55,6 @@ /* * Eth Configs */ - -#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1F
diff --git a/include/configs/mx53evk.h b/include/configs/mx53evk.h index c5e29951ec..c62b31fcf9 100644 --- a/include/configs/mx53evk.h +++ b/include/configs/mx53evk.h @@ -46,7 +46,6 @@
/* Eth Configs */
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1F
diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h index 77809c4827..6b5e12d5c7 100644 --- a/include/configs/mx53loco.h +++ b/include/configs/mx53loco.h @@ -33,7 +33,6 @@
/* Eth Configs */
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1F
diff --git a/include/configs/mx53ppd.h b/include/configs/mx53ppd.h index 61c64b068a..d28cfa8744 100644 --- a/include/configs/mx53ppd.h +++ b/include/configs/mx53ppd.h @@ -39,7 +39,6 @@
/* Eth Configs */
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1F
diff --git a/include/configs/mx53smd.h b/include/configs/mx53smd.h index 714ab4e67e..0813ca1733 100644 --- a/include/configs/mx53smd.h +++ b/include/configs/mx53smd.h @@ -39,7 +39,6 @@ /* Eth Configs */ #define CONFIG_HAS_ETH1
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1F
diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h index 5bc6a9ea56..b232700ff2 100644 --- a/include/configs/mx6cuboxi.h +++ b/include/configs/mx6cuboxi.h @@ -28,7 +28,6 @@ #endif
/* Ethernet Configuration */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/mx6qarm2.h b/include/configs/mx6qarm2.h index 7fa9355f77..10d3f4e747 100644 --- a/include/configs/mx6qarm2.h +++ b/include/configs/mx6qarm2.h @@ -20,7 +20,6 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR USDHC4_BASE_ADDR #define CONFIG_SYS_FSL_USDHC_NUM 2
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index 02d387ae9b..24c6bbda17 100644 --- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -20,7 +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" diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index 1af681a226..651ddace5a 100644 --- a/include/configs/mx6slevk.h +++ b/include/configs/mx6slevk.h @@ -32,7 +32,6 @@ #define CONFIG_SYS_I2C_MXC_I2C3 /* enable I2C bus 3 */ #define CONFIG_SYS_I2C_SPEED 100000
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RMII #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/mx6sxsabreauto.h b/include/configs/mx6sxsabreauto.h index 5f4a0ecf76..918a68c17f 100644 --- a/include/configs/mx6sxsabreauto.h +++ b/include/configs/mx6sxsabreauto.h @@ -126,9 +126,6 @@ /* DMA stuff, needed for GPMI/MXS NAND support */
/* Network */ - -#define CONFIG_FEC_MXC - #define IMX_FEC_BASE ENET2_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0
diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h index 8f89da3859..7d397910ec 100644 --- a/include/configs/mx6sxsabresd.h +++ b/include/configs/mx6sxsabresd.h @@ -150,8 +150,6 @@ #define CONFIG_SYS_I2C_SPEED 100000
/* Network */ -#define CONFIG_FEC_MXC - #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1
diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h index 0fb2fc3d21..e138999d14 100644 --- a/include/configs/mx6ul_14x14_evk.h +++ b/include/configs/mx6ul_14x14_evk.h @@ -184,7 +184,6 @@ #endif
#ifdef CONFIG_CMD_NET -#define CONFIG_FEC_MXC #define CONFIG_FEC_ENET_DEV 1
#if (CONFIG_FEC_ENET_DEV == 0) diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h index 59a653c68d..5e66454626 100644 --- a/include/configs/mx7dsabresd.h +++ b/include/configs/mx7dsabresd.h @@ -19,7 +19,6 @@ #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M)
/* Network */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h index 1e94a5d282..6f9610964f 100644 --- a/include/configs/nitrogen6x.h +++ b/include/configs/nitrogen6x.h @@ -53,7 +53,6 @@ #define CONFIG_LBA48 #endif
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/novena.h b/include/configs/novena.h index 79d3db8bd9..8451d556f7 100644 --- a/include/configs/novena.h +++ b/include/configs/novena.h @@ -61,7 +61,6 @@
/* Ethernet Configuration */ #ifdef CONFIG_CMD_NET -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/ot1200.h b/include/configs/ot1200.h index 944b0fa4db..82bceeda77 100644 --- a/include/configs/ot1200.h +++ b/include/configs/ot1200.h @@ -68,7 +68,6 @@ #define CONFIG_SYS_SPI_U_BOOT_OFFS (64 * 1024) #endif
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE MII100 #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h index 55e8e7a09a..e78ac674ac 100644 --- a/include/configs/pcm052.h +++ b/include/configs/pcm052.h @@ -41,7 +41,6 @@
/*#define CONFIG_ESDHC_DETECT_USE_EXTERN_IRQ1*/
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RMII #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/pcm058.h b/include/configs/pcm058.h index d75499f843..05770549d3 100644 --- a/include/configs/pcm058.h +++ b/include/configs/pcm058.h @@ -31,7 +31,6 @@ #define CONFIG_SYS_MALLOC_LEN (8 * SZ_1M)
/* Ethernet */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h index 21f6bd8da4..8c3f6c5093 100644 --- a/include/configs/pico-imx6ul.h +++ b/include/configs/pico-imx6ul.h @@ -15,7 +15,6 @@
/* Network support */
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET2_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1 #define CONFIG_FEC_XCV_TYPE RMII diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index 3ed7af689b..79012ad2f6 100644 --- a/include/configs/pico-imx7d.h +++ b/include/configs/pico-imx7d.h @@ -18,7 +18,6 @@ #define CONFIG_MXC_UART_BASE UART5_IPS_BASE_ADDR
/* Network */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 1 diff --git a/include/configs/platinum.h b/include/configs/platinum.h index 6ed5d191e6..6a9d97e7f4 100644 --- a/include/configs/platinum.h +++ b/include/configs/platinum.h @@ -35,7 +35,6 @@ #define CONFIG_SYS_FSL_USDHC_NUM 1
/* Ethernet config */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR
/* USB config */ diff --git a/include/configs/sc_sps_1.h b/include/configs/sc_sps_1.h index fbd977abf5..394317bda6 100644 --- a/include/configs/sc_sps_1.h +++ b/include/configs/sc_sps_1.h @@ -30,7 +30,6 @@
/* FEC Ethernet on SoC */ #ifdef CONFIG_CMD_NET -#define CONFIG_FEC_MXC #define CONFIG_PHY_SMSC #endif
diff --git a/include/configs/secomx6quq7.h b/include/configs/secomx6quq7.h index 3841c78b11..1442cf1b5a 100644 --- a/include/configs/secomx6quq7.h +++ b/include/configs/secomx6quq7.h @@ -26,7 +26,6 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR 0
/* Ethernet Configuration */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index b79ef287d8..dbe1b662b0 100644 --- a/include/configs/tbs2910.h +++ b/include/configs/tbs2910.h @@ -49,8 +49,6 @@ #define CONFIG_SUPPORT_EMMC_BOOT
/* Ethernet */ -#define CONFIG_FEC_MXC -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/titanium.h b/include/configs/titanium.h index 8c2b781782..745c709b65 100644 --- a/include/configs/titanium.h +++ b/include/configs/titanium.h @@ -39,7 +39,6 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR 0 #define CONFIG_SYS_FSL_USDHC_NUM 1
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_FEC_MXC_PHYADDR 4 diff --git a/include/configs/tqma6.h b/include/configs/tqma6.h index 2aaff9df7d..1881f77cc4 100644 --- a/include/configs/tqma6.h +++ b/include/configs/tqma6.h @@ -68,7 +68,6 @@ #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 #define CONFIG_EHCI_HCD_INIT_AFTER_RESET /* For OTG port */
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR
#define CONFIG_ARP_TIMEOUT 200UL diff --git a/include/configs/ts4800.h b/include/configs/ts4800.h index 8e146198d7..11275ab2ea 100644 --- a/include/configs/ts4800.h +++ b/include/configs/ts4800.h @@ -57,7 +57,6 @@ */ #define CONFIG_PHY_SMSC
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/udoo.h b/include/configs/udoo.h index 79f456fdf1..8674139c40 100644 --- a/include/configs/udoo.h +++ b/include/configs/udoo.h @@ -32,7 +32,6 @@
/* Network support */
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h index 576eff63d6..27f8059b4a 100644 --- a/include/configs/udoo_neo.h +++ b/include/configs/udoo_neo.h @@ -95,8 +95,6 @@ #define PFUZE3000_I2C_BUS 0
/* Network */ -#define CONFIG_FEC_MXC - #define CONFIG_FEC_ENET_DEV 0 #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0 diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h index 67dbfec549..501918195f 100644 --- a/include/configs/vf610twr.h +++ b/include/configs/vf610twr.h @@ -44,7 +44,6 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR 0 #define CONFIG_SYS_FSL_ESDHC_NUM 1
-#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RMII #define CONFIG_FEC_MXC_PHYADDR 0 diff --git a/include/configs/vining_2000.h b/include/configs/vining_2000.h index 48695eaaf9..c3b9485031 100644 --- a/include/configs/vining_2000.h +++ b/include/configs/vining_2000.h @@ -62,8 +62,6 @@ #define CONFIG_POWER_PFUZE100_I2C_ADDR 0x08
/* Network */ -#define CONFIG_FEC_MXC - #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0
diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index 9c4760d8ed..c864d112cc 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -56,7 +56,6 @@ #define CONFIG_MXC_USB_FLAGS 0
/* Ethernet Configuration */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/woodburn_common.h b/include/configs/woodburn_common.h index 922d864efe..b36c890afb 100644 --- a/include/configs/woodburn_common.h +++ b/include/configs/woodburn_common.h @@ -76,7 +76,6 @@ /* * Ethernet on SOC (FEC) */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1
diff --git a/include/configs/xpress.h b/include/configs/xpress.h index b3f8e12066..1277f55296 100644 --- a/include/configs/xpress.h +++ b/include/configs/xpress.h @@ -65,7 +65,6 @@ #define CONFIG_MXC_USB_FLAGS 0 #define CONFIG_USB_MAX_CONTROLLER_COUNT 2
-#define CONFIG_FEC_MXC #define CONFIG_FEC_ENET_DEV 0 #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0 diff --git a/include/configs/zc5202.h b/include/configs/zc5202.h index 40d33f7830..b82da93207 100644 --- a/include/configs/zc5202.h +++ b/include/configs/zc5202.h @@ -17,7 +17,6 @@ #include "el6x_common.h"
/* Ethernet */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE MII100 #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/zc5601.h b/include/configs/zc5601.h index b9673e2c06..2227877f72 100644 --- a/include/configs/zc5601.h +++ b/include/configs/zc5601.h @@ -18,7 +18,6 @@ #include "el6x_common.h"
/* Ethernet */ -#define CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/zmx25.h b/include/configs/zmx25.h index a95b429291..1e5f099ea2 100644 --- a/include/configs/zmx25.h +++ b/include/configs/zmx25.h @@ -43,7 +43,6 @@ /* * Ethernet */ -#define CONFIG_FEC_MXC #define CONFIG_FEC_MXC_PHYADDR 0x00
/*

Use existing PHY_INTERFACE_MODE_ for xcv_type, this eventually - remove CONFIG_FEC_XCV_TYPE in DM_ETH boards since the phy interface is grabbing from DT phy-mode. - prefix PHY_INTERFACE_MODE_ for CONFIG_FEC_XCV_TYPE in non DM_ETH boards - added MII100, SEVENWIRE PHY mode
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- drivers/net/fec_mxc.c | 18 +++++++++--------- drivers/net/fec_mxc.h | 15 +-------------- include/configs/advantech_dms-ba16.h | 2 +- include/configs/apalis_imx6.h | 2 +- include/configs/aristainetos.h | 2 +- include/configs/aristainetos2.h | 2 +- include/configs/aristainetos2b.h | 2 +- include/configs/cgtqmx6eval.h | 2 +- include/configs/cl-som-imx7.h | 2 +- include/configs/cm_fx6.h | 2 +- include/configs/colibri_imx6.h | 2 +- include/configs/colibri_imx7.h | 2 +- include/configs/colibri_vf.h | 2 +- include/configs/dh_imx6.h | 2 +- include/configs/display5.h | 2 +- include/configs/embestmx6boards.h | 2 +- include/configs/ge_bx50v3.h | 2 +- include/configs/gw_ventana.h | 2 +- include/configs/imx6-engicam.h | 2 -- include/configs/imx6_logic.h | 1 - include/configs/kp_imx6q_tpc.h | 2 +- include/configs/liteboard.h | 2 +- include/configs/mccmon6.h | 2 +- include/configs/mx6cuboxi.h | 2 +- include/configs/mx6qarm2.h | 2 +- include/configs/mx6sabre_common.h | 2 +- include/configs/mx6slevk.h | 2 +- include/configs/mx6sxsabreauto.h | 2 +- include/configs/mx6sxsabresd.h | 2 +- include/configs/mx6ul_14x14_evk.h | 4 ++-- include/configs/mx7dsabresd.h | 2 +- include/configs/mxs.h | 2 +- include/configs/nitrogen6x.h | 2 +- include/configs/novena.h | 2 +- include/configs/opos6uldev.h | 2 +- include/configs/ot1200.h | 2 +- include/configs/pcm052.h | 2 +- include/configs/pcm058.h | 2 +- include/configs/pfla02.h | 2 +- include/configs/pico-imx6ul.h | 2 +- include/configs/pico-imx7d.h | 2 +- include/configs/platinum_picon.h | 2 +- include/configs/platinum_titanium.h | 2 +- include/configs/secomx6quq7.h | 2 +- include/configs/sksimx6.h | 2 +- include/configs/tbs2910.h | 2 +- include/configs/titanium.h | 2 +- include/configs/tqma6_mba6.h | 2 +- include/configs/tqma6_wru4.h | 2 +- include/configs/udoo.h | 2 +- include/configs/udoo_neo.h | 2 +- include/configs/vf610twr.h | 2 +- include/configs/vining_2000.h | 2 +- include/configs/wandboard.h | 2 +- include/configs/xpress.h | 2 +- include/configs/zc5202.h | 2 +- include/configs/zc5601.h | 2 +- include/phy.h | 4 ++++ 58 files changed, 68 insertions(+), 80 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 694a0b2f7e..fc42978a20 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -15,6 +15,7 @@ #include <miiphy.h> #include <net.h> #include <netdev.h> +#include <phy.h> #include "fec_mxc.h"
#include <asm/io.h> @@ -46,7 +47,7 @@ DECLARE_GLOBAL_DATA_PTR; #endif
#ifndef CONFIG_FEC_XCV_TYPE -#define CONFIG_FEC_XCV_TYPE MII100 +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_MII100 #endif
/* @@ -397,11 +398,11 @@ static void fec_reg_setup(struct fec_priv *fec)
/* Start with frame length = 1518, common for all modes. */ rcntrl = PKTSIZE << FEC_RCNTRL_MAX_FL_SHIFT; - if (fec->xcv_type != SEVENWIRE) /* xMII modes */ + if (fec->xcv_type != PHY_INTERFACE_MODE_SEVENWIRE) /* xMII modes */ rcntrl |= FEC_RCNTRL_FCE | FEC_RCNTRL_MII_MODE; - if (fec->xcv_type == RGMII) + if (fec->xcv_type == PHY_INTERFACE_MODE_RGMII) rcntrl |= FEC_RCNTRL_RGMII; - else if (fec->xcv_type == RMII) + else if (fec->xcv_type == PHY_INTERFACE_MODE_RMII) rcntrl |= FEC_RCNTRL_RMII;
writel(rcntrl, &fec->eth->r_cntrl); @@ -552,7 +553,7 @@ static int fec_init(struct eth_device *dev, bd_t *bd)
fec_reg_setup(fec);
- if (fec->xcv_type != SEVENWIRE) + if (fec->xcv_type != PHY_INTERFACE_MODE_SEVENWIRE) fec_mii_setspeed(fec->bus->priv);
/* Set Opcode/Pause Duration Register */ @@ -583,7 +584,7 @@ static int fec_init(struct eth_device *dev, bd_t *bd) writel((uint32_t)addr, &fec->eth->erdsr);
#ifndef CONFIG_PHYLIB - if (fec->xcv_type != SEVENWIRE) + if (fec->xcv_type != PHY_INTERFACE_MODE_SEVENWIRE) miiphy_restart_aneg(dev); #endif fec_open(dev); @@ -1233,7 +1234,7 @@ static int fec_phy_init(struct fec_priv *priv, struct udevice *dev) mask = 1 << CONFIG_FEC_MXC_PHYADDR; #endif
- phydev = phy_find_by_mask(priv->bus, mask, priv->interface); + phydev = phy_find_by_mask(priv->bus, mask, priv->xcv_type); if (!phydev) return -ENODEV;
@@ -1283,8 +1284,7 @@ static int fecmxc_probe(struct udevice *dev) }
priv->bus = bus; - priv->xcv_type = CONFIG_FEC_XCV_TYPE; - priv->interface = pdata->phy_interface; + priv->xcv_type = pdata->phy_interface; ret = fec_phy_init(priv, dev); if (ret) goto err_phy; diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h index 3b935afe2c..058341ca4a 100644 --- a/drivers/net/fec_mxc.h +++ b/drivers/net/fec_mxc.h @@ -223,19 +223,10 @@ struct fec_bd { uint32_t data_pointer; /* payload's buffer address */ };
-/* Supported phy types on this platform */ -enum xceiver_type { - SEVENWIRE, /* 7-wire */ - MII10, /* MII 10Mbps */ - MII100, /* MII 100Mbps */ - RMII, /* RMII */ - RGMII, /* RGMII */ -}; - /* @brief i.MX27-FEC private structure */ struct fec_priv { struct ethernet_regs *eth; /* pointer to register'S base */ - enum xceiver_type xcv_type; /* transceiver type */ + phy_interface_t xcv_type; /* transceiver type */ struct fec_bd *rbd_base; /* RBD ring */ int rbd_index; /* next receive BD to read */ struct fec_bd *tbd_base; /* TBD ring */ @@ -250,10 +241,6 @@ struct fec_priv { int phy_id; int (*mii_postcall)(int); #endif - -#ifdef CONFIG_DM_ETH - u32 interface; -#endif };
void imx_get_mac_from_fuse(int dev_id, unsigned char *mac); diff --git a/include/configs/advantech_dms-ba16.h b/include/configs/advantech_dms-ba16.h index 2a7c3921bb..ab0b3b90d9 100644 --- a/include/configs/advantech_dms-ba16.h +++ b/include/configs/advantech_dms-ba16.h @@ -56,7 +56,7 @@
/* Networking Configs */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 4 #define CONFIG_PHY_ATHEROS diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index 1a2e95f32d..bb15b23afe 100644 --- a/include/configs/apalis_imx6.h +++ b/include/configs/apalis_imx6.h @@ -69,7 +69,7 @@
/* Network */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 6 #define CONFIG_IP_DEFRAG diff --git a/include/configs/aristainetos.h b/include/configs/aristainetos.h index c53ba89838..1266c8d7e5 100644 --- a/include/configs/aristainetos.h +++ b/include/configs/aristainetos.h @@ -19,7 +19,7 @@ #define CONFIG_MXC_UART_BASE UART5_BASE #define CONSOLE_DEV "ttymxc4"
-#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII
#define CONFIG_SF_DEFAULT_BUS 3 #define CONFIG_SF_DEFAULT_CS 0 diff --git a/include/configs/aristainetos2.h b/include/configs/aristainetos2.h index 67b2e5879c..138e13521d 100644 --- a/include/configs/aristainetos2.h +++ b/include/configs/aristainetos2.h @@ -18,7 +18,7 @@ #define CONFIG_MXC_UART_BASE UART2_BASE #define CONSOLE_DEV "ttymxc1"
-#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII
#define CONFIG_SF_DEFAULT_BUS 3 #define CONFIG_SF_DEFAULT_CS 1 diff --git a/include/configs/aristainetos2b.h b/include/configs/aristainetos2b.h index 91069a2c98..903e63e2e1 100644 --- a/include/configs/aristainetos2b.h +++ b/include/configs/aristainetos2b.h @@ -18,7 +18,7 @@ #define CONFIG_MXC_UART_BASE UART2_BASE #define CONSOLE_DEV "ttymxc1"
-#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII
#define CONFIG_SF_DEFAULT_BUS 0 #define CONFIG_SF_DEFAULT_CS 0 diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h index 553a470306..d3e08e16ec 100644 --- a/include/configs/cgtqmx6eval.h +++ b/include/configs/cgtqmx6eval.h @@ -83,7 +83,7 @@
/* Ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 6 #define CONFIG_PHY_ATHEROS diff --git a/include/configs/cl-som-imx7.h b/include/configs/cl-som-imx7.h index a9fbcfe6ab..ed84124dc3 100644 --- a/include/configs/cl-som-imx7.h +++ b/include/configs/cl-som-imx7.h @@ -24,7 +24,7 @@ #define CONFIG_CSF_SIZE 0x4000
/* Network */ -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0
diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h index 574242ad0f..89bd25e4f0 100644 --- a/include/configs/cm_fx6.h +++ b/include/configs/cm_fx6.h @@ -178,7 +178,7 @@
/* Ethernet */ #define CONFIG_FEC_MXC_PHYADDR 0 -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_PHY_ATHEROS #define CONFIG_ETHPRIME "FEC0" diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index efd7423afd..5ad0c07694 100644 --- a/include/configs/colibri_imx6.h +++ b/include/configs/colibri_imx6.h @@ -57,7 +57,7 @@
/* Network */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 1 #define CONFIG_IP_DEFRAG diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index f34d33fcf6..c35ea3598e 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -20,7 +20,7 @@ #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M)
/* Network */ -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0
diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index 41060e601a..49ea4f27d4 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -50,7 +50,7 @@ #define CONFIG_SYS_FSL_ESDHC_NUM 1
#define IMX_FEC_BASE ENET1_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_IPADDR 192.168.10.2 diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h index 8dec6c4908..d532e09494 100644 --- a/include/configs/dh_imx6.h +++ b/include/configs/dh_imx6.h @@ -43,7 +43,7 @@
/* FEC ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_ARP_TIMEOUT 200UL diff --git a/include/configs/display5.h b/include/configs/display5.h index 453d0dc806..c08a18039e 100644 --- a/include/configs/display5.h +++ b/include/configs/display5.h @@ -83,7 +83,7 @@ /* Ethernet */ #ifdef CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 #endif diff --git a/include/configs/embestmx6boards.h b/include/configs/embestmx6boards.h index b295c07922..43ed5b862a 100644 --- a/include/configs/embestmx6boards.h +++ b/include/configs/embestmx6boards.h @@ -42,7 +42,7 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR 0
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 4
diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h index 01352adac9..4dfa3575a5 100644 --- a/include/configs/ge_bx50v3.h +++ b/include/configs/ge_bx50v3.h @@ -65,7 +65,7 @@ /* Networking Configs */ #ifdef CONFIG_NET #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 4 #define CONFIG_PHY_ATHEROS diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index f90d66f118..6df5d154f4 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -124,7 +124,7 @@
/* Ethernet support */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_ARP_TIMEOUT 200UL
diff --git a/include/configs/imx6-engicam.h b/include/configs/imx6-engicam.h index 796e12b4c7..85f2991ab0 100644 --- a/include/configs/imx6-engicam.h +++ b/include/configs/imx6-engicam.h @@ -161,10 +161,8 @@ #ifdef CONFIG_FEC_MXC # ifdef CONFIG_TARGET_MX6Q_ICORE_RQS # define CONFIG_FEC_MXC_PHYADDR 3 -# define CONFIG_FEC_XCV_TYPE RGMII # else # define CONFIG_FEC_MXC_PHYADDR 0 -# define CONFIG_FEC_XCV_TYPE RMII # endif #endif
diff --git a/include/configs/imx6_logic.h b/include/configs/imx6_logic.h index f9b4117852..e22d76c4ef 100644 --- a/include/configs/imx6_logic.h +++ b/include/configs/imx6_logic.h @@ -22,7 +22,6 @@ #define CONFIG_MMCROOT "/dev/mmcblk1p2" /* Dev kit SD card */
/* Ethernet Configs */ -#define CONFIG_FEC_XCV_TYPE RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0
diff --git a/include/configs/kp_imx6q_tpc.h b/include/configs/kp_imx6q_tpc.h index 57242017a6..915ae8b7ce 100644 --- a/include/configs/kp_imx6q_tpc.h +++ b/include/configs/kp_imx6q_tpc.h @@ -26,7 +26,7 @@
/* FEC ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_ARP_TIMEOUT 200UL diff --git a/include/configs/liteboard.h b/include/configs/liteboard.h index 42dbee1973..f136496e27 100644 --- a/include/configs/liteboard.h +++ b/include/configs/liteboard.h @@ -144,7 +144,7 @@
#define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0 -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC"
#define CONFIG_PHY_SMSC diff --git a/include/configs/mccmon6.h b/include/configs/mccmon6.h index aa5adb9076..ab787b2f15 100644 --- a/include/configs/mccmon6.h +++ b/include/configs/mccmon6.h @@ -87,7 +87,7 @@
/* Ethernet Configuration */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 1
diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h index b232700ff2..7de4df4b2b 100644 --- a/include/configs/mx6cuboxi.h +++ b/include/configs/mx6cuboxi.h @@ -29,7 +29,7 @@
/* Ethernet Configuration */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_PHY_ATHEROS
diff --git a/include/configs/mx6qarm2.h b/include/configs/mx6qarm2.h index 10d3f4e747..b82b8325ff 100644 --- a/include/configs/mx6qarm2.h +++ b/include/configs/mx6qarm2.h @@ -21,7 +21,7 @@ #define CONFIG_SYS_FSL_USDHC_NUM 2
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_EXTRA_ENV_SETTINGS \ diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index 24c6bbda17..86f192fb2d 100644 --- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -21,7 +21,7 @@ #define CONFIG_SYS_FSL_ESDHC_ADDR 0
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 1
diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index 651ddace5a..f8a865d06e 100644 --- a/include/configs/mx6slevk.h +++ b/include/configs/mx6slevk.h @@ -33,7 +33,7 @@ #define CONFIG_SYS_I2C_SPEED 100000
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_PHY_SMSC diff --git a/include/configs/mx6sxsabreauto.h b/include/configs/mx6sxsabreauto.h index 918a68c17f..e5473570a9 100644 --- a/include/configs/mx6sxsabreauto.h +++ b/include/configs/mx6sxsabreauto.h @@ -129,7 +129,7 @@ #define IMX_FEC_BASE ENET2_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0
-#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC"
#define CONFIG_PHY_ATHEROS diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h index 7d397910ec..095c0a8b56 100644 --- a/include/configs/mx6sxsabresd.h +++ b/include/configs/mx6sxsabresd.h @@ -153,7 +153,7 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1
-#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC"
#define CONFIG_PHY_ATHEROS diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h index e138999d14..90f28a95f5 100644 --- a/include/configs/mx6ul_14x14_evk.h +++ b/include/configs/mx6ul_14x14_evk.h @@ -189,11 +189,11 @@ #if (CONFIG_FEC_ENET_DEV == 0) #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x2 -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #elif (CONFIG_FEC_ENET_DEV == 1) #define IMX_FEC_BASE ENET2_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1 -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #endif #define CONFIG_ETHPRIME "FEC" #endif diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h index 5e66454626..384836746b 100644 --- a/include/configs/mx7dsabresd.h +++ b/include/configs/mx7dsabresd.h @@ -19,7 +19,7 @@ #define CONFIG_SYS_MALLOC_LEN (32 * SZ_1M)
/* Network */ -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0
diff --git a/include/configs/mxs.h b/include/configs/mxs.h index 9e59e7a4dc..f895836161 100644 --- a/include/configs/mxs.h +++ b/include/configs/mxs.h @@ -115,7 +115,7 @@ #define CONFIG_ETHPRIME "FEC0" #endif #ifndef CONFIG_FEC_XCV_TYPE -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #endif #endif
diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h index 6f9610964f..c6795d7f03 100644 --- a/include/configs/nitrogen6x.h +++ b/include/configs/nitrogen6x.h @@ -54,7 +54,7 @@ #endif
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 6
diff --git a/include/configs/novena.h b/include/configs/novena.h index 8451d556f7..fe4e92598f 100644 --- a/include/configs/novena.h +++ b/include/configs/novena.h @@ -62,7 +62,7 @@ /* Ethernet Configuration */ #ifdef CONFIG_CMD_NET #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0x7 #define CONFIG_ARP_TIMEOUT 200UL diff --git a/include/configs/opos6uldev.h b/include/configs/opos6uldev.h index 7abc9d7450..87a00459f9 100644 --- a/include/configs/opos6uldev.h +++ b/include/configs/opos6uldev.h @@ -49,7 +49,7 @@ #ifdef CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1 -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #endif
diff --git a/include/configs/ot1200.h b/include/configs/ot1200.h index 82bceeda77..db03f38fdd 100644 --- a/include/configs/ot1200.h +++ b/include/configs/ot1200.h @@ -69,7 +69,7 @@ #endif
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE MII100 +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_MII100 #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0x5 #define CONFIG_PHY_SMSC diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h index e78ac674ac..922ed12867 100644 --- a/include/configs/pcm052.h +++ b/include/configs/pcm052.h @@ -42,7 +42,7 @@ /*#define CONFIG_ESDHC_DETECT_USE_EXTERN_IRQ1*/
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_FEC_MXC_PHYADDR 0
/* QSPI Configs*/ diff --git a/include/configs/pcm058.h b/include/configs/pcm058.h index 05770549d3..4e55da4b3b 100644 --- a/include/configs/pcm058.h +++ b/include/configs/pcm058.h @@ -32,7 +32,7 @@
/* Ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 3
diff --git a/include/configs/pfla02.h b/include/configs/pfla02.h index 6cf3eae2f2..fe3702c4d3 100644 --- a/include/configs/pfla02.h +++ b/include/configs/pfla02.h @@ -30,7 +30,7 @@
/* Ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 3
diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h index 8c3f6c5093..34660a77dc 100644 --- a/include/configs/pico-imx6ul.h +++ b/include/configs/pico-imx6ul.h @@ -17,7 +17,7 @@
#define IMX_FEC_BASE ENET2_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x1 -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII
/* Size of malloc() pool */ #define CONFIG_SYS_MALLOC_LEN (35 * SZ_1M) /* Increase due to DFU */ diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index 79012ad2f6..c568b9ca5f 100644 --- a/include/configs/pico-imx7d.h +++ b/include/configs/pico-imx7d.h @@ -18,7 +18,7 @@ #define CONFIG_MXC_UART_BASE UART5_IPS_BASE_ADDR
/* Network */ -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 1
diff --git a/include/configs/platinum_picon.h b/include/configs/platinum_picon.h index 1b55e73979..c8b88995c7 100644 --- a/include/configs/platinum_picon.h +++ b/include/configs/platinum_picon.h @@ -12,7 +12,7 @@
#include <configs/platinum.h>
-#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_HOSTNAME "picon" diff --git a/include/configs/platinum_titanium.h b/include/configs/platinum_titanium.h index b4028832e9..afbfc94ca4 100644 --- a/include/configs/platinum_titanium.h +++ b/include/configs/platinum_titanium.h @@ -15,7 +15,7 @@
#include <configs/platinum.h>
-#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_FEC_MXC_PHYADDR 4
#define CONFIG_PHY_RESET_DELAY 1000 diff --git a/include/configs/secomx6quq7.h b/include/configs/secomx6quq7.h index 1442cf1b5a..1804391fbe 100644 --- a/include/configs/secomx6quq7.h +++ b/include/configs/secomx6quq7.h @@ -27,7 +27,7 @@
/* Ethernet Configuration */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 6
diff --git a/include/configs/sksimx6.h b/include/configs/sksimx6.h index 1a71ac4904..58dfab08e6 100644 --- a/include/configs/sksimx6.h +++ b/include/configs/sksimx6.h @@ -22,7 +22,7 @@
/* Ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0x01
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index dbe1b662b0..59802766d8 100644 --- a/include/configs/tbs2910.h +++ b/include/configs/tbs2910.h @@ -50,7 +50,7 @@
/* Ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 4 #define CONFIG_PHY_ATHEROS diff --git a/include/configs/titanium.h b/include/configs/titanium.h index 745c709b65..1aa431e65a 100644 --- a/include/configs/titanium.h +++ b/include/configs/titanium.h @@ -40,7 +40,7 @@ #define CONFIG_SYS_FSL_USDHC_NUM 1
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_FEC_MXC_PHYADDR 4
/* USB Configs */ diff --git a/include/configs/tqma6_mba6.h b/include/configs/tqma6_mba6.h index bee6d2f33b..d459c98c06 100644 --- a/include/configs/tqma6_mba6.h +++ b/include/configs/tqma6_mba6.h @@ -9,7 +9,7 @@ #ifndef __CONFIG_TQMA6_MBA6_H #define __CONFIG_TQMA6_MBA6_H
-#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC"
#define CONFIG_FEC_MXC_PHYADDR 0x03 diff --git a/include/configs/tqma6_wru4.h b/include/configs/tqma6_wru4.h index 2e9292eb55..1d793f2fe4 100644 --- a/include/configs/tqma6_wru4.h +++ b/include/configs/tqma6_wru4.h @@ -7,7 +7,7 @@ #define __CONFIG_TQMA6_WRU4_H
/* Ethernet */ -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0x01 #define CONFIG_PHY_SMSC diff --git a/include/configs/udoo.h b/include/configs/udoo.h index 8674139c40..145f0f03c7 100644 --- a/include/configs/udoo.h +++ b/include/configs/udoo.h @@ -33,7 +33,7 @@ /* Network support */
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 6
diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h index 27f8059b4a..e294b2c283 100644 --- a/include/configs/udoo_neo.h +++ b/include/configs/udoo_neo.h @@ -99,7 +99,7 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0
-#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC0"
#endif /* __CONFIG_H */ diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h index 501918195f..6d307611d4 100644 --- a/include/configs/vf610twr.h +++ b/include/configs/vf610twr.h @@ -45,7 +45,7 @@ #define CONFIG_SYS_FSL_ESDHC_NUM 1
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_FEC_MXC_PHYADDR 0
/* QSPI Configs*/ diff --git a/include/configs/vining_2000.h b/include/configs/vining_2000.h index c3b9485031..5c9367ce9e 100644 --- a/include/configs/vining_2000.h +++ b/include/configs/vining_2000.h @@ -65,7 +65,7 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0
-#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC"
#define CONFIG_PHY_ATHEROS diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index c864d112cc..d685cacc57 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -57,7 +57,7 @@
/* Ethernet Configuration */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 1 #define CONFIG_PHY_ATHEROS diff --git a/include/configs/xpress.h b/include/configs/xpress.h index 1277f55296..781955eeae 100644 --- a/include/configs/xpress.h +++ b/include/configs/xpress.h @@ -68,7 +68,7 @@ #define CONFIG_FEC_ENET_DEV 0 #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_MXC_PHYADDR 0x0 -#define CONFIG_FEC_XCV_TYPE RMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_PHY_SMSC
diff --git a/include/configs/zc5202.h b/include/configs/zc5202.h index b82da93207..72ebe069ea 100644 --- a/include/configs/zc5202.h +++ b/include/configs/zc5202.h @@ -18,7 +18,7 @@
/* Ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE MII100 +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_MII100 #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_MV88E6352_SWITCH diff --git a/include/configs/zc5601.h b/include/configs/zc5601.h index 2227877f72..4f376ba523 100644 --- a/include/configs/zc5601.h +++ b/include/configs/zc5601.h @@ -19,7 +19,7 @@
/* Ethernet */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_XCV_TYPE RGMII +#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_FEC_MXC_PHYADDR 0x10 #define CONFIG_FEC_FIXED_SPEED 1000 /* No autoneg, fix Gb */ diff --git a/include/phy.h b/include/phy.h index 7c3fc5ce40..d4bf21d02d 100644 --- a/include/phy.h +++ b/include/phy.h @@ -50,6 +50,7 @@
typedef enum { PHY_INTERFACE_MODE_MII, + PHY_INTERFACE_MODE_MII100, PHY_INTERFACE_MODE_GMII, PHY_INTERFACE_MODE_SGMII, PHY_INTERFACE_MODE_SGMII_2500, @@ -65,6 +66,7 @@ typedef enum { PHY_INTERFACE_MODE_XAUI, PHY_INTERFACE_MODE_RXAUI, PHY_INTERFACE_MODE_SFI, + PHY_INTERFACE_MODE_SEVENWIRE, PHY_INTERFACE_MODE_INTERNAL, PHY_INTERFACE_MODE_NONE, /* Must be last */
@@ -73,6 +75,7 @@ typedef enum {
static const char *phy_interface_strings[] = { [PHY_INTERFACE_MODE_MII] = "mii", + [PHY_INTERFACE_MODE_MII100] = "mii100", [PHY_INTERFACE_MODE_GMII] = "gmii", [PHY_INTERFACE_MODE_SGMII] = "sgmii", [PHY_INTERFACE_MODE_SGMII_2500] = "sgmii-2500", @@ -88,6 +91,7 @@ static const char *phy_interface_strings[] = { [PHY_INTERFACE_MODE_XAUI] = "xaui", [PHY_INTERFACE_MODE_RXAUI] = "rxaui", [PHY_INTERFACE_MODE_SFI] = "sfi", + [PHY_INTERFACE_MODE_SEVENWIRE] = "sevenwire", [PHY_INTERFACE_MODE_INTERNAL] = "internal", [PHY_INTERFACE_MODE_NONE] = "", };

Hi Jagan,
On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
Use existing PHY_INTERFACE_MODE_ for xcv_type, this eventually
- remove CONFIG_FEC_XCV_TYPE in DM_ETH boards since the phy interface is grabbing from DT phy-mode.
- prefix PHY_INTERFACE_MODE_ for CONFIG_FEC_XCV_TYPE in non DM_ETH boards
- added MII100, SEVENWIRE PHY mode
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
drivers/net/fec_mxc.c | 18 +++++++++--------- drivers/net/fec_mxc.h | 15 +-------------- include/configs/advantech_dms-ba16.h | 2 +- include/configs/apalis_imx6.h | 2 +- include/configs/aristainetos.h | 2 +- include/configs/aristainetos2.h | 2 +- include/configs/aristainetos2b.h | 2 +- include/configs/cgtqmx6eval.h | 2 +- include/configs/cl-som-imx7.h | 2 +- include/configs/cm_fx6.h | 2 +- include/configs/colibri_imx6.h | 2 +- include/configs/colibri_imx7.h | 2 +- include/configs/colibri_vf.h | 2 +- include/configs/dh_imx6.h | 2 +- include/configs/display5.h | 2 +- include/configs/embestmx6boards.h | 2 +- include/configs/ge_bx50v3.h | 2 +- include/configs/gw_ventana.h | 2 +- include/configs/imx6-engicam.h | 2 -- include/configs/imx6_logic.h | 1 - include/configs/kp_imx6q_tpc.h | 2 +- include/configs/liteboard.h | 2 +- include/configs/mccmon6.h | 2 +- include/configs/mx6cuboxi.h | 2 +- include/configs/mx6qarm2.h | 2 +- include/configs/mx6sabre_common.h | 2 +- include/configs/mx6slevk.h | 2 +- include/configs/mx6sxsabreauto.h | 2 +- include/configs/mx6sxsabresd.h | 2 +- include/configs/mx6ul_14x14_evk.h | 4 ++-- include/configs/mx7dsabresd.h | 2 +- include/configs/mxs.h | 2 +- include/configs/nitrogen6x.h | 2 +- include/configs/novena.h | 2 +- include/configs/opos6uldev.h | 2 +- include/configs/ot1200.h | 2 +- include/configs/pcm052.h | 2 +- include/configs/pcm058.h | 2 +- include/configs/pfla02.h | 2 +- include/configs/pico-imx6ul.h | 2 +- include/configs/pico-imx7d.h | 2 +- include/configs/platinum_picon.h | 2 +- include/configs/platinum_titanium.h | 2 +- include/configs/secomx6quq7.h | 2 +- include/configs/sksimx6.h | 2 +- include/configs/tbs2910.h | 2 +- include/configs/titanium.h | 2 +- include/configs/tqma6_mba6.h | 2 +- include/configs/tqma6_wru4.h | 2 +- include/configs/udoo.h | 2 +- include/configs/udoo_neo.h | 2 +- include/configs/vf610twr.h | 2 +- include/configs/vining_2000.h | 2 +- include/configs/wandboard.h | 2 +- include/configs/xpress.h | 2 +- include/configs/zc5202.h | 2 +- include/configs/zc5601.h | 2 +- include/phy.h | 4 ++++ 58 files changed, 68 insertions(+), 80 deletions(-)
<snip>
diff --git a/include/phy.h b/include/phy.h
This is no longer in phy.h. Look in include/phy_interface.h. Please rebase on master.
Thanks, -Joe
index 7c3fc5ce40..d4bf21d02d 100644 --- a/include/phy.h +++ b/include/phy.h @@ -50,6 +50,7 @@
typedef enum { PHY_INTERFACE_MODE_MII,
PHY_INTERFACE_MODE_MII100, PHY_INTERFACE_MODE_GMII, PHY_INTERFACE_MODE_SGMII, PHY_INTERFACE_MODE_SGMII_2500,
@@ -65,6 +66,7 @@ typedef enum { PHY_INTERFACE_MODE_XAUI, PHY_INTERFACE_MODE_RXAUI, PHY_INTERFACE_MODE_SFI,
PHY_INTERFACE_MODE_SEVENWIRE, PHY_INTERFACE_MODE_INTERNAL, PHY_INTERFACE_MODE_NONE, /* Must be last */
@@ -73,6 +75,7 @@ typedef enum {
static const char *phy_interface_strings[] = { [PHY_INTERFACE_MODE_MII] = "mii",
[PHY_INTERFACE_MODE_MII100] = "mii100", [PHY_INTERFACE_MODE_GMII] = "gmii", [PHY_INTERFACE_MODE_SGMII] = "sgmii", [PHY_INTERFACE_MODE_SGMII_2500] = "sgmii-2500",
@@ -88,6 +91,7 @@ static const char *phy_interface_strings[] = { [PHY_INTERFACE_MODE_XAUI] = "xaui", [PHY_INTERFACE_MODE_RXAUI] = "rxaui", [PHY_INTERFACE_MODE_SFI] = "sfi",
[PHY_INTERFACE_MODE_SEVENWIRE] = "sevenwire", [PHY_INTERFACE_MODE_INTERNAL] = "internal", [PHY_INTERFACE_MODE_NONE] = "",
};
2.18.0.321.gffc6fa0e3
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Usually PHYADDR is used while PHYLIB is defined, but boards like apx4devkit, mx6qarm2 are not using PHYLIB but they are using CONFIG_FEC_MXC_PHYADDR.
So, future patches will convert CONFIG_FEC_MXC_PHYADDR to generic CONFIG_PHY_ADDR and that will depends on PHYLIB. Handle this special case for this boards by adding default CONFIG_FEC_MXC_PHYADDR to 0 if not defined so-that it can't depends on PHYLIB local to fec_mxc. Boards which are using PHY_ADDR in future will anyway use PHYLIB.
Cc: Ye Li ye.li@nxp.com Cc: Jason Liu jason.hui.liu@nxp.com Cc: Lauri Hintsala lauri.hintsala@bluegiga.com Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- drivers/net/fec_mxc.c | 4 ++++ include/configs/apx4devkit.h | 1 - include/configs/mx6qarm2.h | 1 - 3 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index fc42978a20..49bb926efa 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -50,6 +50,10 @@ DECLARE_GLOBAL_DATA_PTR; #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_MII100 #endif
+#if defined(CONFIG_TARGET_APX4DEVKIT) || defined(CONFIG_TARGET_MX6QARM2) +# define CONFIG_FEC_MXC_PHY_ADDR 0 +#endif + /* * The i.MX28 operates with packets in big endian. We need to swap them before * sending and after receiving. diff --git a/include/configs/apx4devkit.h b/include/configs/apx4devkit.h index 475f9c372f..aa129edc89 100644 --- a/include/configs/apx4devkit.h +++ b/include/configs/apx4devkit.h @@ -52,7 +52,6 @@ /* FEC Ethernet on SoC */ #ifdef CONFIG_CMD_NET #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0 #define IMX_FEC_BASE MXS_ENET0_BASE #endif
diff --git a/include/configs/mx6qarm2.h b/include/configs/mx6qarm2.h index b82b8325ff..06043c888f 100644 --- a/include/configs/mx6qarm2.h +++ b/include/configs/mx6qarm2.h @@ -22,7 +22,6 @@
#define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_EXTRA_ENV_SETTINGS \ "script=boot.scr\0" \

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
Usually PHYADDR is used while PHYLIB is defined, but boards like apx4devkit, mx6qarm2 are not using PHYLIB but they are using CONFIG_FEC_MXC_PHYADDR.
So, future patches will convert CONFIG_FEC_MXC_PHYADDR to generic CONFIG_PHY_ADDR and that will depends on PHYLIB. Handle this special case for this boards by adding default CONFIG_FEC_MXC_PHYADDR to 0 if not defined so-that it can't depends on PHYLIB local to fec_mxc. Boards which are using PHY_ADDR in future will anyway use PHYLIB.
Cc: Ye Li ye.li@nxp.com Cc: Jason Liu jason.hui.liu@nxp.com Cc: Lauri Hintsala lauri.hintsala@bluegiga.com Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

- use PHY_ADDR_ENABLE and PHY_ADDR - few boards are using FEC_MXC_PHYADDR without PHYLIB enable the same.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- board/compulab/cl-som-imx7/cl-som-imx7.c | 2 +- board/freescale/mx6sxsabreauto/mx6sxsabreauto.c | 3 +-- board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c | 2 +- board/freescale/mx7dsabresd/mx7dsabresd.c | 3 +-- board/samtec/vining_2000/vining_2000.c | 3 +-- board/sks-kinkel/sksimx6/sksimx6.c | 2 +- board/technexion/pico-imx7d/pico-imx7d.c | 3 +-- board/toradex/colibri_imx7/colibri_imx7.c | 3 +-- board/tqc/tqma6/tqma6_mba6.c | 2 +- board/udoo/neo/neo.c | 2 +- configs/apalis_imx6_defconfig | 1 + configs/apalis_imx6_nospl_com_defconfig | 1 + configs/apalis_imx6_nospl_it_defconfig | 2 ++ configs/apf27_defconfig | 2 ++ configs/cgtqmx6eval_defconfig | 1 + configs/cl-som-imx7_defconfig | 1 + configs/colibri_imx6_defconfig | 1 + configs/colibri_imx6_nospl_defconfig | 1 + configs/dms-ba16-1g_defconfig | 1 + configs/dms-ba16_defconfig | 1 + configs/flea3_defconfig | 1 + configs/ge_bx50v3_defconfig | 2 ++ configs/imx6dl_mamoj_defconfig | 1 + configs/imx6qdl_icore_rqs_defconfig | 1 + configs/marsboard_defconfig | 1 + configs/mccmon6_nor_defconfig | 1 + configs/mccmon6_sd_defconfig | 1 + configs/mx25pdk_defconfig | 2 ++ configs/mx35pdk_defconfig | 2 ++ configs/mx51evk_defconfig | 2 ++ configs/mx53cx9020_defconfig | 2 ++ configs/mx53evk_defconfig | 2 ++ configs/mx53loco_defconfig | 2 ++ configs/mx53ppd_defconfig | 2 ++ configs/mx53smd_defconfig | 2 ++ configs/mx6sabreauto_defconfig | 1 + configs/mx6sabresd_defconfig | 1 + configs/mx6sxsabresd_defconfig | 1 + configs/mx6sxsabresd_spl_defconfig | 1 + configs/mx6ul_14x14_evk_defconfig | 1 + configs/mx6ul_9x9_evk_defconfig | 1 + configs/nitrogen6dl2g_defconfig | 1 + configs/nitrogen6dl_defconfig | 1 + configs/nitrogen6q2g_defconfig | 1 + configs/nitrogen6q_defconfig | 1 + configs/nitrogen6s1g_defconfig | 1 + configs/nitrogen6s_defconfig | 1 + configs/novena_defconfig | 1 + configs/opos6uldev_defconfig | 1 + configs/ot1200_defconfig | 1 + configs/ot1200_spl_defconfig | 1 + configs/pcm058_defconfig | 1 + configs/pfla02_defconfig | 1 + configs/pico-imx6ul_defconfig | 1 + configs/pico-imx7d_defconfig | 1 + configs/platinum_titanium_defconfig | 1 + configs/riotboard_defconfig | 1 + configs/secomx6quq7_defconfig | 1 + configs/sksimx6_defconfig | 1 + configs/tbs2910_defconfig | 1 + configs/titanium_defconfig | 1 + configs/tqma6dl_mba6_mmc_defconfig | 1 + configs/tqma6dl_mba6_spi_defconfig | 1 + configs/tqma6q_mba6_mmc_defconfig | 1 + configs/tqma6q_mba6_spi_defconfig | 1 + configs/tqma6s_mba6_mmc_defconfig | 1 + configs/tqma6s_mba6_spi_defconfig | 1 + configs/tqma6s_wru4_mmc_defconfig | 1 + configs/udoo_defconfig | 1 + configs/wandboard_defconfig | 1 + configs/woodburn_defconfig | 1 + configs/woodburn_sd_defconfig | 1 + configs/zc5202_defconfig | 1 + configs/zc5601_defconfig | 1 + configs/zmx25_defconfig | 1 + doc/README.fec_mxc | 2 +- drivers/net/fec_mxc.c | 15 +++++++++------ drivers/net/phy/Kconfig | 1 + include/configs/advantech_dms-ba16.h | 1 - include/configs/apalis_imx6.h | 1 - include/configs/apf27.h | 5 ----- include/configs/aristainetos-common.h | 1 - include/configs/cgtqmx6eval.h | 1 - include/configs/cl-som-imx7.h | 2 -- include/configs/cm_fx6.h | 1 - include/configs/colibri_imx6.h | 1 - include/configs/colibri_imx7.h | 1 - include/configs/colibri_vf.h | 1 - include/configs/dh_imx6.h | 1 - include/configs/display5.h | 1 - include/configs/embestmx6boards.h | 1 - include/configs/flea3.h | 1 - include/configs/ge_bx50v3.h | 1 - include/configs/gw_ventana.h | 1 - include/configs/imx6-engicam.h | 9 --------- include/configs/imx6_logic.h | 1 - include/configs/imx6dl-mamoj.h | 3 --- include/configs/kp_imx6q_tpc.h | 1 - include/configs/liteboard.h | 1 - include/configs/mccmon6.h | 1 - include/configs/mx25pdk.h | 1 - include/configs/mx35pdk.h | 1 - include/configs/mx51evk.h | 1 - include/configs/mx53cx9020.h | 1 - include/configs/mx53evk.h | 1 - include/configs/mx53loco.h | 1 - include/configs/mx53ppd.h | 1 - include/configs/mx53smd.h | 1 - include/configs/mx6cuboxi.h | 1 - include/configs/mx6sabre_common.h | 1 - include/configs/mx6slevk.h | 1 - include/configs/mx6sxsabreauto.h | 1 - include/configs/mx6sxsabresd.h | 1 - include/configs/mx6ul_14x14_evk.h | 2 -- include/configs/mx7dsabresd.h | 1 - include/configs/nitrogen6x.h | 1 - include/configs/novena.h | 1 - include/configs/opos6uldev.h | 1 - include/configs/ot1200.h | 1 - include/configs/pcm052.h | 1 - include/configs/pcm058.h | 1 - include/configs/pfla02.h | 1 - include/configs/pico-imx6ul.h | 1 - include/configs/pico-imx7d.h | 1 - include/configs/platinum_picon.h | 1 - include/configs/platinum_titanium.h | 1 - include/configs/secomx6quq7.h | 1 - include/configs/sksimx6.h | 1 - include/configs/tbs2910.h | 1 - include/configs/titanium.h | 1 - include/configs/tqma6_mba6.h | 2 -- include/configs/tqma6_wru4.h | 1 - include/configs/ts4800.h | 1 - include/configs/udoo.h | 1 - include/configs/udoo_neo.h | 1 - include/configs/vf610twr.h | 1 - include/configs/vining_2000.h | 2 -- include/configs/wandboard.h | 1 - include/configs/woodburn_common.h | 1 - include/configs/xpress.h | 1 - include/configs/zc5202.h | 1 - include/configs/zc5601.h | 1 - include/configs/zmx25.h | 5 ----- scripts/config_whitelist.txt | 1 - 144 files changed, 97 insertions(+), 110 deletions(-)
diff --git a/board/compulab/cl-som-imx7/cl-som-imx7.c b/board/compulab/cl-som-imx7/cl-som-imx7.c index 1bc33b0a7b..e7ee6fdde9 100644 --- a/board/compulab/cl-som-imx7/cl-som-imx7.c +++ b/board/compulab/cl-som-imx7/cl-som-imx7.c @@ -210,7 +210,7 @@ int board_eth_init(bd_t *bis) gpio_set_value(CL_SOM_IMX7_ETH1_PHY_NRST, 1); /* MAC initialization */ return fecmxc_initialize_multi(bis, CL_SOM_IMX7_FEC_DEV_ID_PRI, - CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); + CONFIG_PHY_ADDR, IMX_FEC_BASE); }
/* diff --git a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c index 975af2c895..214b06fbf5 100644 --- a/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c +++ b/board/freescale/mx6sxsabreauto/mx6sxsabreauto.c @@ -99,8 +99,7 @@ int board_eth_init(bd_t *bis) imx_iomux_v3_setup_multiple_pads(fec2_pads, ARRAY_SIZE(fec2_pads)); setup_fec();
- ret = fecmxc_initialize_multi(bis, 1, - CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); + ret = fecmxc_initialize_multi(bis, 1, CONFIG_PHY_ADDR, IMX_FEC_BASE); if (ret) printf("FEC%d MXC: %s:failed\n", 1, __func__);
diff --git a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c index 1c9ffdaa16..bc03e15574 100644 --- a/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c +++ b/board/freescale/mx6ul_14x14_evk/mx6ul_14x14_evk.c @@ -517,7 +517,7 @@ int board_eth_init(bd_t *bis) setup_iomux_fec(CONFIG_FEC_ENET_DEV);
return fecmxc_initialize_multi(bis, CONFIG_FEC_ENET_DEV, - CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); + CONFIG_PHY_ADDR, IMX_FEC_BASE); }
static int setup_fec(int fec_id) diff --git a/board/freescale/mx7dsabresd/mx7dsabresd.c b/board/freescale/mx7dsabresd/mx7dsabresd.c index 90e2d1a92a..81a2edc21f 100644 --- a/board/freescale/mx7dsabresd/mx7dsabresd.c +++ b/board/freescale/mx7dsabresd/mx7dsabresd.c @@ -241,8 +241,7 @@ int board_eth_init(bd_t *bis)
setup_iomux_fec();
- ret = fecmxc_initialize_multi(bis, 0, - CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); + ret = fecmxc_initialize_multi(bis, 0, CONFIG_PHY_ADDR, IMX_FEC_BASE); if (ret) printf("FEC1 MXC: %s:failed\n", __func__);
diff --git a/board/samtec/vining_2000/vining_2000.c b/board/samtec/vining_2000/vining_2000.c index f37365c5cb..a860c4bc51 100644 --- a/board/samtec/vining_2000/vining_2000.c +++ b/board/samtec/vining_2000/vining_2000.c @@ -157,8 +157,7 @@ int board_eth_init(bd_t *bis) gpio_set_value(PHY_RESET, 1); mdelay(1);
- ret = fecmxc_initialize_multi(bis, 0, CONFIG_FEC_MXC_PHYADDR, - IMX_FEC_BASE); + ret = fecmxc_initialize_multi(bis, 0, CONFIG_PHY_ADDR, IMX_FEC_BASE); if (ret) goto eth_fail;
diff --git a/board/sks-kinkel/sksimx6/sksimx6.c b/board/sks-kinkel/sksimx6/sksimx6.c index f6e3d4d12e..f871b0ddb5 100644 --- a/board/sks-kinkel/sksimx6/sksimx6.c +++ b/board/sks-kinkel/sksimx6/sksimx6.c @@ -147,7 +147,7 @@ int board_eth_init(bd_t *bis) if (!bus) return -EINVAL; /* scan phy */ - phydev = phy_find_by_mask(bus, (0xf << CONFIG_FEC_MXC_PHYADDR), + phydev = phy_find_by_mask(bus, (0xf << CONFIG_PHY_ADDR), PHY_INTERFACE_MODE_RGMII);
if (!phydev) { diff --git a/board/technexion/pico-imx7d/pico-imx7d.c b/board/technexion/pico-imx7d/pico-imx7d.c index 44c81ecdb3..f1864775f9 100644 --- a/board/technexion/pico-imx7d/pico-imx7d.c +++ b/board/technexion/pico-imx7d/pico-imx7d.c @@ -167,8 +167,7 @@ int board_eth_init(bd_t *bis) { setup_iomux_fec();
- return fecmxc_initialize_multi(bis, 0, - CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); + return fecmxc_initialize_multi(bis, 0, CONFIG_PHY_ADDR, IMX_FEC_BASE); }
static int setup_fec(void) diff --git a/board/toradex/colibri_imx7/colibri_imx7.c b/board/toradex/colibri_imx7/colibri_imx7.c index cd98ec8216..102aaa82f7 100644 --- a/board/toradex/colibri_imx7/colibri_imx7.c +++ b/board/toradex/colibri_imx7/colibri_imx7.c @@ -251,8 +251,7 @@ int board_eth_init(bd_t *bis)
setup_iomux_fec();
- ret = fecmxc_initialize_multi(bis, 0, - CONFIG_FEC_MXC_PHYADDR, IMX_FEC_BASE); + ret = fecmxc_initialize_multi(bis, 0, CONFIG_PHY_ADDR, IMX_FEC_BASE); if (ret) printf("FEC1 MXC: %s:failed\n", __func__);
diff --git a/board/tqc/tqma6/tqma6_mba6.c b/board/tqc/tqma6/tqma6_mba6.c index f7072b8563..953727b08d 100644 --- a/board/tqc/tqma6/tqma6_mba6.c +++ b/board/tqc/tqma6/tqma6_mba6.c @@ -294,7 +294,7 @@ int board_eth_init(bd_t *bis) if (!bus) return -EINVAL; /* scan phy */ - phydev = phy_find_by_mask(bus, (0xf << CONFIG_FEC_MXC_PHYADDR), + phydev = phy_find_by_mask(bus, (0xf << CONFIG_PHY_ADDR), PHY_INTERFACE_MODE_RGMII);
if (!phydev) { diff --git a/board/udoo/neo/neo.c b/board/udoo/neo/neo.c index 828161360c..0fb5a4c070 100644 --- a/board/udoo/neo/neo.c +++ b/board/udoo/neo/neo.c @@ -303,7 +303,7 @@ int board_eth_init(bd_t *bis) if (!bus) return -EINVAL;
- phydev = phy_find_by_mask(bus, (0x1 << CONFIG_FEC_MXC_PHYADDR), + phydev = phy_find_by_mask(bus, (0x1 << CONFIG_PHY_ADDR), PHY_INTERFACE_MODE_RMII); if (!phydev) { free(bus); diff --git a/configs/apalis_imx6_defconfig b/configs/apalis_imx6_defconfig index da7053104c..311df3f4ee 100644 --- a/configs/apalis_imx6_defconfig +++ b/configs/apalis_imx6_defconfig @@ -53,6 +53,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/apalis_imx6_nospl_com_defconfig b/configs/apalis_imx6_nospl_com_defconfig index df2338921d..b473101428 100644 --- a/configs/apalis_imx6_nospl_com_defconfig +++ b/configs/apalis_imx6_nospl_com_defconfig @@ -42,6 +42,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/apalis_imx6_nospl_it_defconfig b/configs/apalis_imx6_nospl_it_defconfig index 8446dce4ad..3f62557feb 100644 --- a/configs/apalis_imx6_nospl_it_defconfig +++ b/configs/apalis_imx6_nospl_it_defconfig @@ -1,4 +1,5 @@ CONFIG_ARM=y +CONFIG_PHY_ADDR=6 CONFIG_SYS_THUMB_BUILD=y CONFIG_ARCH_MX6=y CONFIG_SYS_TEXT_BASE=0x17800000 @@ -42,6 +43,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/apf27_defconfig b/configs/apf27_defconfig index 6689214172..7276442c7f 100644 --- a/configs/apf27_defconfig +++ b/configs/apf27_defconfig @@ -41,6 +41,8 @@ CONFIG_MMC_MXC=y CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_SYS_NAND_BUSWIDTH_16BIT=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_OF_LIBFDT=y diff --git a/configs/cgtqmx6eval_defconfig b/configs/cgtqmx6eval_defconfig index 99b6efb2df..c0d3c35f3a 100644 --- a/configs/cgtqmx6eval_defconfig +++ b/configs/cgtqmx6eval_defconfig @@ -53,6 +53,7 @@ CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x12000000 CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/cl-som-imx7_defconfig b/configs/cl-som-imx7_defconfig index 8c67f95bfd..79e810be13 100644 --- a/configs/cl-som-imx7_defconfig +++ b/configs/cl-som-imx7_defconfig @@ -47,6 +47,7 @@ CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_PHYLIB=y CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/colibri_imx6_defconfig b/configs/colibri_imx6_defconfig index 1e642638ce..35e656cbd6 100644 --- a/configs/colibri_imx6_defconfig +++ b/configs/colibri_imx6_defconfig @@ -52,6 +52,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/colibri_imx6_nospl_defconfig b/configs/colibri_imx6_nospl_defconfig index 819364f1f3..f5867096a1 100644 --- a/configs/colibri_imx6_nospl_defconfig +++ b/configs/colibri_imx6_nospl_defconfig @@ -41,6 +41,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/dms-ba16-1g_defconfig b/configs/dms-ba16-1g_defconfig index 9172e2140c..05a874f245 100644 --- a/configs/dms-ba16-1g_defconfig +++ b/configs/dms-ba16-1g_defconfig @@ -35,6 +35,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=4 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/dms-ba16_defconfig b/configs/dms-ba16_defconfig index 28c3bc6edb..49e029f7b6 100644 --- a/configs/dms-ba16_defconfig +++ b/configs/dms-ba16_defconfig @@ -34,6 +34,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/flea3_defconfig b/configs/flea3_defconfig index a47ddda9c4..9a2951e1dd 100644 --- a/configs/flea3_defconfig +++ b/configs/flea3_defconfig @@ -26,6 +26,7 @@ CONFIG_MTD_NOR_FLASH=y CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/ge_bx50v3_defconfig b/configs/ge_bx50v3_defconfig index 7576b74e62..acc4f96367 100644 --- a/configs/ge_bx50v3_defconfig +++ b/configs/ge_bx50v3_defconfig @@ -36,6 +36,8 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_E1000=y CONFIG_CMD_E1000=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=4 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/imx6dl_mamoj_defconfig b/configs/imx6dl_mamoj_defconfig index 3293a6d5d6..4f9d89b532 100644 --- a/configs/imx6dl_mamoj_defconfig +++ b/configs/imx6dl_mamoj_defconfig @@ -31,6 +31,7 @@ CONFIG_FASTBOOT_FLASH_MMC_DEV=2 CONFIG_SYS_I2C_MXC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/imx6qdl_icore_rqs_defconfig b/configs/imx6qdl_icore_rqs_defconfig index d174c21834..0099717ee1 100644 --- a/configs/imx6qdl_icore_rqs_defconfig +++ b/configs/imx6qdl_icore_rqs_defconfig @@ -41,6 +41,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_SYS_I2C_MXC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/marsboard_defconfig b/configs/marsboard_defconfig index 1c117c38fa..2645a969cf 100644 --- a/configs/marsboard_defconfig +++ b/configs/marsboard_defconfig @@ -23,6 +23,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=4 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/mccmon6_nor_defconfig b/configs/mccmon6_nor_defconfig index 48cf122d80..3243075dd6 100644 --- a/configs/mccmon6_nor_defconfig +++ b/configs/mccmon6_nor_defconfig @@ -32,6 +32,7 @@ CONFIG_MTD_NOR_FLASH=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SPANSION=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/mccmon6_sd_defconfig b/configs/mccmon6_sd_defconfig index 13bba555d3..5f7c3523d1 100644 --- a/configs/mccmon6_sd_defconfig +++ b/configs/mccmon6_sd_defconfig @@ -33,6 +33,7 @@ CONFIG_MTD_NOR_FLASH=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SPANSION=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/mx25pdk_defconfig b/configs/mx25pdk_defconfig index a93ecf291a..376cb2ec84 100644 --- a/configs/mx25pdk_defconfig +++ b/configs/mx25pdk_defconfig @@ -19,6 +19,8 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_DOS_PARTITION=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_FS_EXT4=y diff --git a/configs/mx35pdk_defconfig b/configs/mx35pdk_defconfig index 75fabb7767..3138a28111 100644 --- a/configs/mx35pdk_defconfig +++ b/configs/mx35pdk_defconfig @@ -29,6 +29,8 @@ CONFIG_FSL_ESDHC=y CONFIG_MTD_NOR_FLASH=y CONFIG_NAND=y CONFIG_NAND_MXC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SMC911X=y diff --git a/configs/mx51evk_defconfig b/configs/mx51evk_defconfig index 443b8e4d12..0214d5a3ba 100644 --- a/configs/mx51evk_defconfig +++ b/configs/mx51evk_defconfig @@ -21,6 +21,8 @@ CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/mx53cx9020_defconfig b/configs/mx53cx9020_defconfig index c86a491b18..f2b2571279 100644 --- a/configs/mx53cx9020_defconfig +++ b/configs/mx53cx9020_defconfig @@ -24,6 +24,8 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_FPGA_ALTERA=y CONFIG_FPGA_CYCLON2=y CONFIG_FSL_ESDHC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PINCTRL=y diff --git a/configs/mx53evk_defconfig b/configs/mx53evk_defconfig index f1cae5d273..7ca10519ce 100644 --- a/configs/mx53evk_defconfig +++ b/configs/mx53evk_defconfig @@ -13,6 +13,8 @@ CONFIG_CMD_PING=y CONFIG_CMD_DATE=y CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FSL_ESDHC=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/mx53loco_defconfig b/configs/mx53loco_defconfig index 8e1b852d01..ad68f26bf7 100644 --- a/configs/mx53loco_defconfig +++ b/configs/mx53loco_defconfig @@ -23,6 +23,8 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y diff --git a/configs/mx53ppd_defconfig b/configs/mx53ppd_defconfig index b254ae6cd7..dc254a7d62 100644 --- a/configs/mx53ppd_defconfig +++ b/configs/mx53ppd_defconfig @@ -28,6 +28,8 @@ CONFIG_BOOTCOUNT_EXT=y CONFIG_SYS_BOOTCOUNT_EXT_DEVPART="0:5" CONFIG_SYS_BOOTCOUNT_ADDR=0x7000A000 CONFIG_FSL_ESDHC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_RTC_S35392A=y diff --git a/configs/mx53smd_defconfig b/configs/mx53smd_defconfig index 39c011c7b2..48151c3bdb 100644 --- a/configs/mx53smd_defconfig +++ b/configs/mx53smd_defconfig @@ -14,6 +14,8 @@ CONFIG_CMD_PING=y CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y +CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=31 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_OF_LIBFDT=y diff --git a/configs/mx6sabreauto_defconfig b/configs/mx6sabreauto_defconfig index 08a3edca24..8d3ae8dcc2 100644 --- a/configs/mx6sabreauto_defconfig +++ b/configs/mx6sabreauto_defconfig @@ -48,6 +48,7 @@ CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/mx6sabresd_defconfig b/configs/mx6sabresd_defconfig index ef9d266cfd..b41bb469fe 100644 --- a/configs/mx6sabresd_defconfig +++ b/configs/mx6sabresd_defconfig @@ -56,6 +56,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y diff --git a/configs/mx6sxsabresd_defconfig b/configs/mx6sxsabresd_defconfig index fbb2d09f0b..59135f12e0 100644 --- a/configs/mx6sxsabresd_defconfig +++ b/configs/mx6sxsabresd_defconfig @@ -39,6 +39,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y diff --git a/configs/mx6sxsabresd_spl_defconfig b/configs/mx6sxsabresd_spl_defconfig index 84fce44542..49db63cfc7 100644 --- a/configs/mx6sxsabresd_spl_defconfig +++ b/configs/mx6sxsabresd_spl_defconfig @@ -47,6 +47,7 @@ CONFIG_DM_MMC=y CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y diff --git a/configs/mx6ul_14x14_evk_defconfig b/configs/mx6ul_14x14_evk_defconfig index 68b2c41105..eedc26ca4a 100644 --- a/configs/mx6ul_14x14_evk_defconfig +++ b/configs/mx6ul_14x14_evk_defconfig @@ -41,6 +41,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/mx6ul_9x9_evk_defconfig b/configs/mx6ul_9x9_evk_defconfig index 84d4c63871..0c76bc3d71 100644 --- a/configs/mx6ul_9x9_evk_defconfig +++ b/configs/mx6ul_9x9_evk_defconfig @@ -41,6 +41,7 @@ CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_BAR=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/nitrogen6dl2g_defconfig b/configs/nitrogen6dl2g_defconfig index 42bfd007bd..51157e7b55 100644 --- a/configs/nitrogen6dl2g_defconfig +++ b/configs/nitrogen6dl2g_defconfig @@ -37,6 +37,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/nitrogen6dl_defconfig b/configs/nitrogen6dl_defconfig index 27fe342b57..cb8627bf11 100644 --- a/configs/nitrogen6dl_defconfig +++ b/configs/nitrogen6dl_defconfig @@ -37,6 +37,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/nitrogen6q2g_defconfig b/configs/nitrogen6q2g_defconfig index 87276fe9c5..21db858859 100644 --- a/configs/nitrogen6q2g_defconfig +++ b/configs/nitrogen6q2g_defconfig @@ -39,6 +39,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/nitrogen6q_defconfig b/configs/nitrogen6q_defconfig index 9cdcdd61d7..be711d54dc 100644 --- a/configs/nitrogen6q_defconfig +++ b/configs/nitrogen6q_defconfig @@ -39,6 +39,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/nitrogen6s1g_defconfig b/configs/nitrogen6s1g_defconfig index 47775e7a7a..63f3d4ee7d 100644 --- a/configs/nitrogen6s1g_defconfig +++ b/configs/nitrogen6s1g_defconfig @@ -37,6 +37,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/nitrogen6s_defconfig b/configs/nitrogen6s_defconfig index 20d5c0240e..b835c6a306 100644 --- a/configs/nitrogen6s_defconfig +++ b/configs/nitrogen6s_defconfig @@ -37,6 +37,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/novena_defconfig b/configs/novena_defconfig index 5a67e133a9..59ad72ca80 100644 --- a/configs/novena_defconfig +++ b/configs/novena_defconfig @@ -40,6 +40,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=7 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/opos6uldev_defconfig b/configs/opos6uldev_defconfig index 523ab39a3d..8fb6171683 100644 --- a/configs/opos6uldev_defconfig +++ b/configs/opos6uldev_defconfig @@ -67,6 +67,7 @@ CONFIG_SYS_I2C_MXC=y CONFIG_PWRSEQ=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/ot1200_defconfig b/configs/ot1200_defconfig index 86d4fafab5..97b2721f46 100644 --- a/configs/ot1200_defconfig +++ b/configs/ot1200_defconfig @@ -35,6 +35,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_SST=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=5 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/ot1200_spl_defconfig b/configs/ot1200_spl_defconfig index 136ade3d7d..fa8b53d4bc 100644 --- a/configs/ot1200_spl_defconfig +++ b/configs/ot1200_spl_defconfig @@ -44,6 +44,7 @@ CONFIG_SPI_FLASH_STMICRO=y CONFIG_SPI_FLASH_SST=y CONFIG_SPI_FLASH_WINBOND=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/pcm058_defconfig b/configs/pcm058_defconfig index 8b3232f685..bed4b877b1 100644 --- a/configs/pcm058_defconfig +++ b/configs/pcm058_defconfig @@ -46,6 +46,7 @@ CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/pfla02_defconfig b/configs/pfla02_defconfig index f78c8acced..0dcf15f08e 100644 --- a/configs/pfla02_defconfig +++ b/configs/pfla02_defconfig @@ -45,6 +45,7 @@ CONFIG_NAND_MXS=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/pico-imx6ul_defconfig b/configs/pico-imx6ul_defconfig index 1f6b9503e7..13414f4215 100644 --- a/configs/pico-imx6ul_defconfig +++ b/configs/pico-imx6ul_defconfig @@ -32,6 +32,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_DFU_MMC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/pico-imx7d_defconfig b/configs/pico-imx7d_defconfig index c5a74ebb93..1471e6779c 100644 --- a/configs/pico-imx7d_defconfig +++ b/configs/pico-imx7d_defconfig @@ -25,6 +25,7 @@ CONFIG_CMD_FAT=y CONFIG_CMD_FS_GENERIC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y diff --git a/configs/platinum_titanium_defconfig b/configs/platinum_titanium_defconfig index 695b883d81..edc2d4dfbb 100644 --- a/configs/platinum_titanium_defconfig +++ b/configs/platinum_titanium_defconfig @@ -46,6 +46,7 @@ CONFIG_FSL_ESDHC=y CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=4 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/riotboard_defconfig b/configs/riotboard_defconfig index aab23af94b..94c29b2233 100644 --- a/configs/riotboard_defconfig +++ b/configs/riotboard_defconfig @@ -23,6 +23,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_SST=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=4 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/secomx6quq7_defconfig b/configs/secomx6quq7_defconfig index 81b2a6a5a1..d810a3a1b4 100644 --- a/configs/secomx6quq7_defconfig +++ b/configs/secomx6quq7_defconfig @@ -26,6 +26,7 @@ CONFIG_CMD_FS_GENERIC=y CONFIG_ENV_IS_IN_MMC=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/sksimx6_defconfig b/configs/sksimx6_defconfig index 605221d477..be5f318f54 100644 --- a/configs/sksimx6_defconfig +++ b/configs/sksimx6_defconfig @@ -32,6 +32,7 @@ CONFIG_ENV_IS_IN_MMC=y CONFIG_DM=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_PHY_MICREL_KSZ8XXX=y diff --git a/configs/tbs2910_defconfig b/configs/tbs2910_defconfig index 269cc39516..575c4d10a2 100644 --- a/configs/tbs2910_defconfig +++ b/configs/tbs2910_defconfig @@ -40,6 +40,7 @@ CONFIG_DM=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=4 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y diff --git a/configs/titanium_defconfig b/configs/titanium_defconfig index d7dd805459..06c6f23f09 100644 --- a/configs/titanium_defconfig +++ b/configs/titanium_defconfig @@ -34,6 +34,7 @@ CONFIG_FSL_ESDHC=y CONFIG_NAND=y CONFIG_NAND_MXS=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=4 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/tqma6dl_mba6_mmc_defconfig b/configs/tqma6dl_mba6_mmc_defconfig index a94b98bafa..a83dbaff8e 100644 --- a/configs/tqma6dl_mba6_mmc_defconfig +++ b/configs/tqma6dl_mba6_mmc_defconfig @@ -34,6 +34,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/tqma6dl_mba6_spi_defconfig b/configs/tqma6dl_mba6_spi_defconfig index a393f71b63..969349c0b7 100644 --- a/configs/tqma6dl_mba6_spi_defconfig +++ b/configs/tqma6dl_mba6_spi_defconfig @@ -35,6 +35,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/tqma6q_mba6_mmc_defconfig b/configs/tqma6q_mba6_mmc_defconfig index 6cb680f55d..0358033a98 100644 --- a/configs/tqma6q_mba6_mmc_defconfig +++ b/configs/tqma6q_mba6_mmc_defconfig @@ -33,6 +33,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/tqma6q_mba6_spi_defconfig b/configs/tqma6q_mba6_spi_defconfig index 297f320ed9..eeba0b145c 100644 --- a/configs/tqma6q_mba6_spi_defconfig +++ b/configs/tqma6q_mba6_spi_defconfig @@ -34,6 +34,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/tqma6s_mba6_mmc_defconfig b/configs/tqma6s_mba6_mmc_defconfig index 6c501cb8dc..8b4fad98c7 100644 --- a/configs/tqma6s_mba6_mmc_defconfig +++ b/configs/tqma6s_mba6_mmc_defconfig @@ -34,6 +34,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/tqma6s_mba6_spi_defconfig b/configs/tqma6s_mba6_spi_defconfig index 36cae10e5f..4ff90c423a 100644 --- a/configs/tqma6s_mba6_spi_defconfig +++ b/configs/tqma6s_mba6_spi_defconfig @@ -35,6 +35,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=3 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/tqma6s_wru4_mmc_defconfig b/configs/tqma6s_wru4_mmc_defconfig index 2d78ddd59b..5e2515db37 100644 --- a/configs/tqma6s_wru4_mmc_defconfig +++ b/configs/tqma6s_wru4_mmc_defconfig @@ -58,6 +58,7 @@ CONFIG_LED_STATUS_CMD=y CONFIG_PCA9551_LED=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y diff --git a/configs/udoo_defconfig b/configs/udoo_defconfig index fe60b1b23f..c93113c473 100644 --- a/configs/udoo_defconfig +++ b/configs/udoo_defconfig @@ -36,6 +36,7 @@ CONFIG_DM=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=6 CONFIG_PHY_MICREL=y CONFIG_PHY_MICREL_KSZ90X1=y CONFIG_FEC_MXC=y diff --git a/configs/wandboard_defconfig b/configs/wandboard_defconfig index 701de3653e..2111b43d84 100644 --- a/configs/wandboard_defconfig +++ b/configs/wandboard_defconfig @@ -36,6 +36,7 @@ CONFIG_DM=y CONFIG_DWC_AHSATA=y CONFIG_FSL_ESDHC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_DM_THERMAL=y diff --git a/configs/woodburn_defconfig b/configs/woodburn_defconfig index f0382aa0a2..cb07b39990 100644 --- a/configs/woodburn_defconfig +++ b/configs/woodburn_defconfig @@ -31,6 +31,7 @@ CONFIG_MTD_NOR_FLASH=y CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/woodburn_sd_defconfig b/configs/woodburn_sd_defconfig index 24fcd12225..20421a561d 100644 --- a/configs/woodburn_sd_defconfig +++ b/configs/woodburn_sd_defconfig @@ -42,6 +42,7 @@ CONFIG_MTD_NOR_FLASH=y CONFIG_NAND=y CONFIG_NAND_MXC=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=1 CONFIG_PHY_MICREL=y CONFIG_FEC_MXC=y CONFIG_MII=y diff --git a/configs/zc5202_defconfig b/configs/zc5202_defconfig index 1dc4312cb4..5339f8c32a 100644 --- a/configs/zc5202_defconfig +++ b/configs/zc5202_defconfig @@ -34,6 +34,7 @@ CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y +CONFIG_PHYLIB=y CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_PCI=y diff --git a/configs/zc5601_defconfig b/configs/zc5601_defconfig index d43281248b..e3773231e8 100644 --- a/configs/zc5601_defconfig +++ b/configs/zc5601_defconfig @@ -34,6 +34,7 @@ CONFIG_FSL_ESDHC=y CONFIG_SPI_FLASH=y CONFIG_SPI_FLASH_STMICRO=y CONFIG_PHYLIB=y +CONFIG_PHY_ADDR=16 CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_SPI=y diff --git a/configs/zmx25_defconfig b/configs/zmx25_defconfig index 690a912f97..a43decaf0b 100644 --- a/configs/zmx25_defconfig +++ b/configs/zmx25_defconfig @@ -22,6 +22,7 @@ CONFIG_CMD_FAT=y CONFIG_ENV_IS_IN_FLASH=y # CONFIG_MMC is not set CONFIG_MTD_NOR_FLASH=y +CONFIG_PHYLIB=y CONFIG_FEC_MXC=y CONFIG_MII=y CONFIG_USB=y diff --git a/doc/README.fec_mxc b/doc/README.fec_mxc index 9ca6ac2fb5..26a710d0cd 100644 --- a/doc/README.fec_mxc +++ b/doc/README.fec_mxc @@ -23,7 +23,7 @@ CONFIG_PHYLIB CONFIG_FEC_MXC_NO_ANEG Relevant only if PHYLIB not used. Skips auto-negotiation restart.
-CONFIG_FEC_MXC_PHYADDR +CONFIG_PHY_ADDR Optional, selects the exact phy address that should be connected and function fecmxc_initialize will try to initialize it.
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 49bb926efa..11182f27d8 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -51,7 +51,11 @@ DECLARE_GLOBAL_DATA_PTR; #endif
#if defined(CONFIG_TARGET_APX4DEVKIT) || defined(CONFIG_TARGET_MX6QARM2) -# define CONFIG_FEC_MXC_PHY_ADDR 0 +# define CONFIG_PHY_ADDR 0 +#endif + +#ifdef CONFIG_TARGET_SC_SPS_1 +# undef CONFIG_PHY_ADDR #endif
/* @@ -1184,11 +1188,10 @@ int fecmxc_initialize_multi(bd_t *bd, int dev_id, int phy_id, uint32_t addr) return ret; }
-#ifdef CONFIG_FEC_MXC_PHYADDR +#ifdef CONFIG_PHY_ADDR int fecmxc_initialize(bd_t *bd) { - return fecmxc_initialize_multi(bd, -1, CONFIG_FEC_MXC_PHYADDR, - IMX_FEC_BASE); + return fecmxc_initialize_multi(bd, -1, CONFIG_PHY_ADDR, IMX_FEC_BASE); } #endif
@@ -1234,8 +1237,8 @@ static int fec_phy_init(struct fec_priv *priv, struct udevice *dev) struct phy_device *phydev; int mask = 0xffffffff;
-#ifdef CONFIG_FEC_MXC_PHYADDR - mask = 1 << CONFIG_FEC_MXC_PHYADDR; +#ifdef CONFIG_PHY_ADDR + mask = 1 << CONFIG_PHY_ADDR; #endif
phydev = phy_find_by_mask(priv->bus, mask, priv->xcv_type); diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index f5821dfed9..35477761ec 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig @@ -16,6 +16,7 @@ if PHYLIB config PHY_ADDR_ENABLE bool "Limit phy address" default y if ARCH_SUNXI + default y if FEC_MXC help Select this if you want to control which phy address is used
diff --git a/include/configs/advantech_dms-ba16.h b/include/configs/advantech_dms-ba16.h index ab0b3b90d9..1972a3a804 100644 --- a/include/configs/advantech_dms-ba16.h +++ b/include/configs/advantech_dms-ba16.h @@ -58,7 +58,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 4 #define CONFIG_PHY_ATHEROS
/* Serial Flash */ diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h index bb15b23afe..ff6e144ff2 100644 --- a/include/configs/apalis_imx6.h +++ b/include/configs/apalis_imx6.h @@ -71,7 +71,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 6 #define CONFIG_IP_DEFRAG #define CONFIG_TFTP_BLOCKSIZE 4096 #define CONFIG_TFTP_TSIZE diff --git a/include/configs/apf27.h b/include/configs/apf27.h index 5919e30e2e..5b33ef844d 100644 --- a/include/configs/apf27.h +++ b/include/configs/apf27.h @@ -187,11 +187,6 @@ #define CONFIG_MTD_DEVICE #define CONFIG_MTD_PARTITIONS
-/* - * Ethernet (on SOC imx FEC) - */ -#define CONFIG_FEC_MXC_PHYADDR 0x1f - /* * FPGA */ diff --git a/include/configs/aristainetos-common.h b/include/configs/aristainetos-common.h index 933b91b7e7..70b80563b7 100644 --- a/include/configs/aristainetos-common.h +++ b/include/configs/aristainetos-common.h @@ -27,7 +27,6 @@
#define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_SPI_FLASH_MTD #define CONFIG_SF_DEFAULT_SPEED 20000000 diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h index d3e08e16ec..3055337a81 100644 --- a/include/configs/cgtqmx6eval.h +++ b/include/configs/cgtqmx6eval.h @@ -85,7 +85,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 6 #define CONFIG_PHY_ATHEROS
/* Command definition */ diff --git a/include/configs/cl-som-imx7.h b/include/configs/cl-som-imx7.h index ed84124dc3..242c5dc712 100644 --- a/include/configs/cl-som-imx7.h +++ b/include/configs/cl-som-imx7.h @@ -26,9 +26,7 @@ /* Network */ #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0
-#define CONFIG_PHYLIB #define CONFIG_PHY_ATHEROS /* ENET1 */ #define IMX_FEC_BASE ENET_IPS_BASE_ADDR diff --git a/include/configs/cm_fx6.h b/include/configs/cm_fx6.h index 89bd25e4f0..1f591e4aa8 100644 --- a/include/configs/cm_fx6.h +++ b/include/configs/cm_fx6.h @@ -177,7 +177,6 @@ #endif
/* Ethernet */ -#define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_PHY_ATHEROS diff --git a/include/configs/colibri_imx6.h b/include/configs/colibri_imx6.h index 5ad0c07694..a723f3b9b8 100644 --- a/include/configs/colibri_imx6.h +++ b/include/configs/colibri_imx6.h @@ -59,7 +59,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 1 #define CONFIG_IP_DEFRAG #define CONFIG_TFTP_BLOCKSIZE 16352 #define CONFIG_TFTP_TSIZE diff --git a/include/configs/colibri_imx7.h b/include/configs/colibri_imx7.h index c35ea3598e..b6ba99a39a 100644 --- a/include/configs/colibri_imx7.h +++ b/include/configs/colibri_imx7.h @@ -22,7 +22,6 @@ /* Network */ #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_IP_DEFRAG #define CONFIG_TFTP_BLOCKSIZE 16352 diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h index 49ea4f27d4..7d89a4c6d2 100644 --- a/include/configs/colibri_vf.h +++ b/include/configs/colibri_vf.h @@ -51,7 +51,6 @@
#define IMX_FEC_BASE ENET1_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_IPADDR 192.168.10.2 #define CONFIG_NETMASK 255.255.255.0 diff --git a/include/configs/dh_imx6.h b/include/configs/dh_imx6.h index d532e09494..ee38adb61e 100644 --- a/include/configs/dh_imx6.h +++ b/include/configs/dh_imx6.h @@ -45,7 +45,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_ARP_TIMEOUT 200UL
/* Fuses */ diff --git a/include/configs/display5.h b/include/configs/display5.h index c08a18039e..93b405079c 100644 --- a/include/configs/display5.h +++ b/include/configs/display5.h @@ -85,7 +85,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0 #endif
/* MMC Configs */ diff --git a/include/configs/embestmx6boards.h b/include/configs/embestmx6boards.h index 43ed5b862a..f40986cc6e 100644 --- a/include/configs/embestmx6boards.h +++ b/include/configs/embestmx6boards.h @@ -44,7 +44,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 4
#define CONFIG_PHY_ATHEROS
diff --git a/include/configs/flea3.h b/include/configs/flea3.h index 3f4a514d10..afd66c0544 100644 --- a/include/configs/flea3.h +++ b/include/configs/flea3.h @@ -68,7 +68,6 @@ * Ethernet on SOC (FEC) */ #define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1
#define CONFIG_ARP_TIMEOUT 200UL
diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h index 4dfa3575a5..08f9d3a9f0 100644 --- a/include/configs/ge_bx50v3.h +++ b/include/configs/ge_bx50v3.h @@ -67,7 +67,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 4 #define CONFIG_PHY_ATHEROS #endif
diff --git a/include/configs/gw_ventana.h b/include/configs/gw_ventana.h index 6df5d154f4..8b8878ad46 100644 --- a/include/configs/gw_ventana.h +++ b/include/configs/gw_ventana.h @@ -125,7 +125,6 @@ /* Ethernet support */ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII -#define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_ARP_TIMEOUT 200UL
/* USB Configs */ diff --git a/include/configs/imx6-engicam.h b/include/configs/imx6-engicam.h index 85f2991ab0..667cb7dbd5 100644 --- a/include/configs/imx6-engicam.h +++ b/include/configs/imx6-engicam.h @@ -157,15 +157,6 @@ # define CONFIG_MTD_PARTITIONS #endif
-/* Ethernet */ -#ifdef CONFIG_FEC_MXC -# ifdef CONFIG_TARGET_MX6Q_ICORE_RQS -# define CONFIG_FEC_MXC_PHYADDR 3 -# else -# define CONFIG_FEC_MXC_PHYADDR 0 -# endif -#endif - /* Falcon Mode */ #ifdef CONFIG_SPL_OS_BOOT # define CONFIG_SPL_FS_LOAD_ARGS_NAME "args" diff --git a/include/configs/imx6_logic.h b/include/configs/imx6_logic.h index e22d76c4ef..f345e74697 100644 --- a/include/configs/imx6_logic.h +++ b/include/configs/imx6_logic.h @@ -23,7 +23,6 @@
/* Ethernet Configs */ #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_EXTRA_ENV_SETTINGS \ "script=boot.scr\0" \ diff --git a/include/configs/imx6dl-mamoj.h b/include/configs/imx6dl-mamoj.h index 7f7d2e09bd..529e1f2cb9 100644 --- a/include/configs/imx6dl-mamoj.h +++ b/include/configs/imx6dl-mamoj.h @@ -53,9 +53,6 @@ #define CONFIG_SYS_MMC_ENV_DEV 2 #define CONFIG_SUPPORT_EMMC_BOOT
-/* Ethernet */ -#define CONFIG_FEC_MXC_PHYADDR 1 - /* USB */ #define CONFIG_EHCI_HCD_INIT_AFTER_RESET #define CONFIG_MXC_USB_PORTSC (PORT_PTS_UTMI | PORT_PTS_PTW) diff --git a/include/configs/kp_imx6q_tpc.h b/include/configs/kp_imx6q_tpc.h index 915ae8b7ce..a32593b746 100644 --- a/include/configs/kp_imx6q_tpc.h +++ b/include/configs/kp_imx6q_tpc.h @@ -28,7 +28,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_ARP_TIMEOUT 200UL
/* Fuses */ diff --git a/include/configs/liteboard.h b/include/configs/liteboard.h index f136496e27..7980a0f392 100644 --- a/include/configs/liteboard.h +++ b/include/configs/liteboard.h @@ -143,7 +143,6 @@ #define CONFIG_FEC_ENET_DEV 0
#define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x0 #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC"
diff --git a/include/configs/mccmon6.h b/include/configs/mccmon6.h index ab787b2f15..6382c0dbae 100644 --- a/include/configs/mccmon6.h +++ b/include/configs/mccmon6.h @@ -89,7 +89,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 1
#define CONFIG_EXTRA_ENV_SETTINGS \ "console=ttymxc0,115200 quiet\0" \ diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h index 81079e040f..27e1ebe37d 100644 --- a/include/configs/mx25pdk.h +++ b/include/configs/mx25pdk.h @@ -60,7 +60,6 @@ #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
/* Ethernet */ -#define CONFIG_FEC_MXC_PHYADDR 0x1f #define CONFIG_ENV_OVERWRITE
/* ESDHC driver */ diff --git a/include/configs/mx35pdk.h b/include/configs/mx35pdk.h index d4243b48e8..ca81262a75 100644 --- a/include/configs/mx35pdk.h +++ b/include/configs/mx35pdk.h @@ -84,7 +84,6 @@ * Ethernet on SOC (FEC) */ #define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1F
#define CONFIG_ARP_TIMEOUT 200UL
diff --git a/include/configs/mx51evk.h b/include/configs/mx51evk.h index ea3d80d25c..ff8db72954 100644 --- a/include/configs/mx51evk.h +++ b/include/configs/mx51evk.h @@ -56,7 +56,6 @@ * Eth Configs */ #define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1F
/* USB Configs */ #define CONFIG_USB_EHCI_MX5 diff --git a/include/configs/mx53cx9020.h b/include/configs/mx53cx9020.h index 4a59a0485f..0b73786991 100644 --- a/include/configs/mx53cx9020.h +++ b/include/configs/mx53cx9020.h @@ -38,7 +38,6 @@ /* Eth Configs */ #define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_ETHPRIME "FEC0" -#define CONFIG_FEC_MXC_PHYADDR 0x1F
/* USB Configs */ #define CONFIG_USB_EHCI_MX5 diff --git a/include/configs/mx53evk.h b/include/configs/mx53evk.h index c62b31fcf9..7d8cd4894a 100644 --- a/include/configs/mx53evk.h +++ b/include/configs/mx53evk.h @@ -47,7 +47,6 @@ /* Eth Configs */
#define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1F
/* allow to overwrite serial and ethaddr */ #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/mx53loco.h b/include/configs/mx53loco.h index 6b5e12d5c7..354f7e7d77 100644 --- a/include/configs/mx53loco.h +++ b/include/configs/mx53loco.h @@ -34,7 +34,6 @@ /* Eth Configs */
#define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1F
/* USB Configs */ #define CONFIG_USB_EHCI_MX5 diff --git a/include/configs/mx53ppd.h b/include/configs/mx53ppd.h index d28cfa8744..5d7f86a7f5 100644 --- a/include/configs/mx53ppd.h +++ b/include/configs/mx53ppd.h @@ -40,7 +40,6 @@ /* Eth Configs */
#define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1F
/* USB Configs */ #define CONFIG_USB_EHCI_MX5 diff --git a/include/configs/mx53smd.h b/include/configs/mx53smd.h index 0813ca1733..31164a34d4 100644 --- a/include/configs/mx53smd.h +++ b/include/configs/mx53smd.h @@ -40,7 +40,6 @@ #define CONFIG_HAS_ETH1
#define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1F
/* allow to overwrite serial and ethaddr */ #define CONFIG_ENV_OVERWRITE diff --git a/include/configs/mx6cuboxi.h b/include/configs/mx6cuboxi.h index 7de4df4b2b..8e61b15997 100644 --- a/include/configs/mx6cuboxi.h +++ b/include/configs/mx6cuboxi.h @@ -30,7 +30,6 @@ /* Ethernet Configuration */ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII -#define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_PHY_ATHEROS
/* Framebuffer */ diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h index 86f192fb2d..7efba6961d 100644 --- a/include/configs/mx6sabre_common.h +++ b/include/configs/mx6sabre_common.h @@ -23,7 +23,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 1
#define CONFIG_PHY_ATHEROS
diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h index f8a865d06e..a24b11acc4 100644 --- a/include/configs/mx6slevk.h +++ b/include/configs/mx6slevk.h @@ -34,7 +34,6 @@
#define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_PHY_SMSC
diff --git a/include/configs/mx6sxsabreauto.h b/include/configs/mx6sxsabreauto.h index e5473570a9..c59bb3f803 100644 --- a/include/configs/mx6sxsabreauto.h +++ b/include/configs/mx6sxsabreauto.h @@ -127,7 +127,6 @@
/* Network */ #define IMX_FEC_BASE ENET2_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x0
#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/mx6sxsabresd.h b/include/configs/mx6sxsabresd.h index 095c0a8b56..cae41caa26 100644 --- a/include/configs/mx6sxsabresd.h +++ b/include/configs/mx6sxsabresd.h @@ -151,7 +151,6 @@
/* Network */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1
#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/mx6ul_14x14_evk.h b/include/configs/mx6ul_14x14_evk.h index 90f28a95f5..a87ce291b5 100644 --- a/include/configs/mx6ul_14x14_evk.h +++ b/include/configs/mx6ul_14x14_evk.h @@ -188,11 +188,9 @@
#if (CONFIG_FEC_ENET_DEV == 0) #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x2 #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #elif (CONFIG_FEC_ENET_DEV == 1) #define IMX_FEC_BASE ENET2_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1 #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #endif #define CONFIG_ETHPRIME "FEC" diff --git a/include/configs/mx7dsabresd.h b/include/configs/mx7dsabresd.h index 384836746b..afda45861c 100644 --- a/include/configs/mx7dsabresd.h +++ b/include/configs/mx7dsabresd.h @@ -21,7 +21,6 @@ /* Network */ #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_PHY_BROADCOM /* ENET1 */ diff --git a/include/configs/nitrogen6x.h b/include/configs/nitrogen6x.h index c6795d7f03..87c1f8b990 100644 --- a/include/configs/nitrogen6x.h +++ b/include/configs/nitrogen6x.h @@ -56,7 +56,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 6
/* USB Configs */ #define CONFIG_USB_MAX_CONTROLLER_COUNT 2 diff --git a/include/configs/novena.h b/include/configs/novena.h index fe4e92598f..75e3fa0716 100644 --- a/include/configs/novena.h +++ b/include/configs/novena.h @@ -64,7 +64,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0x7 #define CONFIG_ARP_TIMEOUT 200UL #endif
diff --git a/include/configs/opos6uldev.h b/include/configs/opos6uldev.h index 87a00459f9..59bc102e42 100644 --- a/include/configs/opos6uldev.h +++ b/include/configs/opos6uldev.h @@ -48,7 +48,6 @@ /* Ethernet */ #ifdef CONFIG_FEC_MXC #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1 #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #endif diff --git a/include/configs/ot1200.h b/include/configs/ot1200.h index db03f38fdd..3242bddaf8 100644 --- a/include/configs/ot1200.h +++ b/include/configs/ot1200.h @@ -71,7 +71,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_MII100 #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0x5 #define CONFIG_PHY_SMSC
#ifndef CONFIG_SPL diff --git a/include/configs/pcm052.h b/include/configs/pcm052.h index 922ed12867..4daf3ebaaa 100644 --- a/include/configs/pcm052.h +++ b/include/configs/pcm052.h @@ -43,7 +43,6 @@
#define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII -#define CONFIG_FEC_MXC_PHYADDR 0
/* QSPI Configs*/
diff --git a/include/configs/pcm058.h b/include/configs/pcm058.h index 4e55da4b3b..58b2a6ad21 100644 --- a/include/configs/pcm058.h +++ b/include/configs/pcm058.h @@ -34,7 +34,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 3
/* SPI Flash */ #define CONFIG_SF_DEFAULT_BUS 0 diff --git a/include/configs/pfla02.h b/include/configs/pfla02.h index fe3702c4d3..4f969a6cd9 100644 --- a/include/configs/pfla02.h +++ b/include/configs/pfla02.h @@ -32,7 +32,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 3
/* SPI Flash */ #define CONFIG_SF_DEFAULT_BUS 2 diff --git a/include/configs/pico-imx6ul.h b/include/configs/pico-imx6ul.h index 34660a77dc..7ea006cccc 100644 --- a/include/configs/pico-imx6ul.h +++ b/include/configs/pico-imx6ul.h @@ -16,7 +16,6 @@ /* Network support */
#define IMX_FEC_BASE ENET2_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1 #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII
/* Size of malloc() pool */ diff --git a/include/configs/pico-imx7d.h b/include/configs/pico-imx7d.h index c568b9ca5f..5569776909 100644 --- a/include/configs/pico-imx7d.h +++ b/include/configs/pico-imx7d.h @@ -20,7 +20,6 @@ /* Network */ #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 1
#define CONFIG_PHY_ATHEROS
diff --git a/include/configs/platinum_picon.h b/include/configs/platinum_picon.h index c8b88995c7..4e24790799 100644 --- a/include/configs/platinum_picon.h +++ b/include/configs/platinum_picon.h @@ -13,7 +13,6 @@ #include <configs/platinum.h>
#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII -#define CONFIG_FEC_MXC_PHYADDR 0
#define CONFIG_HOSTNAME "picon"
diff --git a/include/configs/platinum_titanium.h b/include/configs/platinum_titanium.h index afbfc94ca4..d57aabed3b 100644 --- a/include/configs/platinum_titanium.h +++ b/include/configs/platinum_titanium.h @@ -16,7 +16,6 @@ #include <configs/platinum.h>
#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII -#define CONFIG_FEC_MXC_PHYADDR 4
#define CONFIG_PHY_RESET_DELAY 1000
diff --git a/include/configs/secomx6quq7.h b/include/configs/secomx6quq7.h index 1804391fbe..95ba2ed163 100644 --- a/include/configs/secomx6quq7.h +++ b/include/configs/secomx6quq7.h @@ -29,7 +29,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 6
#define CONFIG_EXTRA_ENV_SETTINGS \ "netdev=eth0\0" \ diff --git a/include/configs/sksimx6.h b/include/configs/sksimx6.h index 58dfab08e6..c222090850 100644 --- a/include/configs/sksimx6.h +++ b/include/configs/sksimx6.h @@ -24,7 +24,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0x01
#define CONFIG_PHY_MICREL_KSZ9021
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index 59802766d8..df8cbd962a 100644 --- a/include/configs/tbs2910.h +++ b/include/configs/tbs2910.h @@ -52,7 +52,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 4 #define CONFIG_PHY_ATHEROS
/* Framebuffer */ diff --git a/include/configs/titanium.h b/include/configs/titanium.h index 1aa431e65a..2f6e2c71ad 100644 --- a/include/configs/titanium.h +++ b/include/configs/titanium.h @@ -41,7 +41,6 @@
#define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII -#define CONFIG_FEC_MXC_PHYADDR 4
/* USB Configs */ #define CONFIG_MXC_USB_PORT 1 diff --git a/include/configs/tqma6_mba6.h b/include/configs/tqma6_mba6.h index d459c98c06..896139ed51 100644 --- a/include/configs/tqma6_mba6.h +++ b/include/configs/tqma6_mba6.h @@ -12,8 +12,6 @@ #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC"
-#define CONFIG_FEC_MXC_PHYADDR 0x03 - #define CONFIG_MXC_UART_BASE UART2_BASE #define CONSOLE_DEV "ttymxc1"
diff --git a/include/configs/tqma6_wru4.h b/include/configs/tqma6_wru4.h index 1d793f2fe4..06607c22e9 100644 --- a/include/configs/tqma6_wru4.h +++ b/include/configs/tqma6_wru4.h @@ -9,7 +9,6 @@ /* Ethernet */ #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0x01 #define CONFIG_PHY_SMSC
/* UART */ diff --git a/include/configs/ts4800.h b/include/configs/ts4800.h index 11275ab2ea..995eec9dcc 100644 --- a/include/configs/ts4800.h +++ b/include/configs/ts4800.h @@ -59,7 +59,6 @@
#define IMX_FEC_BASE FEC_BASE_ADDR #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0
/* allow to overwrite serial and ethaddr */ #define CONFIG_ENV_OVERWRITE /* disable vendor parameters protection (serial#, ethaddr) */ diff --git a/include/configs/udoo.h b/include/configs/udoo.h index 145f0f03c7..fe368bf611 100644 --- a/include/configs/udoo.h +++ b/include/configs/udoo.h @@ -35,7 +35,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 6
#define CONFIG_SYS_MEMTEST_START 0x10000000 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 500 * SZ_1M) diff --git a/include/configs/udoo_neo.h b/include/configs/udoo_neo.h index e294b2c283..3586b144b5 100644 --- a/include/configs/udoo_neo.h +++ b/include/configs/udoo_neo.h @@ -97,7 +97,6 @@ /* Network */ #define CONFIG_FEC_ENET_DEV 0 #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x0
#define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC0" diff --git a/include/configs/vf610twr.h b/include/configs/vf610twr.h index 6d307611d4..72ddbdc496 100644 --- a/include/configs/vf610twr.h +++ b/include/configs/vf610twr.h @@ -46,7 +46,6 @@
#define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII -#define CONFIG_FEC_MXC_PHYADDR 0
/* QSPI Configs*/
diff --git a/include/configs/vining_2000.h b/include/configs/vining_2000.h index 5c9367ce9e..3b12f1ff1b 100644 --- a/include/configs/vining_2000.h +++ b/include/configs/vining_2000.h @@ -63,8 +63,6 @@
/* Network */ #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x0 - #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC"
diff --git a/include/configs/wandboard.h b/include/configs/wandboard.h index d685cacc57..b20d3747bc 100644 --- a/include/configs/wandboard.h +++ b/include/configs/wandboard.h @@ -59,7 +59,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 1 #define CONFIG_PHY_ATHEROS
/* Framebuffer */ diff --git a/include/configs/woodburn_common.h b/include/configs/woodburn_common.h index b36c890afb..797d111b79 100644 --- a/include/configs/woodburn_common.h +++ b/include/configs/woodburn_common.h @@ -77,7 +77,6 @@ * Ethernet on SOC (FEC) */ #define IMX_FEC_BASE FEC_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x1
#define CONFIG_DISCOVER_PHY
diff --git a/include/configs/xpress.h b/include/configs/xpress.h index 781955eeae..9fb59fb793 100644 --- a/include/configs/xpress.h +++ b/include/configs/xpress.h @@ -67,7 +67,6 @@
#define CONFIG_FEC_ENET_DEV 0 #define IMX_FEC_BASE ENET_BASE_ADDR -#define CONFIG_FEC_MXC_PHYADDR 0x0 #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RMII #define CONFIG_ETHPRIME "FEC" #define CONFIG_PHY_SMSC diff --git a/include/configs/zc5202.h b/include/configs/zc5202.h index 72ebe069ea..55fb7c1556 100644 --- a/include/configs/zc5202.h +++ b/include/configs/zc5202.h @@ -20,7 +20,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_MII100 #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0 #define CONFIG_MV88E6352_SWITCH
#define CONFIG_PCI_SCAN_SHOW diff --git a/include/configs/zc5601.h b/include/configs/zc5601.h index 4f376ba523..b6f00d6565 100644 --- a/include/configs/zc5601.h +++ b/include/configs/zc5601.h @@ -21,7 +21,6 @@ #define IMX_FEC_BASE ENET_BASE_ADDR #define CONFIG_FEC_XCV_TYPE PHY_INTERFACE_MODE_RGMII #define CONFIG_ETHPRIME "FEC" -#define CONFIG_FEC_MXC_PHYADDR 0x10 #define CONFIG_FEC_FIXED_SPEED 1000 /* No autoneg, fix Gb */
#endif /*__EL6Q_CONFIG_H */ diff --git a/include/configs/zmx25.h b/include/configs/zmx25.h index 1e5f099ea2..58393ce68e 100644 --- a/include/configs/zmx25.h +++ b/include/configs/zmx25.h @@ -40,11 +40,6 @@ #define CONFIG_MXC_UART #define CONFIG_MXC_UART_BASE UART2_BASE
-/* - * Ethernet - */ -#define CONFIG_FEC_MXC_PHYADDR 0x00 - /* * BOOTP options */ diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt index c63be7d4ce..62cd304385 100644 --- a/scripts/config_whitelist.txt +++ b/scripts/config_whitelist.txt @@ -603,7 +603,6 @@ CONFIG_FEATURE_SH_STANDALONE_SHELL CONFIG_FEC_ENET_DEV CONFIG_FEC_FIXED_SPEED CONFIG_FEC_MXC_25M_REF_CLK -CONFIG_FEC_MXC_PHYADDR CONFIG_FEC_MXC_SWAP_PACKET CONFIG_FEC_XCV_TYPE CONFIG_FEROCEON

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
- use PHY_ADDR_ENABLE and PHY_ADDR
- few boards are using FEC_MXC_PHYADDR without PHYLIB enable the same.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

Retrive priv via udevice using dev_get_priv, so just pass udevice pointer.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- drivers/net/fec_mxc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 11182f27d8..3ae62ff9d1 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1232,8 +1232,9 @@ static const struct eth_ops fecmxc_ops = { .read_rom_hwaddr = fecmxc_read_rom_hwaddr, };
-static int fec_phy_init(struct fec_priv *priv, struct udevice *dev) +static int fec_phy_init(struct udevice *dev) { + struct fec_priv *priv = dev_get_priv(dev); struct phy_device *phydev; int mask = 0xffffffff;
@@ -1292,7 +1293,7 @@ static int fecmxc_probe(struct udevice *dev)
priv->bus = bus; priv->xcv_type = pdata->phy_interface; - ret = fec_phy_init(priv, dev); + ret = fec_phy_init(dev); if (ret) goto err_phy;

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
Retrive priv via udevice using dev_get_priv, so just pass udevice pointer.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

Move enet initialization code in fec_enet function, no functional changes.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- drivers/net/fec_mxc.c | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 3ae62ff9d1..76a3bd84f0 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1254,11 +1254,8 @@ static int fec_phy_init(struct udevice *dev) return 0; }
-static int fecmxc_probe(struct udevice *dev) +static int fec_enet_init(struct fec_priv *priv) { - struct eth_pdata *pdata = dev_get_platdata(dev); - struct fec_priv *priv = dev_get_priv(dev); - struct mii_dev *bus = NULL; uint32_t start; int ret;
@@ -1280,6 +1277,24 @@ static int fecmxc_probe(struct udevice *dev)
fec_reg_setup(priv);
+ return 0; + +err_timeout: + fec_free_descs(priv); + return ret; +} + +static int fecmxc_probe(struct udevice *dev) +{ + struct eth_pdata *pdata = dev_get_platdata(dev); + struct fec_priv *priv = dev_get_priv(dev); + struct mii_dev *bus = NULL; + int ret; + + ret = fec_enet_init(priv); + if (ret) + return ret; + priv->dev_id = dev->seq; #ifdef CONFIG_FEC_MXC_MDIO_BASE bus = fec_get_miibus((ulong)CONFIG_FEC_MXC_MDIO_BASE, dev->seq); @@ -1303,7 +1318,6 @@ err_phy: mdio_unregister(bus); free(bus); err_mii: -err_timeout: fec_free_descs(priv); return ret; }

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
Move enet initialization code in fec_enet function, no functional changes.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

mdio initialization in dm code is assigning bus->priv with pointer to struct ethernet_regs which leads to improper mii. Add proper udevice to store mii_bus priv and reuse the same in mdio ops.
Also refactor mdio code, to make common ops for dm and non-dm.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- drivers/net/fec_mxc.c | 148 +++++++++++++++++++++++++----------------- 1 file changed, 87 insertions(+), 61 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 76a3bd84f0..a87f5b6848 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -91,11 +91,8 @@ static void swap_packet(uint32_t *packet, int length) #endif
/* MII-interface related functions */ -static int fec_mdio_read(struct ethernet_regs *eth, uint8_t phyaddr, - uint8_t regaddr) +static int _fec_mdio_read(struct ethernet_regs *eth, int addr, int reg) { - uint32_t reg; /* convenient holder for the PHY register */ - uint32_t phy; /* convenient holder for the PHY */ uint32_t start; int val;
@@ -104,11 +101,10 @@ static int fec_mdio_read(struct ethernet_regs *eth, uint8_t phyaddr, * programming the FEC's MII data register. */ writel(FEC_IEVENT_MII, ð->ievent); - reg = regaddr << FEC_MII_DATA_RA_SHIFT; - phy = phyaddr << FEC_MII_DATA_PA_SHIFT;
writel(FEC_MII_DATA_ST | FEC_MII_DATA_OP_RD | FEC_MII_DATA_TA | - phy | reg, ð->mii_data); + (addr << FEC_MII_DATA_PA_SHIFT) | (reg << FEC_MII_DATA_RA_SHIFT), + ð->mii_data);
/* wait for the related interrupt */ start = get_timer(0); @@ -124,8 +120,8 @@ static int fec_mdio_read(struct ethernet_regs *eth, uint8_t phyaddr,
/* it's now safe to read the PHY's register */ val = (unsigned short)readl(ð->mii_data); - debug("%s: phy: %02x reg:%02x val:%#x\n", __func__, phyaddr, - regaddr, val); + debug("%s: phy: %02x reg:%02x val:%#x\n", __func__, addr, + reg, val); return val; }
@@ -156,18 +152,14 @@ static void fec_mii_setspeed(struct ethernet_regs *eth) debug("%s: mii_speed %08x\n", __func__, readl(ð->mii_speed)); }
-static int fec_mdio_write(struct ethernet_regs *eth, uint8_t phyaddr, - uint8_t regaddr, uint16_t data) +static int _fec_mdio_write(struct ethernet_regs *eth, int addr, int reg, + u16 val) { - uint32_t reg; /* convenient holder for the PHY register */ - uint32_t phy; /* convenient holder for the PHY */ uint32_t start;
- reg = regaddr << FEC_MII_DATA_RA_SHIFT; - phy = phyaddr << FEC_MII_DATA_PA_SHIFT; - - writel(FEC_MII_DATA_ST | FEC_MII_DATA_OP_WR | - FEC_MII_DATA_TA | phy | reg | data, ð->mii_data); + writel(FEC_MII_DATA_ST | FEC_MII_DATA_OP_WR | FEC_MII_DATA_TA | + (addr << FEC_MII_DATA_PA_SHIFT) | (reg << FEC_MII_DATA_RA_SHIFT) | + val, ð->mii_data);
/* wait for the MII interrupt */ start = get_timer(0); @@ -180,24 +172,12 @@ static int fec_mdio_write(struct ethernet_regs *eth, uint8_t phyaddr,
/* clear MII interrupt bit */ writel(FEC_IEVENT_MII, ð->ievent); - debug("%s: phy: %02x reg:%02x val:%#x\n", __func__, phyaddr, - regaddr, data); + debug("%s: phy: %02x reg:%02x val:%#x\n", __func__, addr, + reg, val);
return 0; }
-static int fec_phy_read(struct mii_dev *bus, int phyaddr, int dev_addr, - int regaddr) -{ - return fec_mdio_read(bus->priv, phyaddr, regaddr); -} - -static int fec_phy_write(struct mii_dev *bus, int phyaddr, int dev_addr, - int regaddr, u16 data) -{ - return fec_mdio_write(bus->priv, phyaddr, regaddr, data); -} - #ifndef CONFIG_PHYLIB static int miiphy_restart_aneg(struct eth_device *dev) { @@ -211,17 +191,17 @@ static int miiphy_restart_aneg(struct eth_device *dev) * Reset PHY, then delay 300ns */ #ifdef CONFIG_MX27 - fec_mdio_write(eth, fec->phy_id, MII_DCOUNTER, 0x00FF); + _fec_mdio_write(eth, fec->phy_id, MII_DCOUNTER, 0x00FF); #endif - fec_mdio_write(eth, fec->phy_id, MII_BMCR, BMCR_RESET); + _fec_mdio_write(eth, fec->phy_id, MII_BMCR, BMCR_RESET); udelay(1000);
/* Set the auto-negotiation advertisement register bits */ - fec_mdio_write(eth, fec->phy_id, MII_ADVERTISE, - LPA_100FULL | LPA_100HALF | LPA_10FULL | - LPA_10HALF | PHY_ANLPAR_PSB_802_3); - fec_mdio_write(eth, fec->phy_id, MII_BMCR, - BMCR_ANENABLE | BMCR_ANRESTART); + _fec_mdio_write(eth, fec->phy_id, MII_ADVERTISE, + LPA_100FULL | LPA_100HALF | LPA_10FULL | + LPA_10HALF | PHY_ANLPAR_PSB_802_3); + _fec_mdio_write(eth, fec->phy_id, MII_BMCR, + BMCR_ANENABLE | BMCR_ANRESTART);
if (fec->mii_postcall) ret = fec->mii_postcall(fec->phy_id); @@ -246,7 +226,7 @@ static int miiphy_wait_aneg(struct eth_device *dev) return -1; }
- status = fec_mdio_read(eth, fec->phy_id, MII_BMSR); + status = _fec_mdio_read(eth, fec->phy_id, MII_BMSR); if (status < 0) { printf("%s: Autonegotiation failed. status: %d\n", dev->name, status); @@ -562,7 +542,7 @@ static int fec_init(struct eth_device *dev, bd_t *bd) fec_reg_setup(fec);
if (fec->xcv_type != PHY_INTERFACE_MODE_SEVENWIRE) - fec_mii_setspeed(fec->bus->priv); + fec_mii_setspeed(fec->eth);
/* Set Opcode/Pause Duration Register */ writel(0x00010020, &fec->eth->op_pause); /* FIXME 0xffff0020; */ @@ -940,11 +920,6 @@ static int fec_recv(struct eth_device *dev) return len; }
-static void fec_set_dev_name(char *dest, int dev_id) -{ - sprintf(dest, (dev_id == -1) ? "FEC" : "FEC%i", dev_id); -} - static int fec_alloc_descs(struct fec_priv *fec) { unsigned int size; @@ -1020,6 +995,23 @@ static void fec_free_descs(struct fec_priv *fec) free(fec->tbd_base); }
+#ifndef CONFIG_DM_ETH +static int fec_mdio_read(struct mii_dev *bus, int addr, int devad, int reg) +{ + return _fec_mdio_read(bus->priv, addr, reg); +} + +static int fec_mdio_write(struct mii_dev *bus, int addr, int devad, int reg, + u16 val) +{ + return _fec_mdio_write(bus->priv, addr, reg, val); +} + +static void fec_set_dev_name(char *dest, int dev_id) +{ + sprintf(dest, (dev_id == -1) ? "FEC" : "FEC%i", dev_id); +} + struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id) { struct ethernet_regs *eth = (struct ethernet_regs *)base_addr; @@ -1031,8 +1023,8 @@ struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id) printf("mdio_alloc failed\n"); return NULL; } - bus->read = fec_phy_read; - bus->write = fec_phy_write; + bus->read = fec_mdio_read; + bus->write = fec_mdio_write; bus->priv = eth; fec_set_dev_name(bus->name, dev_id);
@@ -1046,7 +1038,6 @@ struct mii_dev *fec_get_miibus(ulong base_addr, int dev_id) return bus; }
-#ifndef CONFIG_DM_ETH #ifdef CONFIG_PHYLIB int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr, struct mii_dev *bus, struct phy_device *phydev) @@ -1254,6 +1245,41 @@ static int fec_phy_init(struct udevice *dev) return 0; }
+static int fec_mdio_read(struct mii_dev *bus, int addr, int devad, int reg) +{ + struct udevice *dev = bus->priv; + struct fec_priv *priv = dev_get_priv(dev); + + return _fec_mdio_read(priv->eth, addr, reg); +} + +static int fec_mdio_write(struct mii_dev *bus, int addr, int devad, int reg, + u16 val) +{ + struct udevice *dev = bus->priv; + struct fec_priv *priv = dev_get_priv(dev); + + return _fec_mdio_write(priv->eth, addr, reg, val); +} + +static int fec_mdio_init(struct udevice *dev) +{ + struct mii_dev *bus; + + bus = mdio_alloc(); + if (!bus) { + printf("failed to allocate mdio\n"); + return -ENOMEM; + } + + bus->read = fec_mdio_read; + bus->write = fec_mdio_write; + snprintf(bus->name, sizeof(bus->name), "%s", dev->name); + bus->priv = dev; + + return mdio_register(bus); +} + static int fec_enet_init(struct fec_priv *priv) { uint32_t start; @@ -1288,26 +1314,26 @@ static int fecmxc_probe(struct udevice *dev) { struct eth_pdata *pdata = dev_get_platdata(dev); struct fec_priv *priv = dev_get_priv(dev); - struct mii_dev *bus = NULL; int ret;
ret = fec_enet_init(priv); if (ret) return ret;
- priv->dev_id = dev->seq; + ret = fec_mdio_init(dev); + if (ret) + goto err_enet; + #ifdef CONFIG_FEC_MXC_MDIO_BASE - bus = fec_get_miibus((ulong)CONFIG_FEC_MXC_MDIO_BASE, dev->seq); + fec_mii_setspeed((struct ethernet_regs *)CONFIG_FEC_MXC_MDIO_BASE); #else - bus = fec_get_miibus((ulong)priv->eth, dev->seq); + fec_mii_setspeed(priv->eth); #endif - if (!bus) { - ret = -ENOMEM; - goto err_mii; - }
- priv->bus = bus; + priv->bus = miiphy_get_dev_by_name(dev->name); + priv->dev_id = dev->seq; priv->xcv_type = pdata->phy_interface; + ret = fec_phy_init(dev); if (ret) goto err_phy; @@ -1315,9 +1341,9 @@ static int fecmxc_probe(struct udevice *dev) return 0;
err_phy: - mdio_unregister(bus); - free(bus); -err_mii: + mdio_unregister(priv->bus); + mdio_free(priv->bus); +err_enet: fec_free_descs(priv); return ret; }

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
mdio initialization in dm code is assigning bus->priv with pointer to struct ethernet_regs which leads to improper mii. Add proper udevice to store mii_bus priv and reuse the same in mdio ops.
Also refactor mdio code, to make common ops for dm and non-dm.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

Add PHY reset code for DM_ETH by retrieving phy-reset-gpios and phy-reset-duration in fec node.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- drivers/net/fec_mxc.c | 50 +++++++++++++++++++++++++++++++++++++------ drivers/net/fec_mxc.h | 7 ++++++ 2 files changed, 51 insertions(+), 6 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index a87f5b6848..0fdad5c5bf 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -16,7 +16,6 @@ #include <net.h> #include <netdev.h> #include <phy.h> -#include "fec_mxc.h"
#include <asm/io.h> #include <linux/errno.h> @@ -25,6 +24,9 @@ #include <asm/arch/clock.h> #include <asm/arch/imx-regs.h> #include <asm/mach-imx/sys_proto.h> +#include <asm-generic/gpio.h> + +#include "fec_mxc.h"
DECLARE_GLOBAL_DATA_PTR;
@@ -1245,6 +1247,33 @@ static int fec_phy_init(struct udevice *dev) return 0; }
+#if defined(CONFIG_DM_GPIO) +static int fec_mdio_reset(struct mii_dev *bus) +{ + struct udevice *dev = bus->priv; + struct fec_priv *priv = dev_get_priv(dev); + int ret; + + if (!dm_gpio_is_valid(&priv->reset_gpio)) + return 0; + + ret = dm_gpio_set_value(&priv->reset_gpio, 1); + if (ret) + return ret; + + if (priv->reset_delay > 20) + mdelay(priv->reset_delay); + else + udelay(priv->reset_delay * 1000); + + ret = dm_gpio_set_value(&priv->reset_gpio, 0); + if (ret) + return ret; + + return 0; +} +#endif + static int fec_mdio_read(struct mii_dev *bus, int addr, int devad, int reg) { struct udevice *dev = bus->priv; @@ -1275,6 +1304,9 @@ static int fec_mdio_init(struct udevice *dev) bus->read = fec_mdio_read; bus->write = fec_mdio_write; snprintf(bus->name, sizeof(bus->name), "%s", dev->name); +#if defined(CONFIG_DM_GPIO) + bus->reset = fec_mdio_reset; +#endif bus->priv = dev;
return mdio_register(bus); @@ -1365,6 +1397,7 @@ static int fecmxc_ofdata_to_platdata(struct udevice *dev) struct eth_pdata *pdata = dev_get_platdata(dev); struct fec_priv *priv = dev_get_priv(dev); const char *phy_mode; + int ret = 0;
pdata->iobase = (phys_addr_t)devfdt_get_addr(dev); priv->eth = (struct ethernet_regs *)pdata->iobase; @@ -1379,12 +1412,17 @@ static int fecmxc_ofdata_to_platdata(struct udevice *dev) return -EINVAL; }
- /* TODO - * Need to get the reset-gpio and related properties from DT - * and implemet the enet reset code on .probe call - */ +#ifdef CONFIG_DM_GPIO + ret = gpio_request_by_name(dev, "phy-reset-gpios", dev->seq, + &priv->reset_gpio, GPIOD_IS_OUT); + if (ret == 0) { + priv->reset_delay = dev_read_u32_default(dev, "phy-reset-duration", 1); + } else if (ret == -ENOENT) { + ret = 0; + } +#endif
- return 0; + return ret; }
static const struct udevice_id fecmxc_ids[] = { diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h index 058341ca4a..ab5935bb83 100644 --- a/drivers/net/fec_mxc.h +++ b/drivers/net/fec_mxc.h @@ -241,6 +241,13 @@ struct fec_priv { int phy_id; int (*mii_postcall)(int); #endif + +#ifdef CONFIG_DM_ETH +# if CONFIG_IS_ENABLED(DM_GPIO) + struct gpio_desc reset_gpio; + uint32_t reset_delay; +# endif +#endif };
void imx_get_mac_from_fuse(int dev_id, unsigned char *mac);

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
Add PHY reset code for DM_ETH by retrieving phy-reset-gpios and phy-reset-duration in fec node.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

Setting up common code for dm and non-dm will easy and understandable for adding new features, debugging in both the code area.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com --- drivers/net/fec_mxc.c | 225 ++++++++++++++++++++---------------------- drivers/net/fec_mxc.h | 3 + 2 files changed, 108 insertions(+), 120 deletions(-)
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 0fdad5c5bf..3640ee3471 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -345,21 +345,8 @@ static int fec_get_hwaddr(int dev_id, unsigned char *mac) return !is_valid_ethaddr(mac); }
-#ifdef CONFIG_DM_ETH -static int fecmxc_set_hwaddr(struct udevice *dev) -#else -static int fec_set_hwaddr(struct eth_device *dev) -#endif +static int _fec_set_hwaddr(struct fec_priv *fec, u8 *mac) { -#ifdef CONFIG_DM_ETH - struct fec_priv *fec = dev_get_priv(dev); - struct eth_pdata *pdata = dev_get_platdata(dev); - uchar *mac = pdata->enetaddr; -#else - uchar *mac = dev->enetaddr; - struct fec_priv *fec = (struct fec_priv *)dev->priv; -#endif - writel(0, &fec->eth->iaddr1); writel(0, &fec->eth->iaddr2); writel(0, &fec->eth->gaddr1); @@ -402,17 +389,8 @@ static void fec_reg_setup(struct fec_priv *fec) * Start the FEC engine * @param[in] dev Our device to handle */ -#ifdef CONFIG_DM_ETH -static int fec_open(struct udevice *dev) -#else -static int fec_open(struct eth_device *edev) -#endif +static int fec_open(struct fec_priv *fec) { -#ifdef CONFIG_DM_ETH - struct fec_priv *fec = dev_get_priv(dev); -#else - struct fec_priv *fec = (struct fec_priv *)edev->priv; -#endif int speed; ulong addr, size; int i; @@ -487,9 +465,9 @@ static int fec_open(struct eth_device *edev) #elif CONFIG_FEC_FIXED_SPEED speed = CONFIG_FEC_FIXED_SPEED; #else - miiphy_wait_aneg(edev); - speed = miiphy_speed(edev->name, fec->phy_id); - miiphy_duplex(edev->name, fec->phy_id); + miiphy_wait_aneg(fec->edev); + speed = miiphy_speed(fec->edev->name, fec->phy_id); + miiphy_duplex(fec->edev->name, fec->phy_id); #endif
#ifdef FEC_QUIRK_ENET_MAC @@ -513,27 +491,13 @@ static int fec_open(struct eth_device *edev) return 0; }
-#ifdef CONFIG_DM_ETH -static int fecmxc_init(struct udevice *dev) -#else -static int fec_init(struct eth_device *dev, bd_t *bd) -#endif +static int _fec_init(struct fec_priv *fec, u8 *enetaddr) { -#ifdef CONFIG_DM_ETH - struct fec_priv *fec = dev_get_priv(dev); -#else - struct fec_priv *fec = (struct fec_priv *)dev->priv; -#endif u8 *mib_ptr = (uint8_t *)&fec->eth->rmon_t_drop; u8 *i; ulong addr;
- /* Initialize MAC address */ -#ifdef CONFIG_DM_ETH - fecmxc_set_hwaddr(dev); -#else - fec_set_hwaddr(dev); -#endif + _fec_set_hwaddr(fec, enetaddr);
/* Setup transmit descriptors, there are two in total. */ fec_tbd_init(fec); @@ -575,9 +539,9 @@ static int fec_init(struct eth_device *dev, bd_t *bd)
#ifndef CONFIG_PHYLIB if (fec->xcv_type != PHY_INTERFACE_MODE_SEVENWIRE) - miiphy_restart_aneg(dev); + miiphy_restart_aneg(fec->edev); #endif - fec_open(dev); + fec_open(fec); return 0; }
@@ -585,17 +549,8 @@ static int fec_init(struct eth_device *dev, bd_t *bd) * Halt the FEC engine * @param[in] dev Our device to handle */ -#ifdef CONFIG_DM_ETH -static void fecmxc_halt(struct udevice *dev) -#else -static void fec_halt(struct eth_device *dev) -#endif +static void _fec_halt(struct fec_priv *fec) { -#ifdef CONFIG_DM_ETH - struct fec_priv *fec = dev_get_priv(dev); -#else - struct fec_priv *fec = (struct fec_priv *)dev->priv; -#endif int counter = 0xffff;
/* issue graceful stop command to the FEC transmitter if necessary */ @@ -629,11 +584,7 @@ static void fec_halt(struct eth_device *dev) * @param[in] length Data count in bytes * @return 0 on success */ -#ifdef CONFIG_DM_ETH -static int fecmxc_send(struct udevice *dev, void *packet, int length) -#else -static int fec_send(struct eth_device *dev, void *packet, int length) -#endif +static int _fec_send(struct fec_priv *fec, void *packet, int length) { unsigned int status; u32 size; @@ -645,12 +596,6 @@ static int fec_send(struct eth_device *dev, void *packet, int length) * This routine transmits one frame. This routine only accepts * 6-byte Ethernet addresses. */ -#ifdef CONFIG_DM_ETH - struct fec_priv *fec = dev_get_priv(dev); -#else - struct fec_priv *fec = (struct fec_priv *)dev->priv; -#endif - /* * Check for valid length of data. */ @@ -780,17 +725,8 @@ out: * @param[in] dev Our ethernet device to handle * @return Length of packet read */ -#ifdef CONFIG_DM_ETH -static int fecmxc_recv(struct udevice *dev, int flags, uchar **packetp) -#else -static int fec_recv(struct eth_device *dev) -#endif +static int _fec_recv(struct fec_priv *fec, uchar **packetp, u8 *enetaddr) { -#ifdef CONFIG_DM_ETH - struct fec_priv *fec = dev_get_priv(dev); -#else - struct fec_priv *fec = (struct fec_priv *)dev->priv; -#endif struct fec_bd *rbd = &fec->rbd_base[fec->rbd_index]; unsigned long ievent; int frame_length, len = 0; @@ -798,28 +734,13 @@ static int fec_recv(struct eth_device *dev) ulong addr, size, end; int i;
-#ifdef CONFIG_DM_ETH - *packetp = memalign(ARCH_DMA_MINALIGN, FEC_MAX_PKT_SIZE); - if (*packetp == 0) { - printf("%s: error allocating packetp\n", __func__); - return -ENOMEM; - } -#else - ALLOC_CACHE_ALIGN_BUFFER(uchar, buff, FEC_MAX_PKT_SIZE); -#endif - /* Check if any critical events have happened */ ievent = readl(&fec->eth->ievent); writel(ievent, &fec->eth->ievent); debug("fec_recv: ievent 0x%lx\n", ievent); if (ievent & FEC_IEVENT_BABR) { -#ifdef CONFIG_DM_ETH - fecmxc_halt(dev); - fecmxc_init(dev); -#else - fec_halt(dev); - fec_init(dev, fec->bd); -#endif + _fec_halt(fec); + _fec_init(fec, enetaddr); printf("some error: 0x%08lx\n", ievent); return 0; } @@ -831,18 +752,10 @@ static int fec_recv(struct eth_device *dev) if (ievent & FEC_IEVENT_GRA) { /* Graceful stop complete */ if (readl(&fec->eth->x_cntrl) & 0x00000001) { -#ifdef CONFIG_DM_ETH - fecmxc_halt(dev); -#else - fec_halt(dev); -#endif + _fec_halt(fec); writel(~0x00000001 & readl(&fec->eth->x_cntrl), &fec->eth->x_cntrl); -#ifdef CONFIG_DM_ETH - fecmxc_init(dev); -#else - fec_init(dev, fec->bd); -#endif + _fec_init(fec, enetaddr); } }
@@ -882,13 +795,7 @@ static int fec_recv(struct eth_device *dev) #ifdef CONFIG_FEC_MXC_SWAP_PACKET swap_packet((uint32_t *)addr, frame_length); #endif - -#ifdef CONFIG_DM_ETH memcpy(*packetp, (char *)addr, frame_length); -#else - memcpy(buff, (char *)addr, frame_length); - net_process_received_packet(buff, frame_length); -#endif len = frame_length; } else { if (bd_status & FEC_RBD_ERR) @@ -998,6 +905,39 @@ static void fec_free_descs(struct fec_priv *fec) }
#ifndef CONFIG_DM_ETH +static int fec_set_hwaddr(struct eth_device *dev) +{ + return _fec_set_hwaddr(dev->priv, dev->enetaddr); +} + +static void fec_halt(struct eth_device *dev) +{ + _fec_halt(dev->priv); +} + +static int fec_recv(struct eth_device *dev) +{ + ALLOC_CACHE_ALIGN_BUFFER(uchar, packet, FEC_MAX_PKT_SIZE); + int length; + + length = _fec_recv(dev->priv, &packet, dev->enetaddr); + if (length == -EAGAIN) + return 0; + net_process_received_packet(packet, length); + + return 0; +} + +static int fec_send(struct eth_device *dev, void *packet, int length) +{ + return _fec_send(dev->priv, packet, length); +} + +static int fec_init(struct eth_device *dev, bd_t *bd) +{ + return _fec_init(dev->priv, dev->enetaddr); +} + static int fec_mdio_read(struct mii_dev *bus, int addr, int devad, int reg) { return _fec_mdio_read(bus->priv, addr, reg); @@ -1084,6 +1024,7 @@ static int fec_probe(bd_t *bd, int dev_id, uint32_t base_addr, edev->halt = fec_halt; edev->write_hwaddr = fec_set_hwaddr;
+ fec->edev = edev; fec->eth = (struct ethernet_regs *)(ulong)base_addr; fec->bd = bd;
@@ -1199,7 +1140,7 @@ int fecmxc_register_mii_postcall(struct eth_device *dev, int (*cb)(int))
#else
-static int fecmxc_read_rom_hwaddr(struct udevice *dev) +static int fec_read_rom_hwaddr(struct udevice *dev) { struct fec_priv *priv = dev_get_priv(dev); struct eth_pdata *pdata = dev_get_platdata(dev); @@ -1207,7 +1148,22 @@ static int fecmxc_read_rom_hwaddr(struct udevice *dev) return fec_get_hwaddr(priv->dev_id, pdata->enetaddr); }
-static int fecmxc_free_pkt(struct udevice *dev, uchar *packet, int length) +static int fec_set_hwaddr(struct udevice *dev) +{ + struct fec_priv *priv = dev_get_priv(dev); + struct eth_pdata *pdata = dev_get_platdata(dev); + + return _fec_set_hwaddr(priv, pdata->enetaddr); +} + +static void fec_halt(struct udevice *dev) +{ + struct fec_priv *priv = dev_get_priv(dev); + + _fec_halt(priv); +} + +static int fec_free_pkt(struct udevice *dev, uchar *packet, int length) { if (packet) free(packet); @@ -1215,14 +1171,43 @@ static int fecmxc_free_pkt(struct udevice *dev, uchar *packet, int length) return 0; }
-static const struct eth_ops fecmxc_ops = { - .start = fecmxc_init, - .send = fecmxc_send, - .recv = fecmxc_recv, - .free_pkt = fecmxc_free_pkt, - .stop = fecmxc_halt, - .write_hwaddr = fecmxc_set_hwaddr, - .read_rom_hwaddr = fecmxc_read_rom_hwaddr, +static int fec_recv(struct udevice *dev, int flags, uchar **packetp) +{ + struct fec_priv *priv = dev_get_priv(dev); + struct eth_pdata *pdata = dev_get_platdata(dev); + + *packetp = memalign(ARCH_DMA_MINALIGN, FEC_MAX_PKT_SIZE); + if (*packetp == 0) { + printf("%s: error allocating packetp\n", __func__); + return -ENOMEM; + } + + return _fec_recv(priv, packetp, pdata->enetaddr); +} + +static int fec_send(struct udevice *dev, void *packet, int length) +{ + struct fec_priv *priv = dev_get_priv(dev); + + return _fec_send(priv, packet, length); +} + +static int fec_start(struct udevice *dev) +{ + struct fec_priv *priv = dev_get_priv(dev); + struct eth_pdata *pdata = dev_get_platdata(dev); + + return _fec_init(priv, pdata->enetaddr); +} + +static const struct eth_ops fec_ops = { + .start = fec_start, + .send = fec_send, + .recv = fec_recv, + .free_pkt = fec_free_pkt, + .stop = fec_halt, + .write_hwaddr = fec_set_hwaddr, + .read_rom_hwaddr = fec_read_rom_hwaddr, };
static int fec_phy_init(struct udevice *dev) @@ -1441,7 +1426,7 @@ U_BOOT_DRIVER(fecmxc_gem) = { .ofdata_to_platdata = fecmxc_ofdata_to_platdata, .probe = fecmxc_probe, .remove = fecmxc_remove, - .ops = &fecmxc_ops, + .ops = &fec_ops, .priv_auto_alloc_size = sizeof(struct fec_priv), .platdata_auto_alloc_size = sizeof(struct eth_pdata), }; diff --git a/drivers/net/fec_mxc.h b/drivers/net/fec_mxc.h index ab5935bb83..6cf2a8b3cc 100644 --- a/drivers/net/fec_mxc.h +++ b/drivers/net/fec_mxc.h @@ -235,6 +235,9 @@ struct fec_priv { uint8_t *tdb_ptr; int dev_id; struct mii_dev *bus; +#ifndef CONFIG_DM_ETH + struct eth_device *edev; +#endif #ifdef CONFIG_PHYLIB struct phy_device *phydev; #else

On Mon, Jul 30, 2018 at 7:45 AM, Jagan Teki jagan@amarulasolutions.com wrote:
Setting up common code for dm and non-dm will easy and understandable for adding new features, debugging in both the code area.
Signed-off-by: Jagan Teki jagan@amarulasolutions.com
Acked-by: Joe Hershberger joe.hershberger@ni.com

Hi Jagan,
On Mon, Jul 30, 2018 at 7:46 AM Jagan Teki jagan@amarulasolutions.com wrote:
dm code in fec_mxc has some quite few issues with mdio handling and the dm vs non-dm code in fec_mxc looks very uncomfortable to read and add new support.
This series is trying to fixe all necessary issues regarding fec_mxc, along with necessary CONFIG options are moved into defconfig.
Require enough testing to get these changes to move further.
Jagan Teki (10): configs: Drop imx27lite-common.h configs: Move CONFIG_FEC_MXC net: fec: Use PHY_INTERFACE_MODE_ for xcv_type net: fec: Add default CONFIG_FEC_MXC_PHYADDR for few boards net: fec: Use PHY_ADDR instead of FEC_MXC_PHYADDR net: fec_mxc: Use udevice to retrive priv, in fec_phy_init dm: net: fec: Move enet init in fec_enet dm: net: fec: Refactor mdio_init code dm: net: fec: Add support for PHY reset net: fec: Setup common eth_ops code for dm and non-dm
I never heard back from you on a new version of "net: fec: Use PHY_INTERFACE_MODE_ for xcv_type" that deals with the change in phy header that happened last release, and now the series has diverged further. Can you rebase this series?
Thanks, -Joe
participants (2)
-
Jagan Teki
-
Joe Hershberger