remoteproc: mediatek: Revise SCP rproc initialization flow for multi-core SCP
authorTinghan Shen <tinghan.shen@mediatek.com>
Fri, 1 Sep 2023 08:09:27 +0000 (16:09 +0800)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Wed, 13 Sep 2023 17:44:25 +0000 (11:44 -0600)
commitfcc14c9cd5ad9186ce9d7777d443e42128ef3b48
treeeaf6b61fc4aa1647697e3639ee679d8a5105a792
parent9ea166698f48c299ca6bd4730950ca1176f51e1b
remoteproc: mediatek: Revise SCP rproc initialization flow for multi-core SCP

This is the 2nd preliminary step for probing multi-core SCP.
Initialization of configuration and L1TCM registers is extracted
to only performed once on multi-core SCP. The rest of remoteproc
initialization procedure is similar for both single and multi-core
SCP and is applied to each core.

Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Tested-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230901080935.14571-7-tinghan.shen@mediatek.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/mtk_scp.c