mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 06:31:49 +00:00
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ă <horia.geanta@nxp.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
f9e7fe32a7
commit
7e2b89fb4a
@ -99,12 +99,13 @@ static inline int run_descriptor_deco0(struct device *ctrldev, u32 *desc,
|
||||
|
||||
if (ctrlpriv->virt_en == 1 ||
|
||||
/*
|
||||
* Apparently on i.MX8MQ, 8MM, 8MN it doesn't matter if virt_en == 1
|
||||
* Apparently on i.MX8M{Q,M,N,P} it doesn't matter if virt_en == 1
|
||||
* and the following steps should be performed regardless
|
||||
*/
|
||||
of_machine_is_compatible("fsl,imx8mq") ||
|
||||
of_machine_is_compatible("fsl,imx8mm") ||
|
||||
of_machine_is_compatible("fsl,imx8mn")) {
|
||||
of_machine_is_compatible("fsl,imx8mn") ||
|
||||
of_machine_is_compatible("fsl,imx8mp")) {
|
||||
clrsetbits_32(&ctrl->deco_rsr, 0, DECORSR_JR0);
|
||||
|
||||
while (!(rd_reg32(&ctrl->deco_rsr) & DECORSR_VALID) &&
|
||||
|
Loading…
Reference in New Issue
Block a user