Skip to content
Merged
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
9 changes: 4 additions & 5 deletions drivers/entropy/entropy_gecko_trng.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,16 @@ static int entropy_gecko_trng_get_entropy(const struct device *dev,

ARG_UNUSED(dev);

#ifdef CONFIG_CRYPTO_ACC_GECKO_TRNG
CMU_ClockEnable(cmuClock_CRYPTOACC, true);
#endif

while (length) {
#ifndef CONFIG_CRYPTO_ACC_GECKO_TRNG
available = TRNG0->FIFOLEVEL * 4;
#else
CMU_ClockEnable(cmuClock_CRYPTOACC, true);
available = S2_FIFO_LEVEL * 4;
#endif
if (available == 0) {
return -EINVAL;
}

count = SL_MIN(length, available);
entropy_gecko_trng_read(buffer, count);
buffer += count;
Expand Down
16 changes: 16 additions & 0 deletions soc/silabs/silabs_siwx91x/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ configdefault SYS_CLOCK_TICKS_PER_SEC
configdefault UART_NS16550_DW8250_DW_APB
default y

configdefault ZERO_LATENCY_IRQS
default y

configdefault ZERO_LATENCY_LEVELS
default 2

if PM_DEVICE

configdefault PM_DEVICE_RUNTIME
default y

configdefault POWER_DOMAIN
default y

endif # PM_DEVICE

if SILABS_SIWX91X_NWP

# WiseConnect create threads with realtime priority. Default (10kHz) clock tick
Expand Down