remoteproc: imx_rproc: correct firmware reload
authorPeng Fan <peng.fan@nxp.com>
Wed, 2 Jun 2021 06:42:06 +0000 (14:42 +0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 13 Dec 2021 22:58:05 +0000 (16:58 -0600)
commitda87976921bba27199ee4df94081ac10fa0cf76f
tree0fb128b10e21d8d5ad1aabf7af9e8307446e36dc
parentfdc12231d885119cc2e2b4f3e0fbba3155f37a56
remoteproc: imx_rproc: correct firmware reload

ENABLE_M4 should be set to 1 when loading code to TCM, otherwise
you will not able to replace the firmware after you stop m4.

Besides ENABLE_M4, we still need set SW_M4C_RST, because this bit
will be automatically set with SW_M4C_NON_SCLR_RST set.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210602064206.27004-1-peng.fan@oss.nxp.com
drivers/remoteproc/imx_rproc.c