Skip to contentSkip to conversation

i.MX8 crypto/fsl: Enable fsl CAAM rng driver

PATCH New Gaurav Jain 2 participants 2 messages Apr 22, 2022 – May 20, 2022 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 i.MX8 crypto/fsl: Enable fsl CAAM rng driver

rng driver enabled to read random number using caam.

---
 drivers/crypto/fsl/jr.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/crypto/fsl/jr.c +7 -1
index 85a3dac796..acd29924f7 100644
@@ -767,8 +767,14 @@ init:
 		return -1;
 	}
 #if CONFIG_IS_ENABLED(OF_CONTROL)
-	if (ofnode_valid(scu_node))
+	if (ofnode_valid(scu_node)) {
+		if (IS_ENABLED(CONFIG_DM_RNG)) {
+			ret = device_bind_driver(NULL, "caam-rng", "caam-rng", NULL);
+			if (ret)
+				printf("Couldn't bind rng driver (%d)\n", ret);
+		}
 		return ret;
+	}
 #endif
 
 #ifdef CONFIG_FSL_CORENET
Signature · 1 line
2.25.1
#1 lore raw

PATCH v2 1/1 i.MX8 crypto/fsl: Enable fsl CAAM rng driver

Quoted 2 lines

rng driver enabled to read random number using caam.

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: [email protected]
=====================================================================