env: ti: j721e-evm: Update rproc_fw_binaries env variable for J7200
authorSuman Anna <s-anna@ti.com>
Mon, 17 Aug 2020 23:15:12 +0000 (18:15 -0500)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 15 Sep 2020 13:21:53 +0000 (18:51 +0530)
commitc091bb049973ae73cb8d63b1bb4cf04047cd27da
tree5699671391a3e1908938de768c26544c3b1d396f
parent3f7e032f70da685f8b5e76c0ad7577033e996044
env: ti: j721e-evm: Update rproc_fw_binaries env variable for J7200

The J7200 SoCs have different number of remote processors, but reuse
the same environment settings as the J721E SoCs. The current env
variable rproc_fw_binaries is geared towards J721E SoCs and is
incorrect for J7200 SoCs. Please see the logic originally added in
commit 0b4ab9c9a754 ("env: ti: j721e-evm: Add support to boot rprocs
including R5Fs and DSPs").

Fix this by defining the DEFAULT_RPROCS macro appropriately using
the corresponding TARGET_EVM Kconfig symbol. This macro is used by
the 'rproc_fw_binaries' env variable in the common remoteproc env
header file k3_rproc.h.

The list of R5F cores to be started before loading and booting the
Linux kernel are as follows, and mainly comprises of the Main R5FSS0
cores in this order:
   Main R5FSS0 (Split) Core0 : 2 /lib/firmware/j7200-main-r5f0_0-fw
   Main R5FSS0 (Split) Core1 : 3 /lib/firmware/j7200-main-r5f0_1-fw

The MCU R5FSS0 is in LockStep mode and is expected to be booted by
R5 SPL, so it is not included in the list. The order of rprocs to
boot cannot be really modified as only the Main R5FSS0 cores are
involved and Core0 has to be booted first always before the
corresponding Core1.

Signed-off-by: Suman Anna <s-anna@ti.com>
include/configs/j721e_evm.h