diff options
author | Tom Rini <trini@konsulko.com> | 2021-07-01 10:27:43 -0400 |
---|---|---|
committer | Lokesh Vutla <lokeshvutla@ti.com> | 2021-07-15 17:56:04 +0530 |
commit | 7a376302f59c91abc6b1579e0db5e36b45f3d676 (patch) | |
tree | bde144948a3f817ec06e0d253ba52895a73086ad /include/configs/j721e_evm.h | |
parent | 5fb3e09d97aca2dfd7836e319c8b2b11b10f17da (diff) | |
download | u-boot-7a376302f59c91abc6b1579e0db5e36b45f3d676.zip u-boot-7a376302f59c91abc6b1579e0db5e36b45f3d676.tar.gz u-boot-7a376302f59c91abc6b1579e0db5e36b45f3d676.tar.bz2 |
configs: j721e_evm: Switch envboot out for distro_bootcmd
Swap out the TI-centric "envboot" logic for the generic distro_bootcmd
logic for the bootcmd we run before trying to do something more complex
involving additional firmware, etc.
Cc: Lokesh Vutla <lokeshvutla@ti.com> (maintainer:J721E BOARD)
Signed-off-by: Tom Rini <trini@konsulko.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Link: https://lore.kernel.org/r/20210701142743.26190-1-trini@konsulko.com
Diffstat (limited to 'include/configs/j721e_evm.h')
-rw-r--r-- | include/configs/j721e_evm.h | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/include/configs/j721e_evm.h b/include/configs/j721e_evm.h index b707fc4..62da8ff 100644 --- a/include/configs/j721e_evm.h +++ b/include/configs/j721e_evm.h @@ -10,7 +10,6 @@ #define __CONFIG_J721E_EVM_H #include <linux/sizes.h> -#include <config_distro_bootcmd.h> #include <environment/ti/mmc.h> #include <environment/ti/k3_rproc.h> #include <environment/ti/ufs.h> @@ -160,6 +159,26 @@ #define EXTRA_ENV_J721E_BOARD_SETTINGS_MTD #endif +#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, 1) \ + func(MMC, mmc, 0) \ + BOOT_TARGET_PXE(func) \ + BOOT_TARGET_DHCP(func) + +#include <config_distro_bootcmd.h> + /* Incorporate settings into the U-Boot environment */ #define CONFIG_EXTRA_ENV_SETTINGS \ DEFAULT_LINUX_BOOT_ENV \ @@ -170,7 +189,8 @@ EXTRA_ENV_RPROC_SETTINGS \ EXTRA_ENV_DFUARGS \ DEFAULT_UFS_TI_ARGS \ - EXTRA_ENV_J721E_BOARD_SETTINGS_MTD + EXTRA_ENV_J721E_BOARD_SETTINGS_MTD \ + BOOTENV /* Now for the remaining common defines */ #include <configs/ti_armv7_common.h> |