1# RV32M1 entropy generator driver configuration
2
3# Copyright 2019 NXP
4# SPDX-License-Identifier: Apache-2.0
5
6config ENTROPY_RV32M1_TRNG
7	bool "RV32M1 TRNG driver"
8	default y
9	depends on DT_HAS_OPENISA_RV32M1_TRNG_ENABLED
10	select ENTROPY_HAS_DRIVER
11	help
12	  This option enables the true random number generator (TRNG)
13	  driver based on the RV32M1 TRNG driver.
14
15# Don't use use the RV32M1 TRNG as a random source since it can be quite slow.
16# Instead, use the software implemented xoshiro RNG.
17choice RNG_GENERATOR_CHOICE
18	default XOSHIRO_RANDOM_GENERATOR if ENTROPY_RV32M1_TRNG
19endchoice
20