i.MX8 crypto/fsl: Enable fsl CAAM rng driver
PATCH v2 1/1 i.MX8 crypto/fsl: Enable fsl CAAM rng driver
rng driver enabled to read random number using caam.
Signed-off-by Gaurav Jain <[email protected]>
--- drivers/crypto/fsl/jr.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/crypto/fsl/jr.c +7 -1
@@ -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
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.
Signed-off-by Gaurav Jain <[email protected]>
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] =====================================================================