blob: 9464fe49903772add1fbf85dac1a9bc1dd6ebb6a [file] [log] [blame]
Neha Malcom Francis7e55dd22023-03-15 10:57:44 +05301#include <environment/ti/ti_armv7_common.env>
2#include <environment/ti/mmc.env>
3#include <environment/ti/ufs.env>
4#include <environment/ti/k3_dfu.env>
5
6#if CONFIG_CMD_REMOTEPROC
7#include <environment/ti/k3_rproc.env>
8#endif
9
Andrew Davisd8ea68d2023-07-14 11:22:30 +053010default_device_tree=ti/k3-j721s2-common-proc-board.dtb
Neha Malcom Francis7e55dd22023-03-15 10:57:44 +053011findfdt=
12 setenv name_fdt ${default_device_tree};
13 if test $board_name = j721s2; then \
Andrew Davisd8ea68d2023-07-14 11:22:30 +053014 setenv name_fdt ti/k3-j721s2-common-proc-board.dtb; fi;
Neha Malcom Francis7e55dd22023-03-15 10:57:44 +053015 if test $board_name = am68-sk; then
Andrew Davisd8ea68d2023-07-14 11:22:30 +053016 setenv name_fdt ti/k3-am68-sk-base-board.dtb; fi;
Neha Malcom Francis7e55dd22023-03-15 10:57:44 +053017 setenv fdtfile ${name_fdt}
18name_kern=Image
19console=ttyS2,115200n8
20args_all=setenv optargs earlycon=ns16550a,mmio32,0x02880000
21 ${mtdparts}
22run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
23
24boot=mmc
25mmcdev=1
26bootpart=1:2
27bootdir=/boot
Neha Malcom Francis7e55dd22023-03-15 10:57:44 +053028#if CONFIG_TARGET_J721S2_R5_EVM
29addr_mcur5f0_0load=0x89000000
30name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw
31#endif
Neha Malcom Francis7e55dd22023-03-15 10:57:44 +053032rd_spec=-
33init_mmc=run args_all args_mmc
Neha Malcom Francis7e55dd22023-03-15 10:57:44 +053034get_overlay_mmc=
35 fdt address ${fdtaddr};
36 fdt resize 0x100000;
37 for overlay in $name_overlays;
38 do;
39 load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} &&
40 fdt apply ${dtboaddr};
41 done;
42partitions=uuid_disk=${uuid_gpt_disk};
43 name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
44get_kern_mmc=load mmc ${bootpart} ${loadaddr}
45 ${bootdir}/${name_kern}
46get_fit_mmc=load mmc ${bootpart} ${addr_fit}
47 ${bootdir}/${name_fit}
48partitions=uuid_disk=${uuid_gpt_disk};
49 name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs}
50
51rproc_fw_binaries= 2 /lib/firmware/j721s2-main-r5f0_0-fw 3 /lib/firmware/j721s2-main-r5f0_1-fw 4 /lib/firmware/j721s2-main-r5f1_0-fw 5 /lib/firmware/j721s2-main-r5f1_1-fw 6 /lib/firmware/j721s2-c71_0-fw 7 /lib/firmware/j721s2-c71_1-fw
52
53