Skip to content

Commit a3bf6ee

Browse files
MrVanmathieupoirier
authored andcommitted
remoteproc: imx_rproc: Add support for i.MX95
Add imx_rproc_cfg_imx95_m7 and address(TCM and DDR) mapping. Add i.MX95 of_device_id entry. 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-6-d2fefb36263d@nxp.com Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
1 parent 1ae680b commit a3bf6ee

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

drivers/remoteproc/imx_rproc.c

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,18 @@ struct imx_rproc {
133133
u32 flags;
134134
};
135135

136+
static const struct imx_rproc_att imx_rproc_att_imx95_m7[] = {
137+
/* dev addr , sys addr , size , flags */
138+
/* TCM CODE NON-SECURE */
139+
{ 0x00000000, 0x203C0000, 0x00040000, ATT_OWN | ATT_IOMEM },
140+
141+
/* TCM SYS NON-SECURE*/
142+
{ 0x20000000, 0x20400000, 0x00040000, ATT_OWN | ATT_IOMEM },
143+
144+
/* DDR */
145+
{ 0x80000000, 0x80000000, 0x50000000, 0 },
146+
};
147+
136148
static const struct imx_rproc_att imx_rproc_att_imx93[] = {
137149
/* dev addr , sys addr , size , flags */
138150
/* TCM CODE NON-SECURE */
@@ -1435,6 +1447,15 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx93 = {
14351447
.flags = IMX_RPROC_NEED_CLKS,
14361448
};
14371449

1450+
static const struct imx_rproc_dcfg imx_rproc_cfg_imx95_m7 = {
1451+
.att = imx_rproc_att_imx95_m7,
1452+
.att_size = ARRAY_SIZE(imx_rproc_att_imx95_m7),
1453+
.ops = &imx_rproc_ops_sm_lmm,
1454+
/* Must align with System Manager Firmware */
1455+
.cpuid = 1, /* Use 1 as cpu id for M7 core */
1456+
.lmid = 1, /* Use 1 as Logical Machine ID where M7 resides */
1457+
};
1458+
14381459
static const struct of_device_id imx_rproc_of_match[] = {
14391460
{ .compatible = "fsl,imx7ulp-cm4", .data = &imx_rproc_cfg_imx7ulp },
14401461
{ .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d },
@@ -1449,6 +1470,7 @@ static const struct of_device_id imx_rproc_of_match[] = {
14491470
{ .compatible = "fsl,imx8qm-cm4", .data = &imx_rproc_cfg_imx8qm },
14501471
{ .compatible = "fsl,imx8ulp-cm33", .data = &imx_rproc_cfg_imx8ulp },
14511472
{ .compatible = "fsl,imx93-cm33", .data = &imx_rproc_cfg_imx93 },
1473+
{ .compatible = "fsl,imx95-cm7", .data = &imx_rproc_cfg_imx95_m7 },
14521474
{},
14531475
};
14541476
MODULE_DEVICE_TABLE(of, imx_rproc_of_match);

0 commit comments

Comments
 (0)