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"
|
2022-07-22 14:40:12 +08:00
|
|
|
default y
|
|
|
|
depends on DT_HAS_OPENISA_RV32M1_TRNG_ENABLED
|
2019-04-08 23:12:40 +08:00
|
|
|
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.
|
2021-07-25 17:00:50 +08:00
|
|
|
# Instead, use the software implemented xoshiro RNG.
|
2019-09-19 18:19:55 +08:00
|
|
|
choice RNG_GENERATOR_CHOICE
|
2021-07-25 17:00:50 +08:00
|
|
|
default XOSHIRO_RANDOM_GENERATOR if ENTROPY_RV32M1_TRNG
|
2019-09-19 18:19:55 +08:00
|
|
|
endchoice
|