blob: 2b500fc6edf61c8251f9ee2a32ceec33799b90f2 [file] [log] [blame]
Nishanth Menonefee0702023-08-25 13:02:54 -05001#include <env/ti/ti_common.env>
Simon Glassc4840952023-07-30 21:01:45 -06002#include <env/ti/ti_armv7_keystone2.env>
3#include <env/ti/mmc.env>
Andrew Davis9d75eee2023-07-25 13:15:21 -05004
5set_name_pmmc=setenv name_pmmc ti-sci-firmware-k2g.bin
6dev_pmmc=0
7get_pmmc_net=dhcp ${loadaddr} ${tftp_root}/${name_pmmc}
8get_pmmc_nfs=nfs ${loadaddr} ${nfs_root}/boot/${name_pmmc}
9get_pmmc_ramfs=run get_pmmc_net
10get_pmmc_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_pmmc}
11get_pmmc_ubi=ubifsload ${loadaddr} ${bootdir}/${name_pmmc}
12run_pmmc=rproc init;
13 rproc list;
14 rproc load ${dev_pmmc} ${loadaddr} 0x${filesize};
15 rproc start ${dev_pmmc}
16
17boot=mmc
18console=ttyS0,115200n8
19bootpart=0:2
20bootdir=/boot
21rd_spec=-
22args_ubi=setenv bootargs ${bootargs} rootfstype=ubifs root=ubi0:rootfs rootflags=sync rw ubi.mtd=ubifs,2048
23
24findfdt=
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
37name_mon=skern-k2g.bin
38name_ubi=k2g-evm-ubifs.ubi
39name_uboot=u-boot-spi-k2g-evm.gph
40init_mmc=run args_all args_mmc
41init_fw_rd_mmc=load mmc ${bootpart} ${rdaddr} ${bootdir}/${name_fw_rd}; run set_rd_spec
42get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}
43get_kern_mmc=load mmc ${bootpart} ${loadaddr} ${bootdir}/${name_kern}
44get_mon_mmc=load mmc ${bootpart} ${addr_mon} ${bootdir}/${name_mon}
45name_fs=arago-base-tisdk-image-k2g-evm.cpio