The C7XV deep learning engine dsp core in AM62A has a local reset line
from power state controller. In the absence of using the local reset,
it is in an unknown state and when the module is turned on, CPU starts
executing and may go into a bad state. Set local reset to 'true' for
AM62A, so that the remote proc driver properly asserts the local reset
before enabling the module to load the firmware. And it is deasserted
after firmware load is complete to start the core.

Signed-off-by: Hari Nagalla <[email protected]>
---
 drivers/remoteproc/ti_k3_dsp_remoteproc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/remoteproc/ti_k3_dsp_remoteproc.c 
b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
index d6ceea6dc920..7881c711d872 100644
--- a/drivers/remoteproc/ti_k3_dsp_remoteproc.c
+++ b/drivers/remoteproc/ti_k3_dsp_remoteproc.c
@@ -211,7 +211,7 @@ static const struct k3_rproc_dev_data c7xv_data = {
        .mems = c7xv_mems,
        .num_mems = ARRAY_SIZE(c7xv_mems),
        .boot_align_addr = SZ_2M,
-       .uses_lreset = false,
+       .uses_lreset = true,
 };
 
 static const struct of_device_id k3_dsp_of_match[] = {
-- 
2.34.1


Reply via email to