]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
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 012ac14a123abbe9c58e8f206c0dc522977085a9..134dbfd715102f788eceda5ce8bea22548ad9d4a 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