2019-11-18 19:01:42 +08:00
|
|
|
# RV32M1 entropy generator driver configuration
|
|
|
|
|
2019-04-08 23:12:40 +08:00
|
|
|
# Copyright 2019 NXP
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-11-14 12:44:34 +08:00
|
|
|
config ENTROPY_RV32M1_TRNG
|
2019-04-08 23:12:40 +08:00
|
|
|
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.
|
2019-09-19 18:19:55 +08:00
|
|
|
|
|
|
|
# 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
|