Skip to content

Commit edd2a99

Browse files
MrVanmathieupoirier
authored andcommitted
remoteproc: imx_rproc: Introduce prepare ops for imx_rproc_dcfg
Allow each platform to provide its own prepare operations, preparing for i.MX95 LMM and CPU ops support. No functional changes. Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com> Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com> Link: https://lore.kernel.org/r/20260109-imx95-rproc-2026-1-8-v6-3-d2fefb36263d@nxp.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent 454cb78 commit edd2a99

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/remoteproc/imx_rproc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,11 @@ static int imx_rproc_prepare(struct rproc *rproc)
527527
rproc_coredump_add_segment(rproc, da, resource_size(&res));
528528
rproc_add_carveout(rproc, mem);
529529
}
530+
531+
if (priv->ops && priv->ops->prepare)
532+
return priv->ops->prepare(rproc);
533+
534+
return 0;
530535
}
531536

532537
static int imx_rproc_parse_fw(struct rproc *rproc, const struct firmware *fw)

drivers/remoteproc/imx_rproc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ struct imx_rproc_plat_ops {
2424
int (*stop)(struct rproc *rproc);
2525
int (*detach)(struct rproc *rproc);
2626
int (*detect_mode)(struct rproc *rproc);
27+
int (*prepare)(struct rproc *rproc);
2728
};
2829

2930
struct imx_rproc_dcfg {

0 commit comments

Comments
 (0)