* [PATCH v2] i.MX8 crypto/fsl: Enable fsl CAAM rng driver
@ 2022-04-22 11:08 Gaurav Jain
2022-05-20 13:43 ` sbabic
0 siblings, 1 reply; 2+ messages in thread
From: Gaurav Jain @ 2022-04-22 11:08 UTC (permalink / raw)
To: Stefano Babic, u-boot
Cc: Fabio Estevam, Priyanka Jain, Ye Li, Horia Geanta,
Silvano Di Ninno, Varun Sethi, NXP i . MX U-Boot Team,
Gaurav Jain
rng driver enabled to read random number using caam.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
---
drivers/crypto/fsl/jr.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c
index 85a3dac796..acd29924f7 100644
--- a/drivers/crypto/fsl/jr.c
+++ b/drivers/crypto/fsl/jr.c
@@ -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
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH v2] i.MX8 crypto/fsl: Enable fsl CAAM rng driver
2022-04-22 11:08 [PATCH v2] i.MX8 crypto/fsl: Enable fsl CAAM rng driver Gaurav Jain
@ 2022-05-20 13:43 ` sbabic
0 siblings, 0 replies; 2+ messages in thread
From: sbabic @ 2022-05-20 13:43 UTC (permalink / raw)
To: Gaurav Jain, u-boot
> rng driver enabled to read random number using caam.
> Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
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: sbabic@denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-20 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-22 11:08 [PATCH v2] i.MX8 crypto/fsl: Enable fsl CAAM rng driver Gaurav Jain
2022-05-20 13:43 ` sbabic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox