]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: k3-r5: Refactor Data Structures to Align with DSP and M4
authorBeleswar Padhi <b-padhi@ti.com>
Tue, 13 May 2025 05:44:41 +0000 (11:14 +0530)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 20 May 2025 17:19:10 +0000 (11:19 -0600)
commit95cd198a64272ddeaebbbdd330b56daa7421fad6
tree568add4decd25c598ee52f4a0f3a88939c544521
parent11d35a94d5914c31169dc0655a2de6df705ab6f4
remoteproc: k3-r5: Refactor Data Structures to Align with DSP and M4

Currently, struct members such as mem, num_mems, reset, tsp, ti_sci and
ti_sci_id are part of the k3_r5_core structure. To align the rproc->priv
data structure of the R5 remote processor with that of the DSP and M4,
move the above members from k3_r5_core to k3_r5_rproc struct.

Additionally, introduce a void *priv pointer in k3_r5_rproc that can be
typecasted to point to the k3_r5_core structure. This abstraction is
done to ensure common functionalities across R5, DSP and M4 drivers can
be refactored at a later stage.

Signed-off-by: Beleswar Padhi <b-padhi@ti.com>
Tested-by: Judith Mendez <jm@ti.com>
Reviewed-by: Andrew Davis <afd@ti.com>
Link: https://lore.kernel.org/r/20250513054510.3439842-8-b-padhi@ti.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/ti_k3_r5_remoteproc.c