crypto: atmel-i2c - add support for SHA204A random number generator
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 24 May 2019 16:26:49 +0000 (18:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:35:45 +0000 (15:35 +0800)
commitda001fb651b00e1deeaf24767dd691ae8152a4f5
treebdbc39075a1846256f4c7d695cb659641a744eab
parentc34a320176a59445d76783e5ee043d6ecd22d011
crypto: atmel-i2c - add support for SHA204A random number generator

The Linaro/96boards Secure96 mezzanine contains (among other things)
an Atmel SHA204A symmetric crypto processor. This chip implements a
number of different functionalities, but one that is highly useful
for many different 96boards platforms is the random number generator.

So let's implement a driver for the SHA204A, and for the time being,
implement support for the random number generator only.

Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig
drivers/crypto/Makefile
drivers/crypto/atmel-i2c.c
drivers/crypto/atmel-i2c.h
drivers/crypto/atmel-sha204a.c [new file with mode: 0644]