diff options
author | Sughosh Ganu <sughosh.ganu@linaro.org> | 2019-12-28 23:58:31 +0530 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-01-07 18:08:21 +0100 |
commit | ff0dada9b863ab33a7c4b2d9955db1205f55cd01 (patch) | |
tree | aa89525c53517b97226b57001ef32046706f64e3 /drivers/rng/Kconfig | |
parent | 90950eec58f7b550db91588144e0e9cbaf9a49b7 (diff) | |
download | u-boot-ff0dada9b863ab33a7c4b2d9955db1205f55cd01.tar.gz |
sandbox: rng: Add a random number generator(rng) driver
Add a sandbox driver for random number generation. Mostly aimed at
providing a unit test for rng uclass.
Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Patrice Chotard <patrice.chotard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/rng/Kconfig')
-rw-r--r-- | drivers/rng/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/rng/Kconfig b/drivers/rng/Kconfig index c9c475128e..35a3bd192a 100644 --- a/drivers/rng/Kconfig +++ b/drivers/rng/Kconfig @@ -6,6 +6,14 @@ config DM_RNG This interface is used to initialise the rng device and to read the random seed from the device. +config RNG_SANDBOX + bool "Sandbox random number generator" + depends on SANDBOX && DM_RNG + select CONFIG_LIB_RAND + help + Enable random number generator for sandbox. This is an + emulation of a rng device. + config RNG_STM32MP1 bool "Enable random number generator for STM32MP1" depends on ARCH_STM32MP && DM_RNG |