summaryrefslogtreecommitdiff
path: root/drivers/crypto/fsl/Kconfig
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2020-06-27 23:58:53 +0300
committerPriyanka Jain <priyanka.jain@nxp.com>2020-07-27 11:46:29 +0300
commitea95f2142e94bfb68c61e5724616f9949b974a4c (patch)
treefb916a55959c59d0407cb515cea9402567c6a958 /drivers/crypto/fsl/Kconfig
parentb980f9e2597b52ce71247e79d534349f7d174b38 (diff)
downloadu-boot-ea95f2142e94bfb68c61e5724616f9949b974a4c.tar.xz
crypto/fsl: add RNG support
Register the random number generator with the rng subsystem in u-boot. This way it can be used by EFI as well as for the 'rng' command. Signed-off-by: Michael Walle <michael@walle.cc> Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'drivers/crypto/fsl/Kconfig')
-rw-r--r--drivers/crypto/fsl/Kconfig14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/crypto/fsl/Kconfig b/drivers/crypto/fsl/Kconfig
index 181a1e5e99..5ed6140da3 100644
--- a/drivers/crypto/fsl/Kconfig
+++ b/drivers/crypto/fsl/Kconfig
@@ -45,3 +45,17 @@ config SYS_FSL_SEC_COMPAT
config SYS_FSL_SEC_LE
bool "Little-endian access to Freescale Secure Boot"
+
+if FSL_CAAM
+
+config FSL_CAAM_RNG
+ bool "Enable Random Number Generator support"
+ depends on DM_RNG
+ default y
+ help
+ Enable support for the hardware based random number generator
+ module of the CAAM. The random data is fetched from the DRGB
+ using the prediction resistance flag which means the DRGB is
+ reseeded from the TRNG every time random data is generated.
+
+endif