aboutsummaryrefslogtreecommitdiff
path: root/include/configs/am62ax_evm.h
diff options
context:
space:
mode:
authorBryan Brattlof2022-12-23 19:15:24 -0600
committerTom Rini2023-01-10 15:39:07 -0500
commite625bfe5ad95ace782ed998f4c2b85b20d1923ad (patch)
treea658b17efe4675be1e368b061b91a9c121a91345 /include/configs/am62ax_evm.h
parentb672e8581070497c1859910ce0def6eaf4a49860 (diff)
configs: am62a: convert bootcmd to distro_bootcmd
We're currently using CONFIG_BOOTCOMMAND to run custom boot scripts to jump into linux. While this works, let's begin the transition to more distribution friendly jumps to linux by enabling distro_bootcmd. Convert the custom bootcmd to a distro_bootcmd Signed-off-by: Judith Mendez <jm@ti.com> Signed-off-by: Bryan Brattlof <bb@ti.com>
Diffstat (limited to 'include/configs/am62ax_evm.h')
-rw-r--r--include/configs/am62ax_evm.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/include/configs/am62ax_evm.h b/include/configs/am62ax_evm.h
index 1bd900df7a9..ba67c98693b 100644
--- a/include/configs/am62ax_evm.h
+++ b/include/configs/am62ax_evm.h
@@ -9,7 +9,6 @@
#define __CONFIG_AM62AX_EVM_H
#include <linux/sizes.h>
-#include <config_distro_bootcmd.h>
#include <environment/ti/mmc.h>
#include <environment/ti/k3_dfu.h>
@@ -55,12 +54,36 @@
"${bootdir}/${name_fit}\0" \
"partitions=" PARTS_DEFAULT
+#define BOOTENV_DEV_TI_MMC(devtypeu, devtypel, instance) \
+ DEFAULT_MMC_TI_ARGS \
+ EXTRA_ENV_AM62A7_BOARD_SETTINGS_MMC \
+ "bootcmd_ti_mmc=" \
+ "run findfdt; run envboot; run init_mmc;" \
+ "run get_kern_mmc; run get_fdt_mmc;" \
+ "run get_overlay_mmc;" \
+ "run run_kern;\0"
+
+#define BOOTENV_DEV_NAME_TI_MMC(devtyeu, devtypel, instance) \
+ "ti_mmc "
+
+#if CONFIG_IS_ENABLED(CMD_MMC)
+ #define BOOT_TARGET_MMC(func) \
+ func(TI_MMC, ti_mmc, na)
+#else
+ #define BOOT_TARGET_MMC(func)
+#endif /* CONFIG_IS_ENABLED(CMD_MMC) */
+
+#define BOOT_TARGET_DEVICES(func) \
+ BOOT_TARGET_MMC(func)
+
+#include <config_distro_bootcmd.h>
+
/* Incorporate settings into the U-Boot environment */
#define CFG_EXTRA_ENV_SETTINGS \
DEFAULT_LINUX_BOOT_ENV \
- DEFAULT_MMC_TI_ARGS \
+ DEFAULT_FIT_TI_ARGS \
EXTRA_ENV_AM62A7_BOARD_SETTINGS \
- EXTRA_ENV_AM62A7_BOARD_SETTINGS_MMC \
+ BOOTENV
/* Now for the remaining common defines */
#include <configs/ti_armv7_common.h>