summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2021-06-25 15:27:24 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2021-06-28 11:28:08 +0800
commite29dd5c8382e39210a180b75b68912f536893ef0 (patch)
treeecd3fa32bc48b23b559e14756522c1d72802d296 /drivers/crypto/Kconfig
parentdf941fdd779e43112323a9c057dbbdbc0b1512a2 (diff)
downloadlinux-e29dd5c8382e39210a180b75b68912f536893ef0.tar.bz2
crypto: sl3516 - Add dependency on ARCH_GEMINI
The Storlink SL3516 crypto engine is only present on Storlink Semiconductor/Storm Semiconductor/Cortina Systems Gemini SoCs. Hence add a dependency on ARCH_GEMINI, to prevent asking the user about this driver when configuring a kernel without Gemini support. While at it, group the dependencies. Fixes: 46c5338db7bd45b2 ("crypto: sl3516 - Add sl3516 crypto engine") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> 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, 2 insertions, 2 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index 8796ddf37cb5..51690e73153a 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -268,13 +268,13 @@ config CRYPTO_DEV_NIAGARA2
config CRYPTO_DEV_SL3516
tristate "Storlink SL3516 crypto offloader"
- depends on HAS_IOMEM
+ depends on ARCH_GEMINI || COMPILE_TEST
+ depends on HAS_IOMEM && PM
select CRYPTO_SKCIPHER
select CRYPTO_ENGINE
select CRYPTO_ECB
select CRYPTO_AES
select HW_RANDOM
- depends on PM
help
This option allows you to have support for SL3516 crypto offloader.