crypto: sun8i-ce - Add support for the TRNG
authorCorentin Labbe <clabbe@baylibre.com>
Fri, 18 Sep 2020 07:23:13 +0000 (07:23 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:28 +0000 (17:48 +1000)
commit4a07eab32f4b5f432ee9d212b8db1b8e4699e9db
tree1d2d87c695a2bf9b19fc1351f9ceb628f257bb74
parent5eb7e946888493959b1c393144934afcbcd0cfc1
crypto: sun8i-ce - Add support for the TRNG

This patch had support for the TRNG present in the CE.
Note that according to the algorithm ID, 2 version of the TRNG exists,
the first present in H3/H5/R40/A64 and the second present in H6.
This patch adds support for both, but only the second is working
reliabily according to rngtest.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/allwinner/Kconfig
drivers/crypto/allwinner/sun8i-ce/Makefile
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-core.c
drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c [new file with mode: 0644]
drivers/crypto/allwinner/sun8i-ce/sun8i-ce.h