Skip to content
Snippets Groups Projects
Commit 2f277f0a authored by Frieder Schrempf's avatar Frieder Schrempf
Browse files

crypto: caam: Add support for i.MX8MM


The i.MX8MM uses the same CAAM hardware as i.MX8MQ. Therefore we can
just use the same configuration.

Signed-off-by: default avatarFrieder Schrempf <frieder.schrempf@kontron.de>
parent 2d636a12
No related branches found
No related tags found
No related merge requests found
...@@ -99,10 +99,12 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc, ...@@ -99,10 +99,12 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc,
if (ctrlpriv->virt_en == 1 || if (ctrlpriv->virt_en == 1 ||
/* /*
* Apparently on i.MX8MQ it doesn't matter if virt_en == 1 * Apparently on i.MX8MQ and i.MX8MM it doesn't matter if
* and the following steps should be performed regardless * virt_en == 1 and the following steps should be performed
* regardless
*/ */
of_machine_is_compatible("fsl,imx8mq")) { of_machine_is_compatible("fsl,imx8mq") ||
of_machine_is_compatible("fsl,imx8mm")) {
clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0); clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0);
while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) && while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) &&
...@@ -528,6 +530,7 @@ static const struct soc_device_attribute caam_imx_soc_table[] = { ...@@ -528,6 +530,7 @@ static const struct soc_device_attribute caam_imx_soc_table[] = {
{ .soc_id = "i.MX6*", .data = &caam_imx6_data }, { .soc_id = "i.MX6*", .data = &caam_imx6_data },
{ .soc_id = "i.MX7*", .data = &caam_imx7_data }, { .soc_id = "i.MX7*", .data = &caam_imx7_data },
{ .soc_id = "i.MX8MQ", .data = &caam_imx7_data }, { .soc_id = "i.MX8MQ", .data = &caam_imx7_data },
{ .soc_id = "i.MX8MM", .data = &caam_imx7_data },
{ .family = "Freescale i.MX" }, { .family = "Freescale i.MX" },
{ /* sentinel */ } { /* sentinel */ }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment