zephyr/drivers/entropy/Kconfig.rv32m1
Ulf Magnusson 7c8421c2fd drivers: entropy: rv32m1: Turn pointless 'menuconfig' into 'config'
Same deal as in commit 677f1e6 ("config: Turn pointless/confusing
'menuconfig's into 'config's"), for a newly introduced symbol.

Also clean up a header to be consistent with recent cleanups.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-12-09 16:39:30 -05:00

19 lines
594 B
Plaintext

# RV32M1 entropy generator driver configuration
# Copyright 2019 NXP
# SPDX-License-Identifier: Apache-2.0
config ENTROPY_RV32M1_TRNG
bool "RV32M1 TRNG driver"
depends on ENTROPY_GENERATOR && SOC_OPENISA_RV32M1_RISCV32
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 xoroshiro RNG.
choice RNG_GENERATOR_CHOICE
default XOROSHIRO_RANDOM_GENERATOR if ENTROPY_RV32M1_TRNG
endchoice