summaryrefslogtreecommitdiff
path: root/drivers/rng
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-02-02 19:45:35 +0100
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-03-11 08:29:58 +0100
commitc312c4b4dcd0574b81ff2c0d543f42295305ffaa (patch)
treed373cec35a897f84627abfd0c110853b420db59c /drivers/rng
parent2b8568f461188e8bd14ebe9b6968c56baca7b142 (diff)
downloadu-boot-c312c4b4dcd0574b81ff2c0d543f42295305ffaa.tar.gz
drivers/rng: simplify Kconfig
For all sandbox systems with DM_RNG we enable RNG_SANDBOX. So we can simply set the default to yes. All rng drivers depend on DM_RNG. Use a single 'if' instead of individual dependencies. Now 'make menuconfig' shows the individual drivers neatly indented under the DM_RNG entry. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Diffstat (limited to 'drivers/rng')
-rw-r--r--drivers/rng/Kconfig9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/rng/Kconfig b/drivers/rng/Kconfig
index 893b89d49b..c1aa43b823 100644
--- a/drivers/rng/Kconfig
+++ b/drivers/rng/Kconfig
@@ -6,16 +6,21 @@ config DM_RNG
This interface is used to initialise the rng device and to
read the random seed from the device.
+if DM_RNG
+
config RNG_SANDBOX
bool "Sandbox random number generator"
- depends on SANDBOX && DM_RNG
+ depends on SANDBOX
+ default y
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
+ depends on ARCH_STM32MP
default n
help
Enable STM32MP1 rng driver.
+
+endif