]> git.baikalelectronics.ru Git - uboot.git/commitdiff
include: configs: am62ax: Change to using .env
authorNikhil M Jain <n-jain1@ti.com>
Mon, 20 Mar 2023 17:02:08 +0000 (22:32 +0530)
committerTom Rini <trini@konsulko.com>
Wed, 29 Mar 2023 17:30:29 +0000 (13:30 -0400)
Move to using .env file for setting up environment variables for am62ax.

This patch depends on
https://lore.kernel.org/all/20230315052745.110502-1-n-francis@ti.com/

Signed-off-by: Nikhil M Jain <n-jain1@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
board/ti/am62ax/am62ax.env [new file with mode: 0644]
include/configs/am62ax_evm.h

diff --git a/board/ti/am62ax/am62ax.env b/board/ti/am62ax/am62ax.env
new file mode 100644 (file)
index 0000000..8c1c26e
--- /dev/null
@@ -0,0 +1,33 @@
+#include <environment/ti/ti_armv7_common.env>
+#include <environment/ti/mmc.env>
+
+default_device_tree=k3-am62a7-sk.dtb
+findfdt=
+       setenv name_fdt ${default_device_tree};
+       setenv fdtfile ${name_fdt}
+name_kern=Image
+console=ttyS2,115200n8
+args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
+       ${mtdparts}
+run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
+
+boot=mmc
+mmcdev=1
+bootpart=1:2
+bootdir=/boot
+rd_spec=-
+init_mmc=run args_all args_mmc
+get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
+get_overlay_mmc=
+       fdt address ${fdtaddr};
+       fdt resize 0x100000;
+       for overlay in $name_overlays;
+       do;
+       load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
+       fdt apply ${dtboaddr};
+       done;
+get_kern_mmc=load mmc ${bootpart} ${loadaddr}
+       ${bootdir}/${name_kern}
+get_fit_mmc=load mmc ${bootpart} ${addr_fit}
+       ${bootdir}/${name_fit}
+partitions=name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
index a18b1572b13bccf0eab9430c19a0fc4ce2203a6f..d8ef2509a895c17b6eaa3e39c9512eeabe09aa5b 100644 (file)
@@ -85,9 +85,6 @@
 
 /* Incorporate settings into the U-Boot environment */
 #define CFG_EXTRA_ENV_SETTINGS                                 \
-       DEFAULT_LINUX_BOOT_ENV                                          \
-       DEFAULT_FIT_TI_ARGS                                             \
-       EXTRA_ENV_AM62A7_BOARD_SETTINGS                                 \
        BOOTENV
 
 /* Now for the remaining common defines */