]> git.dujemihanovic.xyz Git - u-boot.git/commit
tpm: rng: Add driver model interface for TPM RNG device
authorSughosh Ganu <sughosh.ganu@linaro.org>
Fri, 22 Jul 2022 16:02:04 +0000 (21:32 +0530)
committerIlias Apalodimas <ilias.apalodimas@linaro.org>
Tue, 2 Aug 2022 20:50:02 +0000 (23:50 +0300)
commite67ffb5aa5ab03a89305f4575ad3142486f9a306
tree624c26edcc914c27bcdd0a8a04e4490995572d84
parent5d98329196daaf624c39304aec1397d6363b3e72
tpm: rng: Add driver model interface for TPM RNG device

The TPM device has a builtin random number generator(RNG)
functionality. Expose the RNG functions of the TPM device to the
driver model so that they can be used by the EFI_RNG_PROTOCOL if the
protocol is installed.

Also change the function arguments and return type of the random
number functions to comply with the driver model api.

Signed-off-by: Sughosh Ganu <sughosh.ganu@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
drivers/rng/Kconfig
drivers/rng/Makefile
drivers/rng/tpm_rng.c [new file with mode: 0644]
lib/Kconfig
lib/tpm_api.c