From bcd77a572ceb3afa0849b091e0f19e5e73bd6837 Mon Sep 17 00:00:00 2001 From: David Leach Date: Thu, 19 Sep 2019 13:32:30 +0300 Subject: [PATCH] soc: riscv: rv32m1: kconfig: use RV32M1 TRNG as an entropy generator If the user requires an entropy generator to be activated, enable the SoC TRNG as a source for the entropy. Signed-off-by: David Leach --- soc/riscv/openisa_rv32m1/Kconfig.defconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/soc/riscv/openisa_rv32m1/Kconfig.defconfig b/soc/riscv/openisa_rv32m1/Kconfig.defconfig index 07e94d35be7..20a7fd1c86b 100644 --- a/soc/riscv/openisa_rv32m1/Kconfig.defconfig +++ b/soc/riscv/openisa_rv32m1/Kconfig.defconfig @@ -181,4 +181,11 @@ config FLASH_BASE_ADDRESS endif # FLASH +if ENTROPY_GENERATOR + +config ENTROPY_RV32M1_TRNG + default y + +endif # ENTROPY_GENERATOR + endif # SOC_OPENISA_RV32M1_RISCV32