2019-11-18 12:01:42 +01:00
|
|
|
# RV32M1 entropy generator driver configuration
|
|
|
|
|
2019-04-08 17:12:40 +02:00
|
|
|
# Copyright 2019 NXP
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-11-14 05:44:34 +01:00
|
|
|
config ENTROPY_RV32M1_TRNG
|
2019-04-08 17:12:40 +02:00
|
|
|
bool "RV32M1 TRNG driver"
|
2020-02-07 16:45:43 +01:00
|
|
|
depends on SOC_OPENISA_RV32M1_RISCV32
|
2019-04-08 17:12:40 +02: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 12:19:55 +02:00
|
|
|
|
|
|
|
# Don't use use the RV32M1 TRNG as a random source since it can be quite slow.
|
2021-07-25 11:00:50 +02:00
|
|
|
# Instead, use the software implemented xoshiro RNG.
|
2019-09-19 12:19:55 +02:00
|
|
|
choice RNG_GENERATOR_CHOICE
|
2021-07-25 11:00:50 +02:00
|
|
|
default XOSHIRO_RANDOM_GENERATOR if ENTROPY_RV32M1_TRNG
|
2019-09-19 12:19:55 +02:00
|
|
|
endchoice
|