riscv: qemu: imply CONFIG_RNG_RISCV_ZKR
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 2 Mar 2025 08:50:17 +0000 (09:50 +0100)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 25 Mar 2025 08:00:13 +0000 (16:00 +0800)
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@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
board/emulation/qemu-riscv/Kconfig

index 012ac14..134dbfd 100644 (file)
@@ -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