blob: 3418cb42be58e40cedab81bc4dd12630308c6751 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
/* SPDX-License-Identifier: GPL-2.0+ */
/*
* Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com
*
* rproc environment variable definitions for various TI K3 SoCs.
*/
#ifndef __TI_RPROC_H
#define __TI_RPROC_H
/*
* should contain a list of <rproc_id fw_name> tuplies,
* override in board config files with the actual list
*/
#define DEFAULT_RPROCS ""
#ifdef CONFIG_CMD_REMOTEPROC
#define EXTRA_ENV_RPROC_SETTINGS \
"dorprocboot=0\0" \
"boot_rprocs=" \
"if test ${dorprocboot} -eq 1 && test ${boot} = mmc; then "\
"rproc init;" \
"run boot_rprocs_mmc;" \
"fi;\0" \
"rproc_load_and_boot_one=" \
"if load mmc ${bootpart} $loadaddr ${rproc_fw}; then " \
"if rproc load ${rproc_id} ${loadaddr} ${filesize}; then "\
"rproc start ${rproc_id};" \
"fi;" \
"fi\0" \
"boot_rprocs_mmc=" \
"env set rproc_id;" \
"env set rproc_fw;" \
"for i in ${rproc_fw_binaries} ; do " \
"if test -z \"${rproc_id}\" ; then " \
"env set rproc_id $i;" \
"else " \
"env set rproc_fw $i;" \
"run rproc_load_and_boot_one;" \
"env set rproc_id;" \
"env set rproc_fw;" \
"fi;" \
"done\0" \
"rproc_fw_binaries=" \
DEFAULT_RPROCS \
"\0"
#else
#define EXTRA_ENV_RPROC_SETTINGS \
"boot_rprocs= \0"
#endif /* CONFIG_CMD_REMOTEPROC */
#endif /* __TI_RPROC_H */
|