[PATCH 1/1] riscv: qemu: imply CONFIG_RNG_RISCV_ZKR

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Mar 2 09:50:17 CET 2025


The zkr ISA extension can be used to generate random numbers. Since RVA22
zkr is an optional ISA extension. It can be emulated by QEMU. Our RNG
driver detects if the extension is usable during driver binding. Let's
enable it by default on QEMU.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
---
 board/emulation/qemu-riscv/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/board/emulation/qemu-riscv/Kconfig b/board/emulation/qemu-riscv/Kconfig
index 012ac14a123..134dbfd7151 100644
--- a/board/emulation/qemu-riscv/Kconfig
+++ b/board/emulation/qemu-riscv/Kconfig
@@ -62,6 +62,7 @@ config BOARD_SPECIFIC_OPTIONS # dummy
 	imply VIDEO_SIMPLE
 	imply PCIE_ECAM_GENERIC
 	imply DM_RNG
+	imply RNG_RISCV_ZKR
 	imply DM_RTC
 	imply RTC_GOLDFISH
 	imply SCSI
-- 
2.48.1



More information about the U-Boot mailing list