]> git.baikalelectronics.ru Git - uboot.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)
commitb3165c6144ea824d74768045a21533792e2fe911
tree624c26edcc914c27bcdd0a8a04e4490995572d84
parent25aa0238bcebc113ddab99a2a1b1d4b84d66cd66
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