]> git.dujemihanovic.xyz Git - u-boot.git/commit
rng: Provide a RNG based on the RISC-V Zkr ISA extension
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 31 Oct 2023 12:55:52 +0000 (14:55 +0200)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 2 Nov 2023 08:22:06 +0000 (16:22 +0800)
commitceec977ba1a994df423cd8558f72d6582e63da08
tree5a776fd8812046f5bd06ecc8163551d0dab070f4
parent9757cae991669f9a3d2b981b77231ee891d0597d
rng: Provide a RNG based on the RISC-V Zkr ISA extension

The Zkr ISA extension (ratified Nov 2021) introduced the seed CSR. It
provides an interface to a physical entropy source.

A RNG driver based on the seed CSR is provided. It depends on
mseccfg.sseed being set in the SBI firmware.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
drivers/rng/Kconfig
drivers/rng/Makefile
drivers/rng/riscv_zkr_rng.c [new file with mode: 0644]