mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
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:
parent
454cb78611
commit
edd2a99560
|
|
@ -527,6 +527,11 @@ static int imx_rproc_prepare(struct rproc *rproc)
|
||||||
rproc_coredump_add_segment(rproc, da, resource_size(&res));
|
rproc_coredump_add_segment(rproc, da, resource_size(&res));
|
||||||
rproc_add_carveout(rproc, mem);
|
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)
|
static int imx_rproc_parse_fw(struct rproc *rproc, const struct firmware *fw)
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,7 @@ struct imx_rproc_plat_ops {
|
||||||
int (*stop)(struct rproc *rproc);
|
int (*stop)(struct rproc *rproc);
|
||||||
int (*detach)(struct rproc *rproc);
|
int (*detach)(struct rproc *rproc);
|
||||||
int (*detect_mode)(struct rproc *rproc);
|
int (*detect_mode)(struct rproc *rproc);
|
||||||
|
int (*prepare)(struct rproc *rproc);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct imx_rproc_dcfg {
|
struct imx_rproc_dcfg {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user