]> git.dujemihanovic.xyz Git - u-boot.git/commit
rng: stm32: Implement custom RNG configuration support
authorGatien Chevallier <gatien.chevallier@foss.st.com>
Tue, 19 Sep 2023 15:27:58 +0000 (17:27 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 4 Oct 2023 11:26:03 +0000 (13:26 +0200)
commite077d7f61309d83fa94c55b17bfccc255b4467fb
treedc4a0487c4ce3c0813d95fe7e78ee18beec6609c
parent6032292534e0f47012edd76cd88b2c952856f928
rng: stm32: Implement custom RNG configuration support

STM32 RNG configuration should best fit the requirements of the
platform. Therefore, put a platform-specific RNG configuration
field in the platform data. Default RNG configuration for STM32MP13
is the NIST certified configuration [1].

While there, fix and the RNG init sequence to support all RNG
versions.

[1] https://csrc.nist.gov/projects/cryptographic-module-validation-program/entropy-validations/certificate/53

Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/rng/stm32_rng.c