Nishanth Menon | efee070 | 2023-08-25 13:02:54 -0500 | [diff] [blame] | 1 | #include <env/ti/ti_common.env> |
Simon Glass | c484095 | 2023-07-30 21:01:45 -0600 | [diff] [blame] | 2 | #include <env/ti/ti_armv7_keystone2.env> |
| 3 | #include <env/ti/mmc.env> |
Andrew Davis | 9d75eee | 2023-07-25 13:15:21 -0500 | [diff] [blame] | 4 | |
| 5 | set_name_pmmc=setenv name_pmmc ti-sci-firmware-k2g.bin |
| 6 | dev_pmmc=0 |
| 7 | get_pmmc_net=dhcp ${loadaddr} ${tftp_root}/${name_pmmc} |
| 8 | get_pmmc_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_pmmc} |
| 9 | get_pmmc_ramfs=run get_pmmc_net |
| 10 | get_pmmc_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_pmmc} |
| 11 | get_pmmc_ubi=ubifsload ${loadaddr} ${bootdir}/${name_pmmc} |
| 12 | run_pmmc=rproc init; |
| 13 | rproc list; |
| 14 | rproc load ${dev_pmmc} ${loadaddr} 0x${filesize}; |
| 15 | rproc start ${dev_pmmc} |
| 16 | |
| 17 | boot=mmc |
| 18 | console=ttyS0,115200n8 |
| 19 | bootpart=0:2 |
| 20 | bootdir=/boot |
| 21 | rd_spec=- |
| 22 | args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048 |
| 23 | |
| 24 | findfdt= |
| 25 | if test $board_name = 66AK2GGP; then |
| 26 | setenv name_fdt keystone-k2g-evm.dtb; fi; |
| 27 | if test $board_name = 66AK2GG1; then |
| 28 | setenv name_fdt keystone-k2g-evm.dtb; fi; |
| 29 | if test $board_name = 66AK2GIC; then |
| 30 | setenv name_fdt keystone-k2g-ice.dtb; fi; |
| 31 | if test $board_name = 66AK2GI1; then |
| 32 | setenv name_fdt keystone-k2g-ice.dtb; fi; |
| 33 | if test $name_fdt = undefined; then |
| 34 | echo WARNING: Could not determine device tree to use; fi; |
| 35 | setenv fdtfile ${name_fdt} |
| 36 | |
| 37 | name_mon=skern-k2g.bin |
| 38 | name_ubi=k2g-evm-ubifs.ubi |
| 39 | name_uboot=u-boot-spi-k2g-evm.gph |
| 40 | init_mmc=run args_all args_mmc |
| 41 | init_fw_rd_mmc=load mmc ${bootpart} ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec |
| 42 | get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt} |
| 43 | get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern} |
| 44 | get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon} |
| 45 | name_fs=arago-base-tisdk-image-k2g-evm.cpio |