crypto: atmel-ecc - factor out code that can be shared
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 24 May 2019 16:26:48 +0000 (18:26 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 30 May 2019 07:35:45 +0000 (15:35 +0800)
commitc34a320176a59445d76783e5ee043d6ecd22d011
treebfd1e21b2b68dad8d2f213b9a7b59c70bde84e81
parent3c756aa346dfac5ae6b7fe81cb1c6380a20b1e41
crypto: atmel-ecc - factor out code that can be shared

In preparation of adding support for the random number generator in
Atmel atsha204a devices, refactor the existing atmel-ecc driver (which
drives hardware that is closely related) so we can share the basic
I2C and command queuing routines.

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-ecc.c
drivers/crypto/atmel-ecc.h [deleted file]
drivers/crypto/atmel-i2c.c [new file with mode: 0644]
drivers/crypto/atmel-i2c.h [new file with mode: 0644]