summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-09-26 09:31:42 -0600
committerTom Rini <[email protected]>2025-10-08 16:13:06 -0600
commitaf4acc7186fac32b69e2a0ad5e1ffb4677bfa825 (patch)
tree5f55dd4c0feb125b478827eba86af7efa8b7fc17
parent1d77a98b3d8c39a1421b7ae44186cb3a1c22ec7a (diff)
rng: Tighten some rng driver dependencies
In this case, the NPCM RNG driver also provides some of the functions that are implemented in the generic LIB_RAND file, so only allow this to be built when that is disabled. The exynos RNG driver depends on ARM SMCCC calls and so cannot be built outside of that. Express these requirements in Kconfig as well. Signed-off-by: Tom Rini <[email protected]>
-rw-r--r--drivers/rng/Kconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rng/Kconfig b/drivers/rng/Kconfig
index b35d8c66b9c..19b2b707677 100644
--- a/drivers/rng/Kconfig
+++ b/drivers/rng/Kconfig
@@ -40,7 +40,7 @@ config RNG_MSM
config RNG_NPCM
bool "Nuvoton NPCM SoCs Random Number Generator support"
- depends on DM_RNG
+ depends on DM_RNG && !LIB_RAND
help
Enable random number generator on NPCM SoCs.
This unit can provide 750 to 1000 random bits per second
@@ -122,7 +122,7 @@ config RNG_TURRIS_RWTM
config RNG_EXYNOS
bool "Samsung Exynos True Random Number Generator support"
- depends on DM_RNG
+ depends on DM_RNG && ARM
help
Enable support for True Random Number Generator (TRNG) available on
Exynos SoCs.