diff options
author | Gaurav Jain <gaurav.jain@nxp.com> | 2022-04-22 16:38:34 +0530 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2022-05-19 21:39:36 +0200 |
commit | db74ced5dffc438924ac6ef2780bdb53cab50334 (patch) | |
tree | 2ad689ef2641b125aaef01419709df39c43408e8 /drivers | |
parent | ff04a0944d7885956a906aafc4a5f3c8eb044dce (diff) | |
download | u-boot-db74ced5dffc438924ac6ef2780bdb53cab50334.zip u-boot-db74ced5dffc438924ac6ef2780bdb53cab50334.tar.gz u-boot-db74ced5dffc438924ac6ef2780bdb53cab50334.tar.bz2 |
i.MX8 crypto/fsl: Enable fsl CAAM rng driver
rng driver enabled to read random number using caam.
Signed-off-by: Gaurav Jain <gaurav.jain@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/fsl/jr.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/crypto/fsl/jr.c b/drivers/crypto/fsl/jr.c index 85a3dac..acd2992 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 |