summaryrefslogtreecommitdiff
path: root/include/configs/am62ax_evm.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/configs/am62ax_evm.h')
-rw-r--r--include/configs/am62ax_evm.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/configs/am62ax_evm.h b/include/configs/am62ax_evm.h
index 6c3a139caec..0c0d6e1edb4 100644
--- a/include/configs/am62ax_evm.h
+++ b/include/configs/am62ax_evm.h
@@ -91,6 +91,28 @@
"${bootdir}/${name_fit}\0" \
"partitions=" PARTS_DEFAULT
+#define EXTRA_ENV_AM62A7_BOARD_SETTINGS_OSPI_NAND \
+ "nbootpart=ospi.rootfs\0" \
+ "nbootvolume=ubi0:rootfs\0" \
+ "bootdir=/boot\0" \
+ "rd_spec=-\0" \
+ "ubi_init=ubi part ${nbootpart}; ubifsmount ${nbootvolume};\0" \
+ "args_ospi_nand=setenv bootargs console=${console} " \
+ "${optargs} ubi.mtd=${nbootpart} " \
+ "root=${nbootvolume} rootfstype=ubifs\0" \
+ "init_ospi_nand=run args_all args_ospi_nand ubi_init\0" \
+ "get_fdt_ospi_nand=ubifsload ${fdtaddr} ${bootdir}/${fdtfile};\0" \
+ "get_overlay_ospi_nand=" \
+ "fdt address ${fdtaddr};" \
+ "fdt resize 0x100000;" \
+ "for overlay in $name_overlays;" \
+ "do;" \
+ "ubifsload ${dtboaddr} ${bootdir}/${overlay} && " \
+ "fdt apply ${dtboaddr};" \
+ "done;\0" \
+ "get_kern_ospi_nand=ubifsload ${loadaddr} ${bootdir}/${name_kern}\0" \
+ "get_fit_ospi_nand=ubifsload ${addr_fit} ${bootdir}/${name_fit}\0"
+
#if defined(CONFIG_TARGET_AM62A7_A53_EVM)
#if defined(DEFAULT_RPROCS)
#undef DEFAULT_RPROCS
@@ -113,6 +135,7 @@
DEFAULT_MMC_TI_ARGS \
EXTRA_ENV_AM62A7_BOARD_SETTINGS \
EXTRA_ENV_AM62A7_BOARD_SETTINGS_MMC \
+ EXTRA_ENV_AM62A7_BOARD_SETTINGS_OSPI_NAND \
EXTRA_ENV_RPROC_SETTINGS \
EXTRA_ENV_DFUARGS