zephyr/drivers/entropy/Kconfig.rv32m1
Kumar Gala 2245bf89b7 drivers: entropy: Update drivers to use devicetree Kconfig symbol
Update entropy drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-25 09:39:10 +02:00

20 lines
588 B
Plaintext

# RV32M1 entropy generator driver configuration
# Copyright 2019 NXP
# SPDX-License-Identifier: Apache-2.0
config ENTROPY_RV32M1_TRNG
bool "RV32M1 TRNG driver"
default y
depends on DT_HAS_OPENISA_RV32M1_TRNG_ENABLED
select ENTROPY_HAS_DRIVER
help
This option enables the true random number generator (TRNG)
driver based on the RV32M1 TRNG driver.
# Don't use use the RV32M1 TRNG as a random source since it can be quite slow.
# Instead, use the software implemented xoshiro RNG.
choice RNG_GENERATOR_CHOICE
default XOSHIRO_RANDOM_GENERATOR if ENTROPY_RV32M1_TRNG
endchoice