diff options
author | Peng Fan <peng.fan@nxp.com> | 2020-03-30 21:40:06 +0800 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2020-04-09 10:35:43 +0800 |
commit | 84e8e52b606d2c701872ac5eb12d9e6c25291de6 (patch) | |
tree | 25256b090b52272676594def3b86a320384f1914 /drivers/remoteproc | |
parent | 9520932a709a44421b299ef2ca8af70c45b16c00 (diff) |
MLK-23754-33 remoteproc: imx: add i.MX7ULP support
Add i.MX7ULP support
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r-- | drivers/remoteproc/imx_rproc.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/remoteproc/imx_rproc.c b/drivers/remoteproc/imx_rproc.c index 18864f271ba4..d19d55a6a0de 100644 --- a/drivers/remoteproc/imx_rproc.c +++ b/drivers/remoteproc/imx_rproc.c @@ -77,6 +77,7 @@ enum imx_rproc_variants { IMX8MQ, IMX8MP, IMX8MN, + IMX7ULP, IMX7D, IMX6SX, }; @@ -238,6 +239,14 @@ static const struct imx_rproc_att imx_rproc_att_imx8mq[] = { { 0x40000000, 0x40000000, 0x80000000, 0 }, }; +static const struct imx_rproc_att imx_rproc_att_imx7ulp[] = { + {0x1FFD0000, 0x1FFD0000, 0x30000, ATT_OWN}, + {0x20000000, 0x20000000, 0x10000, ATT_OWN}, + {0x2F000000, 0x2F000000, 0x20000, ATT_OWN}, + {0x2F020000, 0x2F020000, 0x20000, ATT_OWN}, + {0x60000000, 0x60000000, 0x40000000, 0} +}; + static const struct imx_rproc_att imx_rproc_att_imx7d[] = { /* dev addr , sys addr , size , flags */ /* OCRAM_S (M4 Boot code) - alias */ @@ -304,6 +313,12 @@ static const struct imx_rproc_dcfg imx_rproc_cfg_imx8mq = { .variant = IMX8MQ, }; +static const struct imx_rproc_dcfg imx_rproc_cfg_imx7ulp = { + .att = imx_rproc_att_imx7ulp, + .att_size = ARRAY_SIZE(imx_rproc_att_imx7ulp), + .variant = IMX7ULP, +}; + static const struct imx_rproc_dcfg imx_rproc_cfg_imx7d = { .src_reg = IMX7D_SRC_SCR, .src_mask = IMX7D_M4_RST_MASK, @@ -1247,6 +1262,7 @@ static int imx_rproc_remove(struct platform_device *pdev) } static const struct of_device_id imx_rproc_of_match[] = { + { .compatible = "fsl,imx7ulp-cm4", .data = &imx_rproc_cfg_imx7ulp }, { .compatible = "fsl,imx7d-cm4", .data = &imx_rproc_cfg_imx7d }, { .compatible = "fsl,imx6sx-cm4", .data = &imx_rproc_cfg_imx6sx }, { .compatible = "fsl,imx8mq-cm4", .data = &imx_rproc_cfg_imx8mq }, |