summaryrefslogtreecommitdiff
path: root/drivers/crypto/Kconfig
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-05-24 19:26:48 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-05-30 10:35:45 +0300
commitc34a320176a59445d76783e5ee043d6ecd22d011 (patch)
treebfd1e21b2b68dad8d2f213b9a7b59c70bde84e81 /drivers/crypto/Kconfig
parent3c756aa346dfac5ae6b7fe81cb1c6380a20b1e41 (diff)
downloadlinux-c34a320176a59445d76783e5ee043d6ecd22d011.tar.xz
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>
Diffstat (limited to 'drivers/crypto/Kconfig')
-rw-r--r--drivers/crypto/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 119ba073f424..20674842261e 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -519,9 +519,13 @@ config CRYPTO_DEV_ATMEL_SHA
To compile this driver as a module, choose M here: the module
will be called atmel-sha.
+config CRYPTO_DEV_ATMEL_I2C
+ tristate
+
config CRYPTO_DEV_ATMEL_ECC
tristate "Support for Microchip / Atmel ECC hw accelerator"
depends on I2C
+ select CRYPTO_DEV_ATMEL_I2C
select CRYPTO_ECDH
select CRC16
help