remoteproc: k3-r5: Use separate compatible string for TI AM62x SoC family
authorDevarsh Thakkar <devarsht@ti.com>
Mon, 27 Mar 2023 15:28:32 +0000 (20:58 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 29 Mar 2023 23:18:26 +0000 (17:18 -0600)
commit51723657be6865c3eb86e4fa7778cfaa4a97bddd
treec529b67e5762ee5e4a9da53f3f57fd3dc4bf8583
parentf3d81b4537a5dab6fb97b7802ce73ff6b75e10b5
remoteproc: k3-r5: Use separate compatible string for TI AM62x SoC family

AM62 and AM62A SoCs use single core R5F which is a new scenario
different than the one being used with CLUSTER_MODE_SINGLECPU which is
for utilizing a single core from a set of cores available in R5F cluster
present in the SoC.

To support this single core scenario map it with newly defined
CLUSTER_MODE_SINGLECORE and use it when compatible is set to
ti,am62-r5fss.

Also set PROC_BOOT_CFG_FLAG_R5_SINGLE_CORE config for
CLUSTER_MODE_SINGLECORE too as it is required by R5 core when it is
being as general purpose core instead of device manager.

For IPC-only mode when config flag PROC_BOOT_CFG_FLAG_R5_SINGLE_CORE
is set, skip overriding to CLUSTER_MODE_SINGLECPU when
CLUSTER_MODE_SINGLECORE is set as same flag is applicable for single
core configuration too.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Link: https://lore.kernel.org/r/20230327152832.923480-4-devarsht@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c