diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-05-24 18:26:48 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-30 15:35:45 +0800 |
commit | c34a320176a59445d76783e5ee043d6ecd22d011 (patch) | |
tree | bfd1e21b2b68dad8d2f213b9a7b59c70bde84e81 /drivers/crypto/Kconfig | |
parent | 3c756aa346dfac5ae6b7fe81cb1c6380a20b1e41 (diff) | |
download | linux-stable-c34a320176a59445d76783e5ee043d6ecd22d011.tar.gz linux-stable-c34a320176a59445d76783e5ee043d6ecd22d011.tar.bz2 linux-stable-c34a320176a59445d76783e5ee043d6ecd22d011.zip |
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/Kconfig | 4 |
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 |