Skip to content

Commit

Permalink
soc: riscv: rv32m1: kconfig: use RV32M1 TRNG as an entropy generator
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dleach02 authored and carlescufi committed Nov 8, 2019
1 parent d65ddcd commit bcd77a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions soc/riscv/openisa_rv32m1/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit bcd77a5

Please sign in to comment.