diff options
author | Marek Vasut <marex@denx.de> | 2024-04-26 01:02:07 +0200 |
---|---|---|
committer | Fabio Estevam <festevam@denx.de> | 2024-05-05 11:21:39 -0300 |
commit | 591257b05caba725eb57ceb174317ab4c7e460a7 (patch) | |
tree | 8e063a61eb4072220e3a20574f15b46f2edc51a2 /drivers/rng | |
parent | 2f1e76bcfee75b9f99ade63002c05ffaaec86afb (diff) | |
download | u-boot-591257b05caba725eb57ceb174317ab4c7e460a7.tar.gz u-boot-591257b05caba725eb57ceb174317ab4c7e460a7.tar.bz2 u-boot-591257b05caba725eb57ceb174317ab4c7e460a7.zip |
rng: Introduce SPL_DM_RNG
Add SPL variant of DM_RNG so that the DM_RNG can be disabled in SPL
if necessary. This may be necessary due to e.g. size constraints of
the SPL.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/rng')
-rw-r--r-- | drivers/rng/Kconfig | 7 | ||||
-rw-r--r-- | drivers/rng/Makefile | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/drivers/rng/Kconfig b/drivers/rng/Kconfig index cd72852a47..5758ae192a 100644 --- a/drivers/rng/Kconfig +++ b/drivers/rng/Kconfig @@ -6,6 +6,13 @@ config DM_RNG This interface is used to initialise the rng device and to read the random seed from the device. +config SPL_DM_RNG + bool "Driver support for Random Number Generator devices in SPL" + depends on SPL_DM + help + This option is an SPL-variant of the DM_RNG option. + See the help of DM_RNG for details. + if DM_RNG config RNG_MESON diff --git a/drivers/rng/Makefile b/drivers/rng/Makefile index ecae1a3da3..c1f1c616e0 100644 --- a/drivers/rng/Makefile +++ b/drivers/rng/Makefile @@ -3,7 +3,7 @@ # Copyright (c) 2019, Linaro Limited # -obj-$(CONFIG_DM_RNG) += rng-uclass.o +obj-$(CONFIG_$(SPL_TPL_)DM_RNG) += rng-uclass.o obj-$(CONFIG_RNG_MESON) += meson-rng.o obj-$(CONFIG_RNG_SANDBOX) += sandbox_rng.o obj-$(CONFIG_RNG_MSM) += msm_rng.o |