MLK-23754-16 remoteproc: imx_rproc: support get firmware name from dts
Add fsl,rproc-fw-name property to support get firmware name from device tree. Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com> Signed-off-by: Peng Fan <peng.fan@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
1f76a0696d
commit
c2c679f3bd
|
@ -685,6 +685,7 @@ static int imx_rproc_probe(struct platform_device *pdev)
|
|||
const struct imx_rproc_dcfg *dcfg;
|
||||
struct regmap *regmap = NULL;
|
||||
struct reset_control *non_sclr_rst, *enable;
|
||||
const char *fw_name = NULL;
|
||||
int ret;
|
||||
|
||||
regmap = syscon_regmap_lookup_by_phandle(np, "syscon");
|
||||
|
@ -705,9 +706,11 @@ static int imx_rproc_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(enable))
|
||||
return PTR_ERR(enable);
|
||||
|
||||
of_property_read_string(np, "fsl,rproc-fw-name", &fw_name);
|
||||
|
||||
/* set some other name then imx */
|
||||
rproc = rproc_alloc(dev, "imx-rproc", &imx_rproc_ops,
|
||||
NULL, sizeof(*priv));
|
||||
fw_name, sizeof(*priv));
|
||||
if (!rproc)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in New Issue