linux/drivers/crypto/allwinner
Samuel Holland f81c1d4a6d crypto: sun8i-ce - Add TRNG clock to the D1 variant
At least the D1 variant requires a separate clock for the TRNG.
Without this clock enabled, reading from /dev/hwrng reports:

   sun8i-ce 3040000.crypto: DMA timeout for TRNG (tm=96) on flow 3

Experimentation shows that the necessary clock is the SoC's internal
RC oscillator. This makes sense, as noise from the oscillator can be
used as a source of entropy.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-01-13 16:39:04 +08:00
..
sun4i-ss crypto: sun4i-ss - use DEFINE_SHOW_ATTRIBUTE to simplify sun4i_ss_debugfs 2022-09-24 16:14:44 +08:00
sun8i-ce crypto: sun8i-ce - Add TRNG clock to the D1 variant 2023-01-13 16:39:04 +08:00
sun8i-ss crypto: sun8i-ss - Remove GFP_DMA and add DMA alignment padding 2023-01-06 17:15:46 +08:00
Kconfig crypto: allwinner - add missing CRYPTO_ prefix 2021-04-09 17:41:05 +10:00
Makefile crypto: allwinner - Add sun8i-ss cryptographic offloader 2019-11-01 13:38:31 +08:00