]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwrng: airoha - add support for Airoha EN7581 TRNG
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 17 Oct 2024 12:44:38 +0000 (14:44 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Oct 2024 10:33:10 +0000 (18:33 +0800)
commite53ca8efcc5ec1a19b699f40f506ce076e27c769
tree8190e58589f18f8f15aa88b214ef3a63e4c63656
parent7705fe6eb50b21d00a37a4d191456515d1a06ab9
hwrng: airoha - add support for Airoha EN7581 TRNG

Add support for Airoha TRNG. The Airoha SoC provide a True RNG module
that can output 4 bytes of raw data at times.

The module makes use of various noise source to provide True Random
Number Generation.

On probe the module is reset to operate Health Test and verify correct
execution of it.

The module can also provide DRBG function but the execution mode is
mutually exclusive, running as TRNG doesn't permit to also run it as
DRBG.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/Makefile
drivers/char/hw_random/airoha-trng.c [new file with mode: 0644]