1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
5 * rproc environment variable definitions for various TI K3 SoCs.
12 * should contain a list of <rproc_id fw_name> tuplies,
13 * override in board config files with the actual list
15 #define DEFAULT_RPROCS ""
17 #ifdef CONFIG_CMD_REMOTEPROC
18 #define EXTRA_ENV_RPROC_SETTINGS \
21 "if test ${dorprocboot} -eq 1 && test ${boot} = mmc; then "\
23 "run boot_rprocs_mmc;" \
25 "rproc_load_and_boot_one=" \
26 "if load mmc ${bootpart} $loadaddr ${rproc_fw}; then " \
27 "if rproc load ${rproc_id} ${loadaddr} ${filesize}; then "\
28 "rproc start ${rproc_id};" \
34 "for i in ${rproc_fw_binaries} ; do " \
35 "if test -z \"${rproc_id}\" ; then " \
36 "env set rproc_id $i;" \
38 "env set rproc_fw $i;" \
39 "run rproc_load_and_boot_one;" \
44 "rproc_fw_binaries=" \
48 #define EXTRA_ENV_RPROC_SETTINGS \
50 #endif /* CONFIG_CMD_REMOTEPROC */
52 #endif /* __TI_RPROC_H */