Neha Malcom Francis | 409af1f | 2023-03-15 10:57:44 +0530 | [diff] [blame] | 1 | #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 | |
| 10 | default_device_tree=k3-j721s2-common-proc-board.dtb |
| 11 | findfdt= |
| 12 | setenv name_fdt ${default_device_tree}; |
| 13 | if test $board_name = j721s2; then \ |
| 14 | setenv name_fdt k3-j721s2-common-proc-board.dtb; fi; |
| 15 | if test $board_name = am68-sk; then |
| 16 | setenv name_fdt k3-am68-sk-base-board.dtb; fi; |
| 17 | setenv fdtfile ${name_fdt} |
| 18 | name_kern=Image |
| 19 | console=ttyS2,115200n8 |
| 20 | args_all=setenv optargs earlycon=ns16550a,mmio32,0x02880000 |
| 21 | ${mtdparts} |
| 22 | run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr} |
| 23 | |
| 24 | boot=mmc |
| 25 | mmcdev=1 |
| 26 | bootpart=1:2 |
| 27 | bootdir=/boot |
Neha Malcom Francis | 409af1f | 2023-03-15 10:57:44 +0530 | [diff] [blame] | 28 | #if CONFIG_TARGET_J721S2_R5_EVM |
| 29 | addr_mcur5f0_0load=0x89000000 |
| 30 | name_mcur5f0_0fw=/lib/firmware/j7-mcu-r5f0_0-fw |
| 31 | #endif |
Neha Malcom Francis | 409af1f | 2023-03-15 10:57:44 +0530 | [diff] [blame] | 32 | rd_spec=- |
| 33 | init_mmc=run args_all args_mmc |
| 34 | get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt} |
| 35 | get_overlay_mmc= |
| 36 | fdt address ${fdtaddr}; |
| 37 | fdt resize 0x100000; |
| 38 | for overlay in $name_overlays; |
| 39 | do; |
| 40 | load mmc ${bootpart} ${dtboaddr} ${bootdir}/${overlay} && |
| 41 | fdt apply ${dtboaddr}; |
| 42 | done; |
| 43 | partitions=uuid_disk=${uuid_gpt_disk}; |
| 44 | name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs} |
| 45 | get_kern_mmc=load mmc ${bootpart} ${loadaddr} |
| 46 | ${bootdir}/${name_kern} |
| 47 | get_fit_mmc=load mmc ${bootpart} ${addr_fit} |
| 48 | ${bootdir}/${name_fit} |
| 49 | partitions=uuid_disk=${uuid_gpt_disk}; |
| 50 | name=rootfs,start=0,size=-,uuid=${uuid_gpt_rootfs} |
| 51 | |
| 52 | rproc_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 |
| 53 | |
| 54 | |