WSL2-Linux-Kernel/drivers/firmware/smccc
Andre Przywara b83c2d92be firmware: smccc: Register smccc_trng platform device
At the moment we probe for the Random Number Generator SMCCC service,
and use that in the core code (arch_get_random). However the hardware
entropy can also be useful to access from userland, and be it to assess
its quality.

Register a platform device when the SMCCC TRNG service is detected, to
allow a hw_random driver to hook onto this.

The function registering the device is deliberately made in a way which
allows expansion, so other services that could be exposed via a platform
device (or some other interface), can be added here easily.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-08-06 19:45:25 +08:00
..
Kconfig firmware: smccc: Add ARCH_SOC_ID support 2020-07-06 09:48:06 +01:00
Makefile arm/arm64: Probe for the presence of KVM hypervisor 2021-03-31 09:16:55 +01:00
kvm_guest.c arm/arm64: Probe for the presence of KVM hypervisor 2021-03-31 09:16:55 +01:00
smccc.c firmware: smccc: Register smccc_trng platform device 2021-08-06 19:45:25 +08:00
soc_id.c firmware: smccc: Add ARCH_SOC_ID support 2020-07-06 09:48:06 +01:00