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>
This commit is contained in:
Peng Fan 2026-01-09 20:08:03 +08:00 committed by Mathieu Poirier
parent 454cb78611
commit edd2a99560
2 changed files with 6 additions and 0 deletions

View file

@ -527,6 +527,11 @@ static int imx_rproc_prepare(struct rproc *rproc)
rproc_coredump_add_segment(rproc, da, resource_size(&res));
rproc_add_carveout(rproc, mem);
}
if (priv->ops && priv->ops->prepare)
return priv->ops->prepare(rproc);
return 0;
}
static int imx_rproc_parse_fw(struct rproc *rproc, const struct firmware *fw)

View file

@ -24,6 +24,7 @@ struct imx_rproc_plat_ops {
int (*stop)(struct rproc *rproc);
int (*detach)(struct rproc *rproc);
int (*detect_mode)(struct rproc *rproc);
int (*prepare)(struct rproc *rproc);
};
struct imx_rproc_dcfg {