blob: d4f0f1708ca257a85e9bea19386c9c609c179ac8 [file] [log] [blame]
Neha Malcom Francisa2e532c2023-03-15 10:57:43 +05301dorprocboot=0
2boot_rprocs=
3 if test ${dorprocboot} -eq 1 && test ${boot} = mmc; then
4 rproc init;
5 run boot_rprocs_mmc;
6 fi;
7rproc_load_and_boot_one=
8 if load mmc ${bootpart} $loadaddr ${rproc_fw}; then
9 if rproc load ${rproc_id} ${loadaddr} ${filesize}; then
Manorit Chawdhryabaf74f2023-05-15 12:22:42 +053010 rproc start ${rproc_id};
Neha Malcom Francisa2e532c2023-03-15 10:57:43 +053011 fi;
12 fi
13boot_rprocs_mmc=
14 env set rproc_id;
15 env set rproc_fw;
Udit Kumar05396652024-05-21 16:26:47 +053016 env set secure_suffix;
17 if test ${secure_rprocs} -eq 1; then
18 env set secure_suffix -sec;
19 fi;
Neha Malcom Francisa2e532c2023-03-15 10:57:43 +053020 for i in ${rproc_fw_binaries} ; do
Manorit Chawdhryabaf74f2023-05-15 12:22:42 +053021 if test -z "${rproc_id}" ; then
Neha Malcom Francisa2e532c2023-03-15 10:57:43 +053022 env set rproc_id $i;
23 else
Udit Kumar05396652024-05-21 16:26:47 +053024 env set rproc_fw $i${secure_suffix};
Neha Malcom Francisa2e532c2023-03-15 10:57:43 +053025 run rproc_load_and_boot_one;
26 env set rproc_id;
27 env set rproc_fw;
28 fi;
29 done
30