Skip to contentSkip to conversation

Build AM335x when CONFIG_NET isn't defined

PATCH Superseded Alex Kiernan 3 participants 31 messages Apr 1, 2018 – Apr 10, 2018

Subsystems (13)
lore
Share & tools
lore
#0 lore raw

v2 cover Build AM335x when CONFIG_NET isn't defined

Attempting to build AM335x without CONFIG_NET defined fails in assorted ways. This series fixes up those failures.

Green Travis build:

https://travis-ci.org/akiernan/u-boot/builds/360614817

Changes in v2:
- Move DRIVER_TI_CPSW outside of the NETDEVICES guard
- Don't mark DRIVER_TI_CPSW default if ARCH_OMAP2PLUS to fix mistranslations by moveconfig
- Moved enetaddr env access declarations to include/environment.h
- Replace uchar with uint8_t in eth_env_* to avoid dependency on include/common.h
- include environment.h where needed to satisfy eth_env_* dependencies

Alex Kiernan (5):
Migrate CONFIG_DRIVER_TI_CPSW to Kconfig
ti: am335x: Fix bootargs when building without NET
usb: gadget: USB_ETHER requires network support
ti: am335x: Fix build when networking is disabled
net: Move enetaddr env access code to env config instead of net config

 arch/arm/cpu/arm926ejs/spear/spr_misc.c           |  1 +
 arch/arm/mach-davinci/misc.c                      |  1 +
 arch/arm/mach-omap2/utils.c                       |  1 +
 arch/powerpc/cpu/mpc85xx/fdt.c                    |  1 +
 board/BuR/common/common.c                         |  1 +
 board/CZ.NIC/turris_omnia/turris_omnia.c          |  1 +
 board/LaCie/net2big_v2/net2big_v2.c               |  1 +
 board/LaCie/netspace_v2/netspace_v2.c             |  1 +
 board/amlogic/khadas-vim/khadas-vim.c             |  1 +
 board/amlogic/libretech-cc/libretech-cc.c         |  1 +
 board/amlogic/odroid-c2/odroid-c2.c               |  1 +
 board/amlogic/p212/p212.c                         |  1 +
 board/atmel/common/mac_eeprom.c                   |  1 +
 board/buffalo/lsxl/lsxl.c                         |  1 +
 board/compulab/cl-som-am57x/eth.c                 |  1 +
 board/compulab/cl-som-imx7/cl-som-imx7.c          |  1 +
 board/compulab/cm_fx6/cm_fx6.c                    |  1 +
 board/compulab/cm_t335/cm_t335.c                  |  1 +
 board/compulab/cm_t35/cm_t35.c                    |  1 +
 board/compulab/cm_t3517/cm_t3517.c                |  1 +
 board/compulab/cm_t54/cm_t54.c                    |  1 +
 board/davinci/da8xxevm/da850evm.c                 |  1 +
 board/dhelectronics/dh_imx6/dh_imx6.c             |  1 +
 board/gateworks/gw_ventana/gw_ventana.c           |  1 +
 board/ge/mx53ppd/mx53ppd.c                        |  1 +
 board/kosagi/novena/novena.c                      |  1 +
 board/logicpd/zoom1/zoom1.c                       |  1 +
 board/phytec/pcm051/board.c                       |  1 +
 board/phytec/phycore_rk3288/phycore-rk3288.c      |  1 +
 board/raspberrypi/rpi/rpi.c                       |  1 +
 board/renesas/alt/alt.c                           |  1 +
 board/renesas/blanche/blanche.c                   |  1 +
 board/renesas/gose/gose.c                         |  1 +
 board/renesas/koelsch/koelsch.c                   |  1 +
 board/renesas/lager/lager.c                       |  1 +
 board/renesas/sh7752evb/sh7752evb.c               |  1 +
 board/renesas/sh7753evb/sh7753evb.c               |  1 +
 board/renesas/sh7757lcr/sh7757lcr.c               |  1 +
 board/renesas/silk/silk.c                         |  1 +
 board/renesas/stout/stout.c                       |  1 +
 board/rockchip/tinker_rk3288/tinker-rk3288.c      |  1 +
 board/samtec/vining_2000/vining_2000.c            |  1 +
 board/samtec/vining_fpga/socfpga.c                |  1 +
 board/siemens/common/factoryset.c                 |  1 +
 board/siemens/pxm2/board.c                        |  1 +
 board/silica/pengwyn/board.c                      |  1 +
 board/technologic/ts4800/ts4800.c                 |  1 +
 board/theobroma-systems/puma_rk3399/puma-rk3399.c |  1 +
 board/ti/am335x/board.c                           |  8 +++---
 board/ti/am43xx/board.c                           |  1 +
 board/ti/ti814x/evm.c                             |  1 +
 board/ti/ti816x/evm.c                             |  1 +
 board/timll/devkit8000/devkit8000.c               |  1 +
 board/toradex/common/tdx-common.c                 |  1 +
 cmd/elf.c                                         |  1 +
 cmd/ethsw.c                                       |  1 +
 cmd/nvedit.c                                      | 30 ++++++++++++++++++++++
 configs/am335x_baltos_defconfig                   |  4 +--
 configs/am335x_boneblack_defconfig                |  4 +--
 configs/am335x_boneblack_vboot_defconfig          |  4 +--
 configs/am335x_evm_defconfig                      |  4 +--
 configs/am335x_evm_nor_defconfig                  |  4 +--
 configs/am335x_evm_norboot_defconfig              |  2 +-
 configs/am335x_evm_spiboot_defconfig              |  4 +--
 configs/am335x_evm_usbspl_defconfig               |  4 +--
 configs/am335x_hs_evm_defconfig                   |  4 +--
 configs/am335x_hs_evm_uart_defconfig              |  4 +--
 configs/am335x_igep003x_defconfig                 |  6 ++---
 configs/am335x_pdu001_defconfig                   |  3 ++-
 configs/am335x_shc_defconfig                      |  4 +--
 configs/am335x_shc_ict_defconfig                  |  4 +--
 configs/am335x_shc_netboot_defconfig              |  4 +--
 configs/am335x_shc_prompt_defconfig               |  4 +--
 configs/am335x_shc_sdboot_defconfig               |  4 +--
 configs/am335x_shc_sdboot_prompt_defconfig        |  4 +--
 configs/am335x_sl50_defconfig                     |  4 +--
 configs/am43xx_evm_defconfig                      |  4 +--
 configs/am43xx_evm_ethboot_defconfig              |  4 +--
 configs/am43xx_evm_qspiboot_defconfig             |  2 +-
 configs/am43xx_evm_usbhost_boot_defconfig         |  4 +--
 configs/am43xx_hs_evm_defconfig                   |  4 +--
 configs/am57xx_evm_defconfig                      |  4 +--
 configs/am57xx_hs_evm_defconfig                   |  4 +--
 configs/birdland_bav335a_defconfig                |  4 +--
 configs/birdland_bav335b_defconfig                |  4 +--
 configs/brppt1_mmc_defconfig                      |  4 +--
 configs/brppt1_nand_defconfig                     |  4 +--
 configs/brppt1_spi_defconfig                      |  4 +--
 configs/brxre1_defconfig                          |  4 +--
 configs/chiliboard_defconfig                      |  4 +--
 configs/cl-som-am57x_defconfig                    |  4 +--
 configs/cm_t335_defconfig                         |  4 +--
 configs/cm_t43_defconfig                          |  4 +--
 configs/dra7xx_evm_defconfig                      |  4 +--
 configs/dra7xx_hs_evm_defconfig                   |  4 +--
 configs/draco_defconfig                           |  4 +--
 configs/etamin_defconfig                          |  4 +--
 configs/pcm051_rev1_defconfig                     |  4 +--
 configs/pcm051_rev3_defconfig                     |  4 +--
 configs/pengwyn_defconfig                         |  4 +--
 configs/pepper_defconfig                          |  4 +--
 configs/pxm2_defconfig                            |  4 +--
 configs/rastaban_defconfig                        |  4 +--
 configs/rut_defconfig                             |  4 +--
 configs/thuban_defconfig                          |  4 +--
 configs/ti814x_evm_defconfig                      |  4 +--
 drivers/net/Kconfig                               |  7 +++++
 drivers/net/cpsw-common.c                         |  1 +
 drivers/net/fec_mxc.c                             |  1 +
 drivers/net/fsl_mcdmafec.c                        |  1 +
 drivers/net/mcffec.c                              |  1 +
 drivers/net/ne2000_base.c                         |  1 +
 drivers/net/sh_eth.c                              |  1 +
 drivers/usb/gadget/Kconfig                        |  1 +
 drivers/usb/gadget/ether.c                        |  1 +
 include/configs/am335x_evm.h                      | 16 ++++++++++--
 include/configs/am335x_shc.h                      |  1 -
 include/configs/am43xx_evm.h                      |  1 -
 include/configs/am57xx_evm.h                      |  1 -
 include/configs/bur_am335x_common.h               |  1 -
 include/configs/cl-som-am57x.h                    |  1 -
 include/configs/cm_t43.h                          |  1 -
 include/configs/dra7xx_evm.h                      |  1 -
 include/configs/siemens-am33x-common.h            |  1 -
 include/configs/ti814x_evm.h                      |  1 -
 include/configs/ti_am335x_common.h                |  1 -
 include/environment.h                             |  4 +++
 include/net.h                                     |  3 ---
 net/eth_common.c                                  | 31 +----------------------
 scripts/config_whitelist.txt                      |  1 -
 130 files changed, 219 insertions(+), 147 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

---

Changes in v2:
- Move DRIVER_TI_CPSW outside of the NETDEVICES guard
- Don't mark DRIVER_TI_CPSW default if ARCH_OMAP2PLUS to fix mistranslations by moveconfig

 configs/am335x_baltos_defconfig            | 4 ++--
 configs/am335x_boneblack_defconfig         | 4 ++--
 configs/am335x_boneblack_vboot_defconfig   | 4 ++--
 configs/am335x_evm_defconfig               | 4 ++--
 configs/am335x_evm_nor_defconfig           | 4 ++--
 configs/am335x_evm_norboot_defconfig       | 2 +-
 configs/am335x_evm_spiboot_defconfig       | 4 ++--
 configs/am335x_evm_usbspl_defconfig        | 4 ++--
 configs/am335x_hs_evm_defconfig            | 4 ++--
 configs/am335x_hs_evm_uart_defconfig       | 4 ++--
 configs/am335x_igep003x_defconfig          | 6 ++----
 configs/am335x_pdu001_defconfig            | 3 ++-
 configs/am335x_shc_defconfig               | 4 ++--
 configs/am335x_shc_ict_defconfig           | 4 ++--
 configs/am335x_shc_netboot_defconfig       | 4 ++--
 configs/am335x_shc_prompt_defconfig        | 4 ++--
 configs/am335x_shc_sdboot_defconfig        | 4 ++--
 configs/am335x_shc_sdboot_prompt_defconfig | 4 ++--
 configs/am335x_sl50_defconfig              | 4 ++--
 configs/am43xx_evm_defconfig               | 4 ++--
 configs/am43xx_evm_ethboot_defconfig       | 4 ++--
 configs/am43xx_evm_qspiboot_defconfig      | 2 +-
 configs/am43xx_evm_usbhost_boot_defconfig  | 4 ++--
 configs/am43xx_hs_evm_defconfig            | 4 ++--
 configs/am57xx_evm_defconfig               | 4 ++--
 configs/am57xx_hs_evm_defconfig            | 4 ++--
 configs/birdland_bav335a_defconfig         | 4 ++--
 configs/birdland_bav335b_defconfig         | 4 ++--
 configs/brppt1_mmc_defconfig               | 4 ++--
 configs/brppt1_nand_defconfig              | 4 ++--
 configs/brppt1_spi_defconfig               | 4 ++--
 configs/brxre1_defconfig                   | 4 ++--
 configs/chiliboard_defconfig               | 4 ++--
 configs/cl-som-am57x_defconfig             | 4 ++--
 configs/cm_t335_defconfig                  | 4 ++--
 configs/cm_t43_defconfig                   | 4 ++--
 configs/dra7xx_evm_defconfig               | 4 ++--
 configs/dra7xx_hs_evm_defconfig            | 4 ++--
 configs/draco_defconfig                    | 4 ++--
 configs/etamin_defconfig                   | 4 ++--
 configs/pcm051_rev1_defconfig              | 4 ++--
 configs/pcm051_rev3_defconfig              | 4 ++--
 configs/pengwyn_defconfig                  | 4 ++--
 configs/pepper_defconfig                   | 4 ++--
 configs/pxm2_defconfig                     | 4 ++--
 configs/rastaban_defconfig                 | 4 ++--
 configs/rut_defconfig                      | 4 ++--
 configs/thuban_defconfig                   | 4 ++--
 configs/ti814x_evm_defconfig               | 4 ++--
 drivers/net/Kconfig                        | 7 +++++++
 include/configs/am335x_shc.h               | 1 -
 include/configs/am43xx_evm.h               | 1 -
 include/configs/am57xx_evm.h               | 1 -
 include/configs/bur_am335x_common.h        | 1 -
 include/configs/cl-som-am57x.h             | 1 -
 include/configs/cm_t43.h                   | 1 -
 include/configs/dra7xx_evm.h               | 1 -
 include/configs/siemens-am33x-common.h     | 1 -
 include/configs/ti814x_evm.h               | 1 -
 include/configs/ti_am335x_common.h         | 1 -
 scripts/config_whitelist.txt               | 1 -
 61 files changed, 103 insertions(+), 108 deletions(-)
configs/am335x_baltos_defconfig +2 -2
index ab7d96d..7206601 100644
@@ -9,6 +9,7 @@ CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_VERBOSE=y
@@ -17,7 +18,6 @@ CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
@@ -42,7 +42,7 @@ CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_SYS_OMAP24_I2C_SPEED=1000
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/am335x_boneblack_defconfig +2 -2
index f45e409..7039c6b 100644
@@ -3,13 +3,13 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_AM33XX=y
 # CONFIG_SPL_NAND_SUPPORT is not set
+CONFIG_SPL=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT"
 CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
 CONFIG_AUTOBOOT_KEYED=y
@@ -30,7 +30,7 @@ CONFIG_DFU_RAM=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/am335x_boneblack_vboot_defconfig +2 -2
index df73f65..3974bd6 100644
@@ -3,6 +3,7 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_AM33XX=y
 # CONFIG_SPL_NAND_SUPPORT is not set
+CONFIG_SPL=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-boneblack"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_SIGNATURE=y
@@ -12,7 +13,6 @@ CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run f
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
 CONFIG_AUTOBOOT_KEYED=y
@@ -34,8 +34,8 @@ CONFIG_DM_MMC=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
configs/am335x_evm_defconfig +2 -2
index d1c78fa..b94f053 100644
@@ -2,6 +2,7 @@ CONFIG_ARM=y
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_AM33XX=y
+CONFIG_SPL=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000
@@ -10,7 +11,6 @@ CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run f
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
@@ -39,8 +39,8 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
configs/am335x_evm_nor_defconfig +2 -2
index 6598879..172973a 100644
@@ -3,12 +3,12 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_AM33XX=y
 CONFIG_NOR=y
+CONFIG_SPL=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
@@ -29,7 +29,7 @@ CONFIG_MTD_NOR_FLASH=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/am335x_evm_norboot_defconfig +1 -1
index 22182f5..176c820 100644
@@ -24,7 +24,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_MTD_NOR_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/am335x_evm_spiboot_defconfig +2 -2
index 079f69d..32620f7 100644
@@ -5,6 +5,7 @@ CONFIG_AM33XX=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="SPI_BOOT"
 CONFIG_SPI_BOOT=y
@@ -12,7 +13,6 @@ CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run f
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_FASTBOOT=y
 # CONFIG_CMD_FLASH is not set
@@ -27,7 +27,7 @@ CONFIG_DFU_RAM=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/am335x_evm_usbspl_defconfig +2 -2
index e4bf757..9dac414 100644
@@ -3,13 +3,13 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_AM33XX=y
 # CONFIG_SPL_NAND_SUPPORT is not set
+CONFIG_SPL=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_ANDROID_BOOT_IMAGE is not set
 CONFIG_BOOTCOMMAND="if test ${boot_fit} -eq 1; then run update_to_fit; fi; run findfdt; run init_console; run envboot; run distro_bootcmd"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
 CONFIG_SPL_NET_SUPPORT=y
 CONFIG_SPL_NET_VCI_STRING="AM335x U-Boot SPL"
@@ -34,7 +34,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/am335x_hs_evm_defconfig +2 -2
index a8ab3e6..cd0d90e 100644
@@ -7,6 +7,7 @@ CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_AM33XX=y
 CONFIG_ISW_ENTRY_ADDR=0x40300350
 # CONFIG_SPL_NAND_SUPPORT is not set
+CONFIG_SPL=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SPL_SYS_MALLOC_F_LEN=0x1000
@@ -18,7 +19,6 @@ CONFIG_LOGLEVEL=3
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_FIT_IMAGE_TINY=y
 # CONFIG_SPL_ENV_SUPPORT is not set
 # CONFIG_SPL_EXT_SUPPORT is not set
@@ -46,8 +46,8 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
configs/am335x_hs_evm_uart_defconfig +2 -2
index 6971e57..6991179 100644
@@ -7,6 +7,7 @@ CONFIG_ISW_ENTRY_ADDR=0x40301950
 # CONFIG_SPL_MMC_SUPPORT is not set
 # CONFIG_SPL_LIBDISK_SUPPORT is not set
 # CONFIG_SPL_NAND_SUPPORT is not set
+CONFIG_SPL=y
 # CONFIG_SPL_FAT_SUPPORT is not set
 CONFIG_DEFAULT_DEVICE_TREE="am335x-evm"
 CONFIG_DISTRO_DEFAULTS=y
@@ -16,7 +17,6 @@ CONFIG_SPL_FIT_IMAGE_POST_PROCESS=y
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 # CONFIG_SPL_ENV_SUPPORT is not set
 # CONFIG_SPL_EXT_SUPPORT is not set
 CONFIG_SPL_MTD_SUPPORT=y
@@ -42,8 +42,8 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
configs/am335x_igep003x_defconfig +2 -4
index be4f112..139f994 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_OF_BOARD_SETUP=y
@@ -17,7 +18,6 @@ CONFIG_SYS_EXTRA_OPTIONS="MACH_TYPE=MACH_TYPE_IGEP0033"
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
@@ -37,14 +37,12 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MTDIDS_DEFAULT="nand0=omap2-nand.0"
 CONFIG_MTDPARTS_DEFAULT="mtdparts=omap2-nand.0:512k(SPL),-(UBI)"
 CONFIG_CMD_UBI=y
-CONFIG_UBI_SILENCE_MSG=y
 # CONFIG_CMD_UBIFS is not set
 CONFIG_ENV_IS_IN_UBI=y
-CONFIG_UBIFS_SILENCE_MSG=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_MTD_UBI_FASTMAP=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am335x_pdu001_defconfig +2 -1
index cb75ec0..87ae88c 100644
@@ -9,13 +9,13 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-pdu001"
 CONFIG_LOCALVERSION="-EETS-1.0.0"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 # CONFIG_USE_BOOTCOMMAND is not set
-CONFIG_SPL=y
 # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
@@ -39,6 +39,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MMC_SDHCI=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_DM_PMIC=y
configs/am335x_shc_defconfig +2 -2
index fb714da..51488b1 100644
@@ -10,13 +10,13 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_SERIES=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
@@ -35,7 +35,7 @@ CONFIG_CMD_MMC=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am335x_shc_ict_defconfig +2 -2
index 2568e3d..b392717 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_SHC_ICT=y
 CONFIG_SERIES=y
@@ -17,7 +18,6 @@ CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
@@ -36,7 +36,7 @@ CONFIG_CMD_MMC=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am335x_shc_netboot_defconfig +2 -2
index 16071fb..10ea060 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_SHC_NETBOOT=y
 CONFIG_SERIES=y
@@ -17,7 +18,6 @@ CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
@@ -37,7 +37,7 @@ CONFIG_CMD_MMC=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am335x_shc_prompt_defconfig +2 -2
index bbad6dd..37cf9ea 100644
@@ -10,13 +10,13 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_SERIES=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
@@ -34,7 +34,7 @@ CONFIG_CMD_MMC=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am335x_shc_sdboot_defconfig +2 -2
index 82a61a3..81432b5 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_SHC_SDBOOT=y
 CONFIG_SERIES=y
@@ -17,7 +18,6 @@ CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
@@ -36,7 +36,7 @@ CONFIG_CMD_MMC=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am335x_shc_sdboot_prompt_defconfig +2 -2
index 82a61a3..81432b5 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_SHC_SDBOOT=y
 CONFIG_SERIES=y
@@ -17,7 +18,6 @@ CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
@@ -36,7 +36,7 @@ CONFIG_CMD_MMC=y
 # CONFIG_SPL_ISO_PARTITION is not set
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am335x_sl50_defconfig +2 -2
index cd1b78e..ea70ef4 100644
@@ -10,12 +10,12 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="EMMC_BOOT"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
@@ -40,7 +40,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_ENV_IS_IN_MMC=y
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_FAT_WRITE=y
configs/am43xx_evm_defconfig +2 -2
index 172b292..802a8fb 100644
@@ -3,6 +3,7 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_TI_COMMON_CMD_OPTIONS=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_AM43XX=y
+CONFIG_SPL=y
 CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SPL_LOAD_FIT=y
@@ -10,7 +11,6 @@ CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1"
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
 CONFIG_CMD_SPL=y
@@ -35,7 +35,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
configs/am43xx_evm_ethboot_defconfig +2 -2
index 835a58d..1bb3395 100644
@@ -1,12 +1,12 @@
 CONFIG_ARM=y
 CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_AM43XX=y
+CONFIG_SPL=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 # CONFIG_SPL_SYS_MALLOC_SIMPLE is not set
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
@@ -41,7 +41,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
configs/am43xx_evm_qspiboot_defconfig +1 -1
index 2bc302c..77a0450 100644
@@ -30,7 +30,7 @@ CONFIG_DFU_SF=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
 CONFIG_USB=y
configs/am43xx_evm_usbhost_boot_defconfig +2 -2
index 7ca24d5..605c2c7 100644
@@ -3,6 +3,7 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_AM43XX=y
 CONFIG_ISW_ENTRY_ADDR=0x40300350
+CONFIG_SPL=y
 CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SPL_LOAD_FIT=y
@@ -10,7 +11,6 @@ CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_OS_BOOT=y
 CONFIG_SPL_USB_HOST_SUPPORT=y
@@ -49,7 +49,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
configs/am43xx_hs_evm_defconfig +2 -2
index b69d855..8d65f03 100644
@@ -8,6 +8,7 @@ CONFIG_TI_SECURE_EMIF_REGION_START=0xbdb00000
 CONFIG_TI_SECURE_EMIF_TOTAL_REGION_SIZE=0x02000000
 CONFIG_TI_SECURE_EMIF_PROTECTED_REGION_SIZE=0x01c00000
 CONFIG_ISW_ENTRY_ADDR=0x403018e0
+CONFIG_SPL=y
 CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_FIT_IMAGE_POST_PROCESS=y
@@ -18,7 +19,6 @@ CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1"
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
 CONFIG_SPL_NET_SUPPORT=y
@@ -46,7 +46,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
configs/am57xx_evm_defconfig +2 -2
index 7ed010f..535a3b4 100644
@@ -7,6 +7,7 @@ CONFIG_TARGET_AM57XX_EVM=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_ARMV7_LPAE=y
 CONFIG_DEFAULT_DEVICE_TREE="am572x-idk"
 CONFIG_DISTRO_DEFAULTS=y
@@ -18,7 +19,6 @@ CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS2,115200 androidboo
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_SPL=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_DMA_SUPPORT=y
@@ -51,10 +51,10 @@ CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_SPANSION=y
-CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_PALMAS=y
 CONFIG_DM_REGULATOR=y
configs/am57xx_hs_evm_defconfig +2 -2
index d9fb6ec..034fad5 100644
@@ -11,6 +11,7 @@ CONFIG_TARGET_AM57XX_EVM=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_ARMV7_LPAE=y
 CONFIG_DEFAULT_DEVICE_TREE="am57xx-beagle-x15"
 CONFIG_DISTRO_DEFAULTS=y
@@ -24,7 +25,6 @@ CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS2,115200 androidboo
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_SPL=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_DMA_SUPPORT=y
@@ -54,10 +54,10 @@ CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_SPANSION=y
-CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_PALMAS=y
 CONFIG_DM_REGULATOR=y
configs/birdland_bav335a_defconfig +2 -2
index 823fc74..bbfe228 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_BAV_VERSION=1
 CONFIG_DISTRO_DEFAULTS=y
@@ -18,7 +19,6 @@ CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
@@ -48,7 +48,7 @@ CONFIG_DFU_RAM=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/birdland_bav335b_defconfig +2 -2
index 6d12aba..21fecde 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_BAV_VERSION=2
 CONFIG_DISTRO_DEFAULTS=y
@@ -18,7 +19,6 @@ CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MUSB_NEW_SUPPORT=y
@@ -48,7 +48,7 @@ CONFIG_DFU_RAM=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/brppt1_mmc_defconfig +2 -2
index 6de9a78..e202bc3 100644
@@ -9,6 +9,7 @@ CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,EMMC_BOOT"
 CONFIG_BOOTDELAY=-2
@@ -20,7 +21,6 @@ CONFIG_VERSION_VARIABLE=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
@@ -54,7 +54,7 @@ CONFIG_BOOTP_GATEWAY=y
 CONFIG_BOOTP_SUBNETMASK=y
 CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
configs/brppt1_nand_defconfig +2 -2
index a1a5590..8adbfa0 100644
@@ -7,6 +7,7 @@ CONFIG_AM33XX=y
 CONFIG_TARGET_BRPPT1=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 CONFIG_BOOTDELAY=-2
@@ -18,7 +19,6 @@ CONFIG_VERSION_VARIABLE=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
@@ -56,7 +56,7 @@ CONFIG_BOOTP_SUBNETMASK=y
 CONFIG_BOOTCOUNT_LIMIT=y
 # CONFIG_MMC is not set
 CONFIG_NAND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
configs/brppt1_spi_defconfig +2 -2
index 0052d16..2ab44c3 100644
@@ -11,6 +11,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_OF_BOARD_SETUP=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1,SPI_BOOT,EMMC_BOOT"
 CONFIG_SPI_BOOT=y
@@ -23,7 +24,6 @@ CONFIG_VERSION_VARIABLE=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
@@ -63,7 +63,7 @@ CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_STMICRO=y
 # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/brxre1_defconfig +2 -2
index 3f37573..45f11d1 100644
@@ -8,6 +8,7 @@ CONFIG_TARGET_BRXRE1=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
+CONFIG_SPL=y
 CONFIG_SYS_EXTRA_OPTIONS="SERIAL1,CONS_INDEX=1"
 CONFIG_BOOTDELAY=-2
 # CONFIG_CONSOLE_MUX is not set
@@ -18,7 +19,6 @@ CONFIG_VERSION_VARIABLE=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
@@ -54,7 +54,7 @@ CONFIG_BOOTP_DNS=y
 CONFIG_BOOTP_GATEWAY=y
 CONFIG_BOOTP_SUBNETMASK=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_MUSB_HOST=y
configs/chiliboard_defconfig +2 -2
index b60ded6..344a3a0 100644
@@ -8,13 +8,13 @@ CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_DEFAULT_FDT_FILE="am335x-chiliboard.dtb"
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
 CONFIG_CMD_ASKENV=y
@@ -34,7 +34,7 @@ CONFIG_BOOTCOUNT_LIMIT=y
 CONFIG_DM_GPIO=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/cl-som-am57x_defconfig +2 -2
index 3904321..eff22bf 100644
@@ -3,10 +3,10 @@ CONFIG_ARCH_OMAP2PLUS=y
 CONFIG_OMAP54XX=y
 CONFIG_TARGET_CL_SOM_AM57X=y
 # CONFIG_SPL_NAND_SUPPORT is not set
+CONFIG_SPL=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 # CONFIG_SPL_EXT_SUPPORT is not set
 CONFIG_SYS_PROMPT="U-Boot# "
 CONFIG_CMD_ASKENV=y
@@ -42,7 +42,7 @@ CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_CONS_INDEX=3
 CONFIG_SYS_NS16550=y
 CONFIG_TI_QSPI=y
configs/cm_t335_defconfig +2 -2
index 46979b3..c82ce84 100644
@@ -9,12 +9,12 @@ CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_MTD_SUPPORT=y
@@ -44,7 +44,7 @@ CONFIG_LED_STATUS_BOOT_ENABLE=y
 CONFIG_LED_STATUS_BOOT=0
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_FAT_WRITE=y
 CONFIG_OF_LIBFDT=y
configs/cm_t43_defconfig +2 -2
index 4e7978c..31da64b 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
@@ -17,7 +18,6 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_SPL=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x480
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
@@ -55,7 +55,7 @@ CONFIG_SPI_FLASH_SPANSION=y
 CONFIG_SPI_FLASH_STMICRO=y
 CONFIG_SPI_FLASH_SST=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_DM_SERIAL=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
configs/dra7xx_evm_defconfig +2 -2
index 2b83a0c..56defe1 100644
@@ -7,6 +7,7 @@ CONFIG_TARGET_DRA7XX_EVM=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_ARMV7_LPAE=y
 CONFIG_DEFAULT_DEVICE_TREE="dra7-evm"
 CONFIG_DISTRO_DEFAULTS=y
@@ -18,7 +19,6 @@ CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS0,115200 androidboo
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_SPL=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_DMA_SUPPORT=y
@@ -60,8 +60,8 @@ CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_SPANSION=y
-CONFIG_PHYLIB=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_SPL_PHY=y
 CONFIG_PMIC_PALMAS=y
configs/dra7xx_hs_evm_defconfig +2 -2
index 5a8129c..fffcc60 100644
@@ -11,6 +11,7 @@ CONFIG_TARGET_DRA7XX_EVM=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_ARMV7_LPAE=y
 CONFIG_DEFAULT_DEVICE_TREE="dra7-evm"
 CONFIG_DISTRO_DEFAULTS=y
@@ -24,7 +25,6 @@ CONFIG_BOOTARGS="androidboot.serialno=${serial#} console=ttyS0,115200 androidboo
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_SPL=y
 CONFIG_SPL_SYS_MALLOC_SIMPLE=y
 CONFIG_SPL_SEPARATE_BSS=y
 CONFIG_SPL_DMA_SUPPORT=y
@@ -59,8 +59,8 @@ CONFIG_DM_SPI_FLASH=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_BAR=y
 CONFIG_SPI_FLASH_SPANSION=y
-CONFIG_PHYLIB=y
 CONFIG_DM_ETH=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_PHY_GIGE=y
 CONFIG_SPL_PHY=y
 CONFIG_PMIC_PALMAS=y
configs/draco_defconfig +2 -2
index 985e662..058b94a 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-draco"
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
@@ -21,7 +22,6 @@ CONFIG_BOOTDELAY=3
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y
@@ -64,7 +64,7 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/etamin_defconfig +2 -2
index dd862bb..c6c724f 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-draco"
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
@@ -21,7 +22,6 @@ CONFIG_BOOTDELAY=3
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y
@@ -64,7 +64,7 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/pcm051_rev1_defconfig +2 -2
index a7094a6..871dc2a 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="REV1"
@@ -17,7 +18,6 @@ CONFIG_SYS_EXTRA_OPTIONS="REV1"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_EXT_SUPPORT=y
@@ -42,7 +42,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/pcm051_rev3_defconfig +2 -2
index ee1165a..8f957e2 100644
@@ -10,6 +10,7 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_SYS_EXTRA_OPTIONS="REV3"
@@ -17,7 +18,6 @@ CONFIG_SYS_EXTRA_OPTIONS="REV3"
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_EXT_SUPPORT=y
@@ -42,7 +42,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/pengwyn_defconfig +2 -2
index 6218471..4ac03dc 100644
@@ -9,13 +9,13 @@ CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_ENV_SUPPORT=y
 CONFIG_SPL_ETH_SUPPORT=y
 CONFIG_SPL_EXT_SUPPORT=y
@@ -46,7 +46,7 @@ CONFIG_CMD_DIAG=y
 CONFIG_ENV_IS_IN_NAND=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_NAND=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/pepper_defconfig +2 -2
index a802e57..e175d11 100644
@@ -10,12 +10,12 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_USE_BOOTCOMMAND is not set
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
-CONFIG_SPL=y
 CONFIG_SPL_EXT_SUPPORT=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_POWER_SUPPORT=y
@@ -29,9 +29,9 @@ CONFIG_CMD_SPI=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
 CONFIG_PHY_MICREL=y
 CONFIG_PHY_MICREL_KSZ90X1=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_NETDEVICES=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
configs/pxm2_defconfig +2 -2
index 98edb88..65e13a6 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-pxm50"
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
@@ -23,7 +24,6 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y
@@ -67,7 +67,7 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/rastaban_defconfig +2 -2
index e561edc..ada8942 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-draco"
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
@@ -21,7 +22,6 @@ CONFIG_BOOTDELAY=3
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y
@@ -64,7 +64,7 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/rut_defconfig +2 -2
index e09f4c5..f4e96fb 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-rut"
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
@@ -24,7 +25,6 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_EARLY_INIT_R=y
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y
@@ -68,7 +68,7 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/thuban_defconfig +2 -2
index eb7e285..8bf9226 100644
@@ -14,6 +14,7 @@ CONFIG_SPL_LIBDISK_SUPPORT=y
 CONFIG_SPL_SPI_FLASH_SUPPORT=y
 CONFIG_SPL_SPI_SUPPORT=y
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-draco"
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
@@ -21,7 +22,6 @@ CONFIG_BOOTDELAY=3
 CONFIG_SYS_CONSOLE_INFO_QUIET=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_ARCH_MISC_INIT=y
-CONFIG_SPL=y
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y
 CONFIG_HUSH_PARSER=y
@@ -64,7 +64,7 @@ CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_WINBOND=y
 CONFIG_MTD_UBI_FASTMAP=y
 CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OMAP3_SPI=y
 CONFIG_USB=y
configs/ti814x_evm_defconfig +2 -2
index 61c3a7a..f26cd52 100644
@@ -8,6 +8,7 @@ CONFIG_TARGET_TI814X_EVM=y
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_ENV_VARS_UBOOT_CONFIG=y
 CONFIG_BOOTDELAY=1
@@ -15,7 +16,6 @@ CONFIG_SYS_CONSOLE_INFO_QUIET=y
 CONFIG_VERSION_VARIABLE=y
 # CONFIG_DISPLAY_CPUINFO is not set
 # CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_SPL=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
 CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x300
 CONFIG_SPL_YMODEM_SUPPORT=y
@@ -36,6 +36,6 @@ CONFIG_BOOTP_DNS=y
 CONFIG_BOOTP_GATEWAY=y
 CONFIG_BOOTP_SUBNETMASK=y
 CONFIG_MMC_OMAP_HS=y
-CONFIG_PHYLIB=y
+CONFIG_DRIVER_TI_CPSW=y
 CONFIG_SYS_NS16550=y
 CONFIG_OF_LIBFDT=y
drivers/net/Kconfig +7 -0
index f589978..428217b 100644
@@ -11,6 +11,13 @@ config DM_ETH
 	  This is currently implemented in net/eth.c
 	  Look in include/net.h for details.
 
+config DRIVER_TI_CPSW
+	bool "TI Common Platform Ethernet Switch"
+	select PHYLIB
+	help
+	  This driver supports the TI three port switch gigabit ethernet
+	  subsystem found in the TI SoCs.
+
 menuconfig NETDEVICES
 	bool "Network device support"
 	depends on NET
include/configs/am335x_shc.h +0 -1
index 6fa117e..5314aba 100644
@@ -251,7 +251,6 @@
 #undef CONFIG_TIMER
 #endif
 
-#define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
 #define CONFIG_BOOTP_DEFAULT
 #define CONFIG_BOOTP_DNS2
include/configs/am43xx_evm.h +0 -1
index 663f861..c1a6f00 100644
@@ -221,7 +221,6 @@
 #define CONFIG_NET_RETRY_COUNT		10
 #endif
 
-#define CONFIG_DRIVER_TI_CPSW
 #define PHY_ANEG_TIMEOUT	8000 /* PHY needs longer aneg time at 1G */
 
 #define CONFIG_SYS_RX_ETH_BUFFER	64
include/configs/am57xx_evm.h +0 -1
index c079a3a..7211cde 100644
@@ -78,7 +78,6 @@
 #define CONFIG_BOOTP_DNS2
 #define CONFIG_BOOTP_SEND_HOSTNAME
 #define CONFIG_NET_RETRY_COUNT		10
-#define CONFIG_DRIVER_TI_CPSW		/* Driver for IP block */
 #define CONFIG_MII			/* Required in net/eth.c */
 #define PHY_ANEG_TIMEOUT	8000	/* PHY needs longer aneg time at 1G */
 
include/configs/bur_am335x_common.h +0 -1
index e8abe53..6f4c710 100644
@@ -29,7 +29,6 @@
 #define CONFIG_SYS_NS16550_COM1		0x44e09000	/* UART0 */
 
 /* Network defines */
-#define CONFIG_DRIVER_TI_CPSW		/* Driver for IP block */
 #define CONFIG_MII			/* Required in net/eth.c */
 #define CONFIG_PHY_NATSEMI
 
include/configs/cl-som-am57x.h +0 -1
index 596e060..4b2a0c3 100644
@@ -81,7 +81,6 @@
 /* USB Networking options */
 
 /* CPSW Ethernet */
-#define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
 #define CONFIG_BOOTP_DEFAULT
 #define CONFIG_BOOTP_SEND_HOSTNAME
include/configs/cm_t43.h +0 -1
index da78519..07395de 100644
@@ -45,7 +45,6 @@
 					 50, 51, 52, 53, 54, 55, 56, 57, }
 
 /* CPSW Ethernet support */
-#define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
 #define CONFIG_BOOTP_DEFAULT
 #define CONFIG_BOOTP_SEND_HOSTNAME
include/configs/dra7xx_evm.h +0 -1
index e82de2a..13efc3e 100644
@@ -97,7 +97,6 @@
 #define CONFIG_BOOTP_DNS2
 #define CONFIG_BOOTP_SEND_HOSTNAME
 #define CONFIG_NET_RETRY_COUNT		10
-#define CONFIG_DRIVER_TI_CPSW		/* Driver for IP block */
 #define CONFIG_MII			/* Required in net/eth.c */
 #define CONFIG_PHY_TI
 
include/configs/siemens-am33x-common.h +0 -1
index b23e20a..dfa7114 100644
@@ -192,7 +192,6 @@
 # define CONFIG_ENV_SECT_SIZE		(4 << 10) /* 4 KB sectors */
 #endif /* SPI support */
 
-#define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
 #define CONFIG_BOOTP_DEFAULT
 #define CONFIG_BOOTP_DNS2
include/configs/ti814x_evm.h +0 -1
index 2f9056c..55df77d 100644
@@ -155,7 +155,6 @@
 #endif
 
 /* Ethernet */
-#define CONFIG_DRIVER_TI_CPSW
 #define CONFIG_MII
 #define CONFIG_BOOTP_DNS2
 #define CONFIG_BOOTP_SEND_HOSTNAME
include/configs/ti_am335x_common.h +0 -1
index 8251ceb..01002f4 100644
@@ -36,7 +36,6 @@
 #define CONFIG_MII			/* Required in net/eth.c */
 #endif
 
-#define CONFIG_DRIVER_TI_CPSW		/* Driver for IP block */
 /*
  * SPL related defines.  The Public RAM memory map the ROM defines the
  * area between 0x402F0400 and 0x4030B800 as a download area and
scripts/config_whitelist.txt +0 -1
index 0c7db05..79ec1ca 100644
@@ -411,7 +411,6 @@ CONFIG_DRIVER_NE2000_BASE
 CONFIG_DRIVER_NE2000_CCR
 CONFIG_DRIVER_NE2000_VAL
 CONFIG_DRIVER_SMC911X_BASE
-CONFIG_DRIVER_TI_CPSW
 CONFIG_DRIVER_TI_EMAC
 CONFIG_DRIVER_TI_EMAC_RMII_NO_NEGOTIATE
 CONFIG_DRIVER_TI_EMAC_USE_RMII
Signature · 1 line
2.7.4
#2 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Hi Alex,

Quoted 11 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

---

Changes in v2:
- Move DRIVER_TI_CPSW outside of the NETDEVICES guard
- Don't mark DRIVER_TI_CPSW default if ARCH_OMAP2PLUS to fix mistranslations by moveconfig

[..]

Quoted 20 lines
configs/am335x_pdu001_defconfig +1 -1
index cb75ec0..87ae88c 100644
@@ -9,13 +9,13 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-pdu001"
 CONFIG_LOCALVERSION="-EETS-1.0.0"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 # CONFIG_USE_BOOTCOMMAND is not set
-CONFIG_SPL=y
 # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y

configs/am335x_pdu001_defconfig CONFIG_DM_GPIO=y · line 42

Quoted 4 lines
configs/am335x_pdu001_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MMC_SDHCI=y
+CONFIG_DRIVER_TI_CPSW=y

Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.

configs/am335x_pdu001_defconfig CONFIG_DM_GPIO=y · line 45

Quoted 3 lines
configs/am335x_pdu001_defconfig +0 -0
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_DM_PMIC=y

regards, Felix

#3 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 52 lines · Felix Brack

Hi Alex,

Quoted 11 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

---

Changes in v2:
- Move DRIVER_TI_CPSW outside of the NETDEVICES guard
- Don't mark DRIVER_TI_CPSW default if ARCH_OMAP2PLUS to fix mistranslations by moveconfig

[..]

Quoted 20 lines
configs/am335x_pdu001_defconfig +1 -1
index cb75ec0..87ae88c 100644
@@ -9,13 +9,13 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-pdu001"
 CONFIG_LOCALVERSION="-EETS-1.0.0"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 # CONFIG_USE_BOOTCOMMAND is not set
-CONFIG_SPL=y
 # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y

configs/am335x_pdu001_defconfig CONFIG_DM_GPIO=y · line 42

Quoted 4 lines
configs/am335x_pdu001_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MMC_SDHCI=y
+CONFIG_DRIVER_TI_CPSW=y

Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

Quoted 12 lines

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.

Quoted 3 lines
configs/am335x_pdu001_defconfig +0 -0
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_DM_PMIC=y

Oh bother, thanks for trying it. I think in fixing the opposite problem from v1 I've missed a depends on NET. Is your board covered by the Travis tests as I did push v2 and got a green build?

Unfortunately my laptop decided to die overnight and I'm away from the office for a couple of weeks so I'll have to pick it up when I'm back.

Alex

Signature · 1 line
Alex Kiernan
#4 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 61 lines · Alex Kiernan
Quoted 60 lines · Felix Brack

Hi Alex,

Quoted 11 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

---

Changes in v2:
- Move DRIVER_TI_CPSW outside of the NETDEVICES guard
- Don't mark DRIVER_TI_CPSW default if ARCH_OMAP2PLUS to fix mistranslations by moveconfig

[..]

Quoted 20 lines
configs/am335x_pdu001_defconfig +1 -1
index cb75ec0..87ae88c 100644
@@ -9,13 +9,13 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-pdu001"
 CONFIG_LOCALVERSION="-EETS-1.0.0"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 # CONFIG_USE_BOOTCOMMAND is not set
-CONFIG_SPL=y
 # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y

configs/am335x_pdu001_defconfig CONFIG_DM_GPIO=y · line 42

Quoted 4 lines
configs/am335x_pdu001_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MMC_SDHCI=y
+CONFIG_DRIVER_TI_CPSW=y

Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.

Quoted 9 lines
Quoted 4 lines

configs/am335x_pdu001_defconfig CONFIG_DM_GPIO=y · line 45

Quoted 3 lines
configs/am335x_pdu001_defconfig +0 -0
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_DM_PMIC=y

Oh bother, thanks for trying it. I think in fixing the opposite problem from v1 I've missed a depends on NET. Is your board covered by the Travis tests as I did push v2 and got a green build?

From what I can see it is not, but I'm not sure. Using buildman with am335x would include it. I have verified that.

Quoted 5 lines

Unfortunately my laptop decided to die overnight and I'm away from the office for a couple of weeks so I'll have to pick it up when I'm back.

Alex

regards, Felix

#5 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 75 lines · Felix Brack
Quoted 61 lines · Alex Kiernan
Quoted 60 lines · Felix Brack

Hi Alex,

Quoted 11 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

---

Changes in v2:
- Move DRIVER_TI_CPSW outside of the NETDEVICES guard
- Don't mark DRIVER_TI_CPSW default if ARCH_OMAP2PLUS to fix mistranslations by moveconfig

[..]

Quoted 20 lines
configs/am335x_pdu001_defconfig +1 -1
index cb75ec0..87ae88c 100644
@@ -9,13 +9,13 @@ CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_LIBDISK_SUPPORT=y
 # CONFIG_SPL_NAND_SUPPORT is not set
 CONFIG_SPL_WATCHDOG_SUPPORT=y
+CONFIG_SPL=y
 CONFIG_SPL_FAT_SUPPORT=y
 CONFIG_DEFAULT_DEVICE_TREE="am335x-pdu001"
 CONFIG_LOCALVERSION="-EETS-1.0.0"
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTDELAY=1
 # CONFIG_USE_BOOTCOMMAND is not set
-CONFIG_SPL=y
 # CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR is not set
 CONFIG_SPL_I2C_SUPPORT=y
 CONFIG_SPL_YMODEM_SUPPORT=y

configs/am335x_pdu001_defconfig CONFIG_DM_GPIO=y · line 42

Quoted 4 lines
configs/am335x_pdu001_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_DM_GPIO=y
 CONFIG_DM_I2C=y
 CONFIG_MMC_OMAP_HS=y
 CONFIG_MMC_SDHCI=y
+CONFIG_DRIVER_TI_CPSW=y

Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.

Quoted 9 lines
Quoted 4 lines

configs/am335x_pdu001_defconfig CONFIG_DM_GPIO=y · line 45

Quoted 3 lines
configs/am335x_pdu001_defconfig +0 -0
 CONFIG_PINCTRL=y
 CONFIG_PINCTRL_SINGLE=y
 CONFIG_DM_PMIC=y

Oh bother, thanks for trying it. I think in fixing the opposite problem from v1 I've missed a depends on NET. Is your board covered by the Travis tests as I did push v2 and got a green build?

From what I can see it is not, but I'm not sure. Using buildman with am335x would include it. I have verified that.

Quoted 7 lines
Quoted 5 lines

Unfortunately my laptop decided to die overnight and I'm away from the office for a couple of weeks so I'll have to pick it up when I'm back.

Alex

regards, Felix

It is included, just found it, but looks like it doesn't fail because of that issue:

https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962

I clearly need to go and understand the Travis build a whole lot better.

Signature · 1 line
Alex Kiernan
#6 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

In reply to Alex Kiernan
Quoted 4 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180409/ecbc47c5/attachment.sig>
#8 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 5 lines · Felix Brack

Hi Tom,

Quoted 2 lines · Tom Rini

On Sun, Apr 01, 2018 at 09:22:34AM +0000, Alex Kiernan wrote:

Quoted 9 lines
Quoted 7 lines
Quoted 4 lines

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Sorry, we probably want to revert this one, or try adding "depends on NET" to DRIVER_TI_CPSW in drivers/net/Kconfig; I'm stuck without a laptop until the end of the week so I've not been able to get back to fix this :(

Signature · 1 line
Alex Kiernan
#9 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 13 lines · Alex Kiernan
Quoted 12 lines · Felix Brack

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 4 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Quoted 8 lines
Quoted 2 lines

Why did you apply this patch? It introduces a build warning?

Sorry, we probably want to revert this one, or try adding "depends on NET" to DRIVER_TI_CPSW in drivers/net/Kconfig; I'm stuck without a laptop until the end of the week so I've not been able to get back to fix this :(

Please do _not_ add this dependency to "solve" the build problem I reported. This would just blow up the U-Boot code for the PDU001 board.

As already stated: it is best to remove CONFIG_DRIVER_TI_CPSW=y from configs/am335x_pdu001_defconfig leaving this file unchanged.

Felix

#10 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 23 lines · Felix Brack
Quoted 13 lines · Alex Kiernan
Quoted 12 lines · Felix Brack

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 4 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Quoted 8 lines
Quoted 2 lines

Why did you apply this patch? It introduces a build warning?

Sorry, we probably want to revert this one, or try adding "depends on NET" to DRIVER_TI_CPSW in drivers/net/Kconfig; I'm stuck without a laptop until the end of the week so I've not been able to get back to fix this :(

Quoted 6 lines

Please do _not_ add this dependency to "solve" the build problem I reported. This would just blow up the U-Boot code for the PDU001 board.

As already stated: it is best to remove CONFIG_DRIVER_TI_CPSW=y from configs/am335x_pdu001_defconfig leaving this file unchanged.

That only fixes that one board - agreed, it wants removing from that config, but there's doubtless others which don't have NET enabled. My thinking was add the depends and then redo the moveconfig which would then remove it from all other boards too.

Tom, probably best to revert this one and I'll get a correct patch done when I'm back (should be early next week).

Signature · 1 line
Alex Kiernan
#11 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 27 lines · Alex Kiernan
Quoted 26 lines · Felix Brack
Quoted 13 lines · Alex Kiernan
Quoted 12 lines · Felix Brack

Hi Tom,

Quoted 9 lines · Tom Rini
Quoted 4 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Quoted 8 lines
Quoted 2 lines

Why did you apply this patch? It introduces a build warning?

Sorry, we probably want to revert this one, or try adding "depends on NET" to DRIVER_TI_CPSW in drivers/net/Kconfig; I'm stuck without a laptop until the end of the week so I've not been able to get back to fix this :(

Please do _not_ add this dependency to "solve" the build problem I reported. This would just blow up the U-Boot code for the PDU001 board.

Quoted 9 lines
Quoted 3 lines

As already stated: it is best to remove CONFIG_DRIVER_TI_CPSW=y from configs/am335x_pdu001_defconfig leaving this file unchanged.

That only fixes that one board - agreed, it wants removing from that config, but there's doubtless others which don't have NET enabled. My thinking was add the depends and then redo the moveconfig which would then remove it from all other boards too.

Okay, I see. As I'm the maintainer of this board, that was my only focus. My focus was not on the patch as a whole, sorry.

Quoted 3 lines

Tom, probably best to revert this one and I'll get a correct patch done when I'm back (should be early next week).

Agreed. However, knowing that it will get fixed, I could also live with that warning for some weeks ;)

Felix

#12 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

In reply to Felix Brack
Quoted 5 lines · Felix Brack

Hi Tom,

Quoted 2 lines · Tom Rini

On Sun, Apr 01, 2018 at 09:22:34AM +0000, Alex Kiernan wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180410/d5d5ae90/attachment.sig>
#13 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Felix

#14 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 14 lines · Felix Brack
Quoted 13 lines · Tom Rini
Quoted 12 lines · Felix Brack

Hi Tom,

Quoted 8 lines · Tom Rini
Quoted 4 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180410/9ed1f465/attachment.sig>
#15 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 19 lines · Tom Rini
Quoted 18 lines · Felix Brack
Quoted 17 lines · Tom Rini
Quoted 5 lines · Felix Brack

Hi Tom,

Quoted 2 lines · Tom Rini

On Sun, Apr 01, 2018 at 09:22:34AM +0000, Alex Kiernan wrote:

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Quoted 9 lines
Quoted 4 lines

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

Felix

#16 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 25 lines · Felix Brack
Quoted 24 lines · Tom Rini
Quoted 22 lines · Felix Brack
Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Quoted 5 lines
Quoted 3 lines

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

But then what are you using the CPSW driver for?

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180410/1a6eafe6/attachment.sig>
#17 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 26 lines · Tom Rini
Quoted 25 lines · Felix Brack
Quoted 24 lines · Tom Rini
Quoted 22 lines · Felix Brack
Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

But then what are you using the CPSW driver for?

I don't really understand your question. This patch is from Alex, i.e. I am not the author of the patch. I never asked for CPSW driver support for the PDU001 board. Here is what I wrote April 2nd:

[quote on]
Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.
[quote off]

So the solution for the PDU001 board warning problem is _not_ to add NET but to remove CPSW. This leaves the file configs/am355x_pdu001_defconfig unchanged by this patch and that is what I suggested as solution. In other words: the PDU001 board (for now) does not provide any network support in U-Boot.

Felix

#18 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 59 lines · Felix Brack
Quoted 26 lines · Tom Rini
Quoted 25 lines · Felix Brack
Quoted 24 lines · Tom Rini
Quoted 22 lines · Felix Brack
Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

But then what are you using the CPSW driver for?

I don't really understand your question. This patch is from Alex, i.e. I am not the author of the patch. I never asked for CPSW driver support for the PDU001 board. Here is what I wrote April 2nd:

[quote on]
Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.
[quote off]

Quoted 5 lines

So the solution for the PDU001 board warning problem is _not_ to add NET but to remove CPSW. This leaves the file configs/am355x_pdu001_defconfig unchanged by this patch and that is what I suggested as solution. In other words: the PDU001 board (for now) does not provide any network support in U-Boot.

Ah, OK. My fault, I'll fixup the config and re-run migration to be sure nothing else was wrong here. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180410/39abae24/attachment.sig>
#19 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

In reply to Felix Brack
Quoted 59 lines · Felix Brack
Quoted 26 lines · Tom Rini
Quoted 25 lines · Felix Brack
Quoted 24 lines · Tom Rini
Quoted 22 lines · Felix Brack
Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

But then what are you using the CPSW driver for?

I don't really understand your question. This patch is from Alex, i.e. I am not the author of the patch. I never asked for CPSW driver support for the PDU001 board. Here is what I wrote April 2nd:

[quote on]
Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.
[quote off]

Quoted 5 lines

So the solution for the PDU001 board warning problem is _not_ to add NET but to remove CPSW. This leaves the file configs/am355x_pdu001_defconfig unchanged by this patch and that is what I suggested as solution. In other words: the PDU001 board (for now) does not provide any network support in U-Boot.

So, ah-ha-ha! At heart, include/configs/pdu001.h grabs include/configs/ti_am335x_common.h which was always enabling the CPSW driver. So the migration picked that up. But since you're saying your platform does not want CPSW, we can just drop that now. Thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180410/1fcd5911/attachment.sig>
#20 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 66 lines · Tom Rini
Quoted 59 lines · Felix Brack
Quoted 26 lines · Tom Rini
Quoted 25 lines · Felix Brack
Quoted 24 lines · Tom Rini
Quoted 22 lines · Felix Brack
Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

But then what are you using the CPSW driver for?

I don't really understand your question. This patch is from Alex, i.e. I am not the author of the patch. I never asked for CPSW driver support for the PDU001 board. Here is what I wrote April 2nd:

[quote on]
Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.
[quote off]

Quoted 5 lines

So the solution for the PDU001 board warning problem is _not_ to add NET but to remove CPSW. This leaves the file configs/am355x_pdu001_defconfig unchanged by this patch and that is what I suggested as solution. In other words: the PDU001 board (for now) does not provide any network support in U-Boot.

Quoted 5 lines

So, ah-ha-ha! At heart, include/configs/pdu001.h grabs include/configs/ti_am335x_common.h which was always enabling the CPSW driver. So the migration picked that up. But since you're saying your platform does not want CPSW, we can just drop that now. Thanks!

Ah, so you're going to drop configs/am355x_pdu001_defconfig from the patch, correct?

Felix

#21 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 67 lines · Felix Brack
Quoted 66 lines · Tom Rini
Quoted 64 lines · Felix Brack
Quoted 26 lines · Tom Rini
Quoted 25 lines · Felix Brack
Quoted 24 lines · Tom Rini
Quoted 22 lines · Felix Brack
Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

But then what are you using the CPSW driver for?

I don't really understand your question. This patch is from Alex, i.e. I am not the author of the patch. I never asked for CPSW driver support for the PDU001 board. Here is what I wrote April 2nd:

[quote on]
Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.
[quote off]

So the solution for the PDU001 board warning problem is _not_ to add NET but to remove CPSW. This leaves the file configs/am355x_pdu001_defconfig unchanged by this patch and that is what I suggested as solution. In other words: the PDU001 board (for now) does not provide any network support in U-Boot.

Quoted 7 lines
Quoted 5 lines

So, ah-ha-ha! At heart, include/configs/pdu001.h grabs include/configs/ti_am335x_common.h which was always enabling the CPSW driver. So the migration picked that up. But since you're saying your platform does not want CPSW, we can just drop that now. Thanks!

Ah, so you're going to drop configs/am355x_pdu001_defconfig from the patch, correct?

I'm dropping that hunk out, and a few other small clean-ups (am43xx_evm_rtconly is out of sync, and there's a few places with non-applicable CPSW comments blocks now).

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180410/aa60aae5/attachment.sig>
#22 lore raw

PATCH v2 1/5 Migrate CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 73 lines · Tom Rini
Quoted 72 lines · Felix Brack
Quoted 71 lines · Tom Rini
Quoted 59 lines · Felix Brack
Quoted 26 lines · Tom Rini
Quoted 25 lines · Felix Brack
Quoted 24 lines · Tom Rini
Quoted 22 lines · Felix Brack
Quoted 8 lines · Tom Rini
Quoted 7 lines · Felix Brack

Hi Tom,

Quoted 4 lines · Tom Rini
Quoted 2 lines · Alex Kiernan

This converts CONFIG_DRIVER_TI_CPSW to Kconfig

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Applied to u-boot/master, thanks!

Why did you apply this patch? It introduces a build warning?

Wait, where does it introduce a warning? Thanks!

Please see my post from April 2nd on top of this thread in reply to "[PATCH v2 1/5] Migrate CONFIG_DRIVER_TI_CPSW to Kconfig". It is identical to the warning that shows up in the log provide by Alex's link: https://travis-ci.org/akiernan/u-boot/jobs/360830565#L962.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Ahhh. Doesn't fail travis and I had a local goof-up and missed it in my build logs. Sorry. Now, you have the CPSW driver enabled, but don't want NET? Or am I misunderstanding? Thanks!

Exactly, the board doesn't need NET.

But then what are you using the CPSW driver for?

I don't really understand your question. This patch is from Alex, i.e. I am not the author of the patch. I never asked for CPSW driver support for the PDU001 board. Here is what I wrote April 2nd:

[quote on]
Applying this patch series generates the following warning while creating the default configuration for board PDU001:

warning: (BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && BOARD_SPECIFIC_OPTIONS && DRIVER_TI_CPSW && AG7XXX && ALTERA_TSE && BCM_SF2_ETH && DWC_ETH_QOS && ETH_DESIGNWARE && MVNETA && MVPP2 && MACB && PCH_GBE && SUN4I_EMAC && SUN8I_EMAC && SH_ETHER && XILINX_AXIEMAC && XILINX_EMACLITE && ZYNQ_GEM && PIC32_ETH && RENESAS_RAVB) selects PHYLIB which has unmet direct dependencies (NET)

This is due to the patch enabling CONFIG_DRIVER_TI_CPSW while leaving CONFIG_NET disabled.
This board does not require/have network support for U-Boot so there is no need or benefit activating CONFIG_DRIVER_TI_CPSW here. Leaving the file configs/am355x_pdu001_defconfig without any modifications will make your patch work properly and result in a clean, warning and error free, build for the PDU001 board.
[quote off]

Quoted 5 lines

So the solution for the PDU001 board warning problem is _not_ to add NET but to remove CPSW. This leaves the file configs/am355x_pdu001_defconfig unchanged by this patch and that is what I suggested as solution. In other words: the PDU001 board (for now) does not provide any network support in U-Boot.

So, ah-ha-ha! At heart, include/configs/pdu001.h grabs include/configs/ti_am335x_common.h which was always enabling the CPSW driver. So the migration picked that up. But since you're saying your platform does not want CPSW, we can just drop that now. Thanks!

Quoted 7 lines
Quoted 2 lines

Ah, so you're going to drop configs/am355x_pdu001_defconfig from the patch, correct?

I'm dropping that hunk out, and a few other small clean-ups (am43xx_evm_rtconly is out of sync, and there's a few places with non-applicable CPSW comments blocks now).

Okay, sounds good. Please CC me for the modified patch.

many thanks, Felix

#23 lore raw

PATCH v2 2/5 ti: am335x: Fix bootargs when building without NET

In reply to Alex Kiernan

If DHCP/PXE commands are disabled then the compilation fails due to bootargs attempting to use them:

include/config_distro_bootcmd.h:319:2: error: expected ‘}’ before ‘BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE’

Ensure that if the command aren't enabled, we don't try and use them.

---

Changes in v2: None

 include/configs/am335x_evm.h | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)
include/configs/am335x_evm.h +14 -2
index 158b7d4..e8b4125 100644
@@ -74,14 +74,26 @@
 #define BOOTENV_DEV_NAME_NAND(devtypeu, devtypel, instance) \
 	#devtypel #instance " "
 
+#if CONFIG_IS_ENABLED(CMD_PXE)
+# define BOOT_TARGET_PXE(func) func(PXE, pxe, na)
+#else
+# define BOOT_TARGET_PXE(func)
+#endif
+
+#if CONFIG_IS_ENABLED(CMD_DHCP)
+# define BOOT_TARGET_DHCP(func) func(DHCP, dhcp, na)
+#else
+# define BOOT_TARGET_DHCP(func)
+#endif
+
 #define BOOT_TARGET_DEVICES(func) \
 	func(MMC, mmc, 0) \
 	func(LEGACY_MMC, legacy_mmc, 0) \
 	func(MMC, mmc, 1) \
 	func(LEGACY_MMC, legacy_mmc, 1) \
 	func(NAND, nand, 0) \
-	func(PXE, pxe, na) \
-	func(DHCP, dhcp, na)
+	BOOT_TARGET_PXE(func) \
+	BOOT_TARGET_DHCP(func)
 
 #include <config_distro_bootcmd.h>
 
Signature · 1 line
2.7.4
#24 lore raw

PATCH v2 2/5 ti: am335x: Fix bootargs when building without NET

Quoted 9 lines · Alex Kiernan

If DHCP/PXE commands are disabled then the compilation fails due to bootargs attempting to use them:

include/config_distro_bootcmd.h:319:2: error: expected ‘}’ before ‘BOOT_TARGET_DEVICES_references_PXE_without_CONFIG_CMD_DHCP_or_PXE’

Ensure that if the command aren't enabled, we don't try and use them.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180409/2302661b/attachment.sig>
#25 lore raw

PATCH v2 3/5 usb: gadget: USB_ETHER requires network support

In reply to Alex Kiernan

In order to compile the USB Ethernet gadget support we require that NET is enabled, add that dependency here.

---

Changes in v2: None

 drivers/usb/gadget/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/gadget/Kconfig +1 -0
index 6825e6b..26b4d12 100644
@@ -158,6 +158,7 @@ endif # USB_GADGET_DOWNLOAD
 
 config USB_ETHER
 	bool "USB Ethernet Gadget"
+	depends on NET
 	default y if ARCH_SUNXI && USB_MUSB_GADGET
 	help
 	  Creates an Ethernet network device through a USB peripheral
Signature · 1 line
2.7.4
#26 lore raw

PATCH v2 3/5 usb: gadget: USB_ETHER requires network support

Quoted 5 lines · Alex Kiernan

In order to compile the USB Ethernet gadget support we require that NET is enabled, add that dependency here.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180409/fffd2627/attachment.sig>
#27 lore raw

PATCH v2 4/5 ti: am335x: Fix build when networking is disabled

In reply to Alex Kiernan

When compiling without CONFIG_CLOCK_SYNTHESIZER (which is implied by CONFIG_DRIVER_TI_CPSW for am335x_evm), exclude the network setup for AM335x-ICEv2 to avoid link time failures:

board/ti/am335x/board.c:683: undefined reference to `setup_clock_synthesizer'

---

Changes in v2: None

 board/ti/am335x/board.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
board/ti/am335x/board.c +4 -4
index f802657..5709afb 100644
@@ -563,8 +563,8 @@ void sdram_init(void)
 }
 #endif
 
-#if !defined(CONFIG_SPL_BUILD) || \
-	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))
+#if defined(CONFIG_CLOCK_SYNTHESIZER) && (!defined(CONFIG_SPL_BUILD) || \
+	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD)))
 static void request_and_set_gpio(int gpio, char *name, int val)
 {
 	int ret;
@@ -621,8 +621,8 @@ int board_init(void)
 	gpmc_init();
 #endif
 
-#if !defined(CONFIG_SPL_BUILD) || \
-	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD))
+#if defined(CONFIG_CLOCK_SYNTHESIZER) && (!defined(CONFIG_SPL_BUILD) || \
+	(defined(CONFIG_SPL_ETH_SUPPORT) && defined(CONFIG_SPL_BUILD)))
 	if (board_is_icev2()) {
 		int rv;
 		u32 reg;
Signature · 1 line
2.7.4
#28 lore raw

PATCH v2 4/5 ti: am335x: Fix build when networking is disabled

Quoted 7 lines · Alex Kiernan

When compiling without CONFIG_CLOCK_SYNTHESIZER (which is implied by CONFIG_DRIVER_TI_CPSW for am335x_evm), exclude the network setup for AM335x-ICEv2 to avoid link time failures:

board/ti/am335x/board.c:683: undefined reference to `setup_clock_synthesizer'

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180409/c829a9a5/attachment.sig>
#29 lore raw

PATCH v2 5/5 net: Move enetaddr env access code to env config instead of net config

In reply to Alex Kiernan

In order that we can use eth_env_* even when CONFIG_NET isn't set, move these functions to environment code from net code.

This fixes failures such as:

board/ti/am335x/built-in.o: In function `board_late_init':
board/ti/am335x/board.c:752: undefined reference to eth_env_set_enetaddr' u-boot/board/ti/am335x/board.c:766: undefined reference to eth_env_set_enetaddr'

which caters for use cases such as:

commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environment variable")

when Ethernet is required in Linux, but not U-Boot.

---

Changes in v2:
- Moved enetaddr env access declarations to include/environment.h
- Replace uchar with uint8_t in eth_env_* to avoid dependency on include/common.h
- include environment.h where needed to satisfy eth_env_* dependencies

 arch/arm/cpu/arm926ejs/spear/spr_misc.c           |  1 +
 arch/arm/mach-davinci/misc.c                      |  1 +
 arch/arm/mach-omap2/utils.c                       |  1 +
 arch/powerpc/cpu/mpc85xx/fdt.c                    |  1 +
 board/BuR/common/common.c                         |  1 +
 board/CZ.NIC/turris_omnia/turris_omnia.c          |  1 +
 board/LaCie/net2big_v2/net2big_v2.c               |  1 +
 board/LaCie/netspace_v2/netspace_v2.c             |  1 +
 board/amlogic/khadas-vim/khadas-vim.c             |  1 +
 board/amlogic/libretech-cc/libretech-cc.c         |  1 +
 board/amlogic/odroid-c2/odroid-c2.c               |  1 +
 board/amlogic/p212/p212.c                         |  1 +
 board/atmel/common/mac_eeprom.c                   |  1 +
 board/buffalo/lsxl/lsxl.c                         |  1 +
 board/compulab/cl-som-am57x/eth.c                 |  1 +
 board/compulab/cl-som-imx7/cl-som-imx7.c          |  1 +
 board/compulab/cm_fx6/cm_fx6.c                    |  1 +
 board/compulab/cm_t335/cm_t335.c                  |  1 +
 board/compulab/cm_t35/cm_t35.c                    |  1 +
 board/compulab/cm_t3517/cm_t3517.c                |  1 +
 board/compulab/cm_t54/cm_t54.c                    |  1 +
 board/davinci/da8xxevm/da850evm.c                 |  1 +
 board/dhelectronics/dh_imx6/dh_imx6.c             |  1 +
 board/gateworks/gw_ventana/gw_ventana.c           |  1 +
 board/ge/mx53ppd/mx53ppd.c                        |  1 +
 board/kosagi/novena/novena.c                      |  1 +
 board/logicpd/zoom1/zoom1.c                       |  1 +
 board/phytec/pcm051/board.c                       |  1 +
 board/phytec/phycore_rk3288/phycore-rk3288.c      |  1 +
 board/raspberrypi/rpi/rpi.c                       |  1 +
 board/renesas/alt/alt.c                           |  1 +
 board/renesas/blanche/blanche.c                   |  1 +
 board/renesas/gose/gose.c                         |  1 +
 board/renesas/koelsch/koelsch.c                   |  1 +
 board/renesas/lager/lager.c                       |  1 +
 board/renesas/sh7752evb/sh7752evb.c               |  1 +
 board/renesas/sh7753evb/sh7753evb.c               |  1 +
 board/renesas/sh7757lcr/sh7757lcr.c               |  1 +
 board/renesas/silk/silk.c                         |  1 +
 board/renesas/stout/stout.c                       |  1 +
 board/rockchip/tinker_rk3288/tinker-rk3288.c      |  1 +
 board/samtec/vining_2000/vining_2000.c            |  1 +
 board/samtec/vining_fpga/socfpga.c                |  1 +
 board/siemens/common/factoryset.c                 |  1 +
 board/siemens/pxm2/board.c                        |  1 +
 board/silica/pengwyn/board.c                      |  1 +
 board/technologic/ts4800/ts4800.c                 |  1 +
 board/theobroma-systems/puma_rk3399/puma-rk3399.c |  1 +
 board/ti/am43xx/board.c                           |  1 +
 board/ti/ti814x/evm.c                             |  1 +
 board/ti/ti816x/evm.c                             |  1 +
 board/timll/devkit8000/devkit8000.c               |  1 +
 board/toradex/common/tdx-common.c                 |  1 +
 cmd/elf.c                                         |  1 +
 cmd/ethsw.c                                       |  1 +
 cmd/nvedit.c                                      | 30 ++++++++++++++++++++++
 drivers/net/cpsw-common.c                         |  1 +
 drivers/net/fec_mxc.c                             |  1 +
 drivers/net/fsl_mcdmafec.c                        |  1 +
 drivers/net/mcffec.c                              |  1 +
 drivers/net/ne2000_base.c                         |  1 +
 drivers/net/sh_eth.c                              |  1 +
 drivers/usb/gadget/ether.c                        |  1 +
 include/environment.h                             |  4 +++
 include/net.h                                     |  3 ---
 net/eth_common.c                                  | 31 +----------------------
 66 files changed, 97 insertions(+), 33 deletions(-)
arch/arm/cpu/arm926ejs/spear/spr_misc.c +1 -0
index a02304f..f072f2e 100644
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <environment.h>
 #include <i2c.h>
 #include <net.h>
 #include <linux/mtd/st_smi.h>
arch/arm/mach-davinci/misc.c +1 -0
index 461ff77..7b9d961 100644
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <i2c.h>
 #include <net.h>
 #include <asm/arch/hardware.h>
arch/arm/mach-omap2/utils.c +1 -0
index 7d1ca27..1d39625 100644
@@ -5,6 +5,7 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 #include <common.h>
+#include <environment.h>
 #include <asm/setup.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/omap_common.h>
arch/powerpc/cpu/mpc85xx/fdt.c +1 -0
index e1fee11..3bdaa5f 100644
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <linux/libfdt.h>
 #include <fdt_support.h>
 #include <asm/processor.h>
board/BuR/common/common.c +1 -0
index d82b8cd..f0a97fa 100644
@@ -11,6 +11,7 @@
  */
 #include <version.h>
 #include <common.h>
+#include <environment.h>
 #include <errno.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
board/CZ.NIC/turris_omnia/turris_omnia.c +1 -0
index b03c0a3..c693aae 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <i2c.h>
 #include <miiphy.h>
 #include <netdev.h>
board/LaCie/net2big_v2/net2big_v2.c +1 -0
index f639a37..3e070d2 100644
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <environment.h>
 #include <i2c.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
board/LaCie/netspace_v2/netspace_v2.c +1 -0
index 52f3664..3bd9fa9 100644
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <environment.h>
 #include <asm/mach-types.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
board/amlogic/khadas-vim/khadas-vim.c +1 -0
index 5e19856..83b1b6e 100644
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gxbb.h>
 #include <asm/arch/mem.h>
board/amlogic/libretech-cc/libretech-cc.c +1 -0
index 6be6e2a..5795340 100644
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gxbb.h>
 #include <asm/arch/sm.h>
board/amlogic/odroid-c2/odroid-c2.c +1 -0
index 0cb5714..8645f22 100644
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gxbb.h>
 #include <asm/arch/sm.h>
board/amlogic/p212/p212.c +1 -0
index 5fde534..7c0abbc 100644
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <asm/io.h>
 #include <asm/arch/gxbb.h>
 #include <asm/arch/sm.h>
board/atmel/common/mac_eeprom.c +1 -0
index 60ddf00..91b86e0 100644
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
 
board/buffalo/lsxl/lsxl.c +1 -0
index 2d01ac2..8ae4207 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <net.h>
 #include <malloc.h>
 #include <netdev.h>
board/compulab/cl-som-am57x/eth.c +1 -0
index b615fb9..9f9525e 100644
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpsw.h>
+#include <environment.h>
 #include <miiphy.h>
 #include <asm/gpio.h>
 #include <asm/arch/sys_proto.h>
board/compulab/cl-som-imx7/cl-som-imx7.c +1 -0
index f8b1cda..dfa81f5 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <mmc.h>
 #include <phy.h>
 #include <netdev.h>
board/compulab/cm_fx6/cm_fx6.c +1 -0
index 673de03..c72efc5 100644
@@ -12,6 +12,7 @@
 #include <ahci.h>
 #include <dm.h>
 #include <dwc_ahsata.h>
+#include <environment.h>
 #include <fsl_esdhc.h>
 #include <miiphy.h>
 #include <mtd_node.h>
board/compulab/cm_t335/cm_t335.c +1 -0
index 6f6ba49..6eabd38 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <errno.h>
 #include <miiphy.h>
 #include <cpsw.h>
board/compulab/cm_t35/cm_t35.c +1 -0
index d5cfba4..e8f604f 100644
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <status_led.h>
 #include <netdev.h>
 #include <net.h>
board/compulab/cm_t3517/cm_t3517.c +1 -0
index 0ff49dc..e4e3460 100644
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <status_led.h>
 #include <net.h>
 #include <netdev.h>
board/compulab/cm_t54/cm_t54.c +1 -0
index 3e6235a..a1aeafb 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <fdt_support.h>
 #include <usb.h>
 #include <mmc.h>
board/davinci/da8xxevm/da850evm.c +1 -0
index 83c9f29..37a0d72 100644
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <i2c.h>
 #include <net.h>
 #include <netdev.h>
board/dhelectronics/dh_imx6/dh_imx6.c +1 -0
index b00d0e4..1d8b831 100644
@@ -19,6 +19,7 @@
 #include <asm/mach-imx/iomux-v3.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/sata.h>
+#include <environment.h>
 #include <errno.h>
 #include <fsl_esdhc.h>
 #include <fuse.h>
board/gateworks/gw_ventana/gw_ventana.c +1 -0
index 4ddc7e1..332c506 100644
@@ -22,6 +22,7 @@
 #include <asm/setup.h>
 #include <dm.h>
 #include <dm/platform_data/serial_mxc.h>
+#include <environment.h>
 #include <hwconfig.h>
 #include <i2c.h>
 #include <fdt_support.h>
board/ge/mx53ppd/mx53ppd.c +1 -0
index 90dbccc..0010998 100644
@@ -20,6 +20,7 @@
 #include <linux/errno.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/mx5_video.h>
+#include <environment.h>
 #include <netdev.h>
 #include <i2c.h>
 #include <mmc.h>
board/kosagi/novena/novena.c +1 -0
index f0ace03..91bc9c2 100644
@@ -21,6 +21,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/mach-imx/sata.h>
 #include <asm/mach-imx/video.h>
+#include <environment.h>
 #include <fsl_esdhc.h>
 #include <i2c.h>
 #include <input.h>
board/logicpd/zoom1/zoom1.c +1 -0
index e6c2526..fe1183b 100644
@@ -16,6 +16,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <ns16550.h>
 #include <netdev.h>
 #include <twl4030.h>
board/phytec/pcm051/board.c +1 -0
index 52ad5b6..c57625b 100644
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <errno.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
board/phytec/phycore_rk3288/phycore-rk3288.c +1 -0
index 47b069e..a1b407d 100644
@@ -8,6 +8,7 @@
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <i2c.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
board/raspberrypi/rpi/rpi.c +1 -0
index 177f4af..532fbc4 100644
@@ -8,6 +8,7 @@
 #include <inttypes.h>
 #include <config.h>
 #include <dm.h>
+#include <environment.h>
 #include <efi_loader.h>
 #include <fdt_support.h>
 #include <fdt_simplefb.h>
board/renesas/alt/alt.c +1 -0
index 0bf8160..f2200ef 100644
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
+#include <environment.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/blanche/blanche.c +1 -0
index 574dcda..5dc3073 100644
@@ -12,6 +12,7 @@
 #include <netdev.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
+#include <environment.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/gose/gose.c +1 -0
index 54e1269..99d4ba6 100644
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
+#include <environment.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/koelsch/koelsch.c +1 -0
index 8fa648e..e7b47ae 100644
@@ -11,6 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
+#include <environment.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/lager/lager.c +1 -0
index 562be04..3566bcc 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <malloc.h>
 #include <netdev.h>
 #include <dm.h>
board/renesas/sh7752evb/sh7752evb.c +1 -0
index 4a76fb7..5da6f39 100644
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <malloc.h>
 #include <asm/processor.h>
 #include <asm/io.h>
board/renesas/sh7753evb/sh7753evb.c +1 -0
index ca9e144..8604d88 100644
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <malloc.h>
 #include <asm/processor.h>
 #include <asm/io.h>
board/renesas/sh7757lcr/sh7757lcr.c +1 -0
index 3f970fc..1c598fb 100644
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <malloc.h>
 #include <asm/processor.h>
 #include <asm/io.h>
board/renesas/silk/silk.c +1 -0
index a8de402..9e2080b 100644
@@ -11,6 +11,7 @@
 #include <malloc.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
+#include <environment.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/renesas/stout/stout.c +1 -0
index d681148..3cb16db 100644
@@ -14,6 +14,7 @@
 #include <netdev.h>
 #include <dm.h>
 #include <dm/platform_data/serial_sh.h>
+#include <environment.h>
 #include <asm/processor.h>
 #include <asm/mach-types.h>
 #include <asm/io.h>
board/rockchip/tinker_rk3288/tinker-rk3288.c +1 -0
index 790a921..0f2abe2 100644
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <i2c_eeprom.h>
 #include <netdev.h>
 
board/samtec/vining_2000/vining_2000.c +1 -0
index cced08b..0cc8421 100644
@@ -18,6 +18,7 @@
 #include <asm/mach-imx/mxc_i2c.h>
 #include <linux/sizes.h>
 #include <common.h>
+#include <environment.h>
 #include <fsl_esdhc.h>
 #include <mmc.h>
 #include <i2c.h>
board/samtec/vining_fpga/socfpga.c +1 -0
index 229b12f..14ac7ef 100644
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
board/siemens/common/factoryset.c +1 -0
index 7fa2673..f3e82d4 100644
@@ -9,6 +9,7 @@
 #if !defined(CONFIG_SPL_BUILD)
 
 #include <common.h>
+#include <environment.h>
 #include <i2c.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
board/siemens/pxm2/board.c +1 -0
index 8bbb035..ab54e58 100644
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <errno.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
board/silica/pengwyn/board.c +1 -0
index 0429e6f..e736afb 100644
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/ddr_defs.h>
board/technologic/ts4800/ts4800.c +1 -0
index e5bec57..c4dad69 100644
@@ -17,6 +17,7 @@
 #include <asm/arch/crm_regs.h>
 #include <asm/arch/clock.h>
 #include <asm/mach-imx/mx5_video.h>
+#include <environment.h>
 #include <mmc.h>
 #include <input.h>
 #include <fsl_esdhc.h>
board/theobroma-systems/puma_rk3399/puma-rk3399.c +1 -0
index c6690fa..1d8b605 100644
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <misc.h>
 #include <spl.h>
 #include <syscon.h>
board/ti/am43xx/board.c +1 -0
index 715960a..07c0ab0 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <i2c.h>
 #include <linux/errno.h>
 #include <spl.h>
board/ti/ti814x/evm.c +1 -0
index cdde6a8..4a0f829 100644
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <cpsw.h>
+#include <environment.h>
 #include <errno.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
board/ti/ti816x/evm.c +1 -0
index cb40cc5..abc961a 100644
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <spl.h>
 #include <netdev.h>
 #include <asm/cache.h>
board/timll/devkit8000/devkit8000.c +1 -0
index 741b3ac..4bbbd81 100644
@@ -18,6 +18,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <ns16550.h>
 #include <twl4030.h>
 #include <asm/io.h>
board/toradex/common/tdx-common.c +1 -0
index 6e12d27..d6d3671 100644
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <g_dnl.h>
 #include <linux/libfdt.h>
 
cmd/elf.c +1 -0
index 5b59fc6..110e8e0 100644
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <command.h>
 #include <elf.h>
+#include <environment.h>
 #include <net.h>
 #include <vxworks.h>
 #ifdef CONFIG_X86
cmd/ethsw.c +1 -0
index b600965..92a60b4 100644
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <command.h>
+#include <environment.h>
 #include <errno.h>
 #include <env_flags.h>
 #include <ethsw.h>
cmd/nvedit.c +30 -0
index 4cb25b8..9838678 100644
@@ -341,6 +341,36 @@ ulong env_get_hex(const char *varname, ulong default_val)
 	return value;
 }
 
+void eth_parse_enetaddr(const char *addr, uint8_t *enetaddr)
+{
+	char *end;
+	int i;
+
+	for (i = 0; i < 6; ++i) {
+		enetaddr[i] = addr ? simple_strtoul(addr, &end, 16) : 0;
+		if (addr)
+			addr = (*end) ? end + 1 : end;
+	}
+}
+
+int eth_env_get_enetaddr(const char *name, uint8_t *enetaddr)
+{
+	eth_parse_enetaddr(env_get(name), enetaddr);
+	return is_valid_ethaddr(enetaddr);
+}
+
+int eth_env_set_enetaddr(const char *name, const uint8_t *enetaddr)
+{
+	char buf[ARP_HLEN_ASCII + 1];
+
+	if (eth_env_get_enetaddr(name, (uint8_t *)buf))
+		return -EEXIST;
+
+	sprintf(buf, "%pM", enetaddr);
+
+	return env_set(name, buf);
+}
+
 #ifndef CONFIG_SPL_BUILD
 static int do_env_set(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
drivers/net/cpsw-common.c +1 -0
index 0dc83ab..7bd312a 100644
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <fdt_support.h>
 #include <asm/io.h>
 #include <cpsw.h>
drivers/net/fec_mxc.c +1 -0
index ff7ad91..29af85c 100644
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <malloc.h>
 #include <memalign.h>
 #include <miiphy.h>
drivers/net/fsl_mcdmafec.c +1 -0
index 2d89cea..00d905c 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <malloc.h>
 #include <command.h>
 #include <config.h>
drivers/net/mcffec.c +1 -0
index ebcbed9..505a2d1 100644
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <environment.h>
 #include <malloc.h>
 
 #include <command.h>
drivers/net/ne2000_base.c +1 -0
index fb088e0..421aa20 100644
@@ -74,6 +74,7 @@ Add SNMP
 
 #include <common.h>
 #include <command.h>
+#include <environment.h>
 #include <net.h>
 #include <malloc.h>
 #include <linux/compiler.h>
drivers/net/sh_eth.c +1 -0
index 6f48e93..e3416f3 100644
@@ -11,6 +11,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <environment.h>
 #include <malloc.h>
 #include <net.h>
 #include <netdev.h>
drivers/usb/gadget/ether.c +1 -0
index a80486e..386505d 100644
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <console.h>
+#include <environment.h>
 #include <linux/errno.h>
 #include <linux/netdevice.h>
 #include <linux/usb/ch9.h>
include/environment.h +4 -0
index 7986a24..1b52353 100644
@@ -314,6 +314,10 @@ int env_load(void);
  */
 int env_save(void);
 
+void eth_parse_enetaddr(const char *addr, uint8_t *enetaddr);
+int eth_env_get_enetaddr(const char *name, uint8_t *enetaddr);
+int eth_env_set_enetaddr(const char *name, const uint8_t *enetaddr);
+
 #endif /* DO_DEPS_ONLY */
 
 #endif /* _ENVIRONMENT_H_ */
include/net.h +0 -3
index 455b48f..c339b9d 100644
@@ -238,9 +238,6 @@ void eth_try_another(int first_restart);	/* Change the device */
 void eth_set_current(void);		/* set nterface to ethcur var */
 
 int eth_get_dev_index(void);		/* get the device index */
-void eth_parse_enetaddr(const char *addr, uchar *enetaddr);
-int eth_env_get_enetaddr(const char *name, uchar *enetaddr);
-int eth_env_set_enetaddr(const char *name, const uchar *enetaddr);
 
 /**
  * eth_env_set_enetaddr_by_index() - set the MAC address environment variable
net/eth_common.c +1 -30
index 66d0d22..0af91a9 100644
@@ -8,40 +8,11 @@
 
 #include <common.h>
 #include <dm.h>
+#include <environment.h>
 #include <miiphy.h>
 #include <net.h>
 #include "eth_internal.h"
 
-void eth_parse_enetaddr(const char *addr, uchar *enetaddr)
-{
-	char *end;
-	int i;
-
-	for (i = 0; i < 6; ++i) {
-		enetaddr[i] = addr ? simple_strtoul(addr, &end, 16) : 0;
-		if (addr)
-			addr = (*end) ? end + 1 : end;
-	}
-}
-
-int eth_env_get_enetaddr(const char *name, uchar *enetaddr)
-{
-	eth_parse_enetaddr(env_get(name), enetaddr);
-	return is_valid_ethaddr(enetaddr);
-}
-
-int eth_env_set_enetaddr(const char *name, const uchar *enetaddr)
-{
-	char buf[ARP_HLEN_ASCII + 1];
-
-	if (eth_env_get_enetaddr(name, (uchar *)buf))
-		return -EEXIST;
-
-	sprintf(buf, "%pM", enetaddr);
-
-	return env_set(name, buf);
-}
-
 int eth_env_get_enetaddr_by_index(const char *base_name, int index,
 				 uchar *enetaddr)
 {
Signature · 1 line
2.7.4
#30 lore raw

PATCH v2 5/5 net: Move enetaddr env access code to env config instead of net config

Quoted 9 lines · Alex Kiernan

In order that we can use eth_env_* even when CONFIG_NET isn't set, move these functions to environment code from net code.

This fixes failures such as:

board/ti/am335x/built-in.o: In function `board_late_init':
board/ti/am335x/board.c:752: undefined reference to eth_env_set_enetaddr' u-boot/board/ti/am335x/board.c:766: undefined reference to eth_env_set_enetaddr'

Quoted 8 lines

which caters for use cases such as:

commit f411b5cca48f ("board: am335x: Always set eth/eth1addr environment variable")

when Ethernet is required in Linux, but not U-Boot.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180409/5cef19f1/attachment.sig>