Skip to content

Commit 7e2b89f

Browse files
horiagherbertx
authored andcommitted
crypto: caam - add support for i.MX8M Plus
Add support for the crypto engine used in i.mx8mp (i.MX 8M "Plus"), which is very similar to the one used in i.mx8mq, i.mx8mm, i.mx8mn. Signed-off-by: Horia Geantă <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f9e7fe3 commit 7e2b89f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/crypto/caam/ctrl.c

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

100100
if (ctrlpriv->virt_en == 1 ||
101101
/*
102-
* Apparently on i.MX8MQ, 8MM, 8MN it doesn't matter if virt_en == 1
102+
* Apparently on i.MX8M{Q,M,N,P} 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") ||
106106
of_machine_is_compatible("fsl,imx8mm") ||
107-
of_machine_is_compatible("fsl,imx8mn")) {
107+
of_machine_is_compatible("fsl,imx8mn") ||
108+
of_machine_is_compatible("fsl,imx8mp")) {
108109
clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0);
109110

110111
while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) &&

0 commit comments

Comments
 (0)