Skip to content

Commit d59eedc

Browse files
MrVanandersson
authored andcommitted
remoteproc: imx_rproc: support i.MX8ULP
i.MX8ULP is a new SoC with Ultra low power support, it has a Cortex-M33 core and two Cortex-A35 cores. We need to add new configuration because it could not reuse the previous i.MX7/8 configuration. i.MX8ULP M33 core is kicked by ROM, it is not under control of A35 core. So need to mark the method is IMX_RPROC_NONE. Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Mathieu Poirier <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 5f5fb97 commit d59eedc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

drivers/remoteproc/imx_rproc.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = {
172172
{ 0x40000000, 0x40000000, 0x80000000, 0 },
173173
};
174174

175+
static const struct imx_rproc_att imx_rproc_att_imx8ulp[] = {
176+
{0x1FFC0000, 0x1FFC0000, 0xC0000, ATT_OWN},
177+
{0x21000000, 0x21000000, 0x10000, ATT_OWN},
178+
{0x80000000, 0x80000000, 0x60000000, 0}
179+
};
180+
175181
static const struct imx_rproc_att imx_rproc_att_imx7ulp[] = {
176182
{0x1FFD0000, 0x1FFD0000, 0x30000, ATT_OWN},
177183
{0x20000000, 0x20000000, 0x10000, ATT_OWN},
@@ -246,6 +252,12 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = {
246252
.method = IMX_RPROC_MMIO,
247253
};
248254

255+
static const struct imx_rproc_dcfg imx_rproc_cfg_imx8ulp = {
256+
.att = imx_rproc_att_imx8ulp,
257+
.att_size = ARRAY_SIZE(imx_rproc_att_imx8ulp),
258+
.method = IMX_RPROC_NONE,
259+
};
260+
249261
static const struct imx_rproc_dcfg imx_rproc_cfg_imx7ulp = {
250262
.att = imx_rproc_att_imx7ulp,
251263
.att_size = ARRAY_SIZE(imx_rproc_att_imx7ulp),
@@ -824,6 +836,7 @@ static const struct of_device_id imx_rproc_of_match[] = {
824836
{ .compatible = "fsl,imx8mm-cm4", .data = &imx_rproc_cfg_imx8mq },
825837
{ .compatible = "fsl,imx8mn-cm7", .data = &imx_rproc_cfg_imx8mn },
826838
{ .compatible = "fsl,imx8mp-cm7", .data = &imx_rproc_cfg_imx8mn },
839+
{ .compatible = "fsl,imx8ulp-cm33", .data = &imx_rproc_cfg_imx8ulp },
827840
{},
828841
};
829842
MODULE_DEVICE_TABLE(of, imx_rproc_of_match);

0 commit comments

Comments
 (0)