mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 07:34:31 +00:00
31565bb0aa
The ARMv8.5 architecture extension defines architectural RNDR/RNDRRS system registers, that provide 64 bits worth of randomness on every read. Since it's an extension, and implementing it is optional, there is a field in the ID_AA64ISAR0_EL1 ID register to query the availability of those registers. Add a UCLASS_RNG driver that returns entropy via repeated reads from those system registers, if the extension is implemented. The driver always binds, but checks the availability in the probe() routine. This helps systems which suffer from low boot entropy, since U-Boot can provide entropy via the generic UEFI entropy gathering protocol to the OS, at an early stage. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Reviewed-by: Simon Glass <sjg@chromium.org> |
||
---|---|---|
.. | ||
arm_rndr.c | ||
iproc_rng200.c | ||
Kconfig | ||
Makefile | ||
meson-rng.c | ||
msm_rng.c | ||
npcm_rng.c | ||
optee_rng.c | ||
rng-uclass.c | ||
rockchip_rng.c | ||
sandbox_rng.c | ||
smccc_trng.c | ||
stm32_rng.c | ||
tpm_rng.c |