Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions arch/arm/src/rp23xx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,17 @@ endif # ADC

endif # RP23XX_ADC

config RP23XX_TRNG
bool "Enable TRNG (hardware true random number generator)"
default n
select ARCH_HAVE_RNG
---help---
Enable the RP2350 on-chip true random number generator. It serves
conditioned hardware entropy as /dev/random and /dev/urandom
(overriding the software /dev/urandom), which backs getrandom() and
therefore the mbedtls entropy source. Enable this for any workload
that mints keys or signs on the device.

#####################################################################
# CLK_GPOUT Configuration
#####################################################################
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/src/rp23xx/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ ifeq ($(CONFIG_RP23XX_I2C_SLAVE),y)
CHIP_CSRCS += rp23xx_i2c_slave.c
endif

ifeq ($(CONFIG_RP23XX_TRNG),y)
CHIP_CSRCS += rp23xx_rng.c
endif

ifeq ($(CONFIG_RP23XX_I2S),y)
CHIP_CSRCS += rp23xx_i2s.c
CHIP_CSRCS += rp23xx_i2s_pio.c
Expand Down
Loading
Loading