Skip to content

Commit 2a2fbf2

Browse files
horiagherbertx
authored andcommitted
crypto: caam - add support for i.MX8M Nano
Add support for the crypto engine used in i.mx8mn (i.MX 8M "Nano"), which is very similar to the one used in i.mx8mq, i.mx8mm. Since the clocks are identical for all members of i.MX 8M family, simplify the SoC <--> clock array mapping table. Signed-off-by: Horia Geantă <horia.geanta@nxp.com> Tested-by: Iuliana Prodan <iuliana.prodan@nxp.com> Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 4b0ec91 commit 2a2fbf2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/crypto/caam/ctrl.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc,
9999

100100
if (ctrlpriv->virt_en == 1 ||
101101
/*
102-
* Apparently on i.MX8MQ it doesn't matter if virt_en == 1
102+
* Apparently on i.MX8MQ, 8MM, 8MN it doesn't matter if virt_en == 1
103103
* and the following steps should be performed regardless
104104
*/
105105
of_machine_is_compatible("fsl,imx8mq") ||
106-
of_machine_is_compatible("fsl,imx8mm")) {
106+
of_machine_is_compatible("fsl,imx8mm") ||
107+
of_machine_is_compatible("fsl,imx8mn")) {
107108
clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0);
108109

109110
while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) &&
@@ -509,8 +510,7 @@ static const struct soc_device_attribute caam_imx_soc_table[] = {
509510
{ .soc_id = "i.MX6UL", .data = &caam_imx6ul_data },
510511
{ .soc_id = "i.MX6*", .data = &caam_imx6_data },
511512
{ .soc_id = "i.MX7*", .data = &caam_imx7_data },
512-
{ .soc_id = "i.MX8MQ", .data = &caam_imx7_data },
513-
{ .soc_id = "i.MX8MM", .data = &caam_imx7_data },
513+
{ .soc_id = "i.MX8M*", .data = &caam_imx7_data },
514514
{ .family = "Freescale i.MX" },
515515
{ /* sentinel */ }
516516
};

0 commit comments

Comments
 (0)