crypto: ccp - Update CCP build support
authorTom Lendacky <thomas.lendacky@amd.com>
Tue, 3 Feb 2015 19:07:11 +0000 (13:07 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Feb 2015 09:48:48 +0000 (22:48 +1300)
Add HAS_IOMEM as a Kconfig dependency. Always include ccp-platform.c
in the CCP build and conditionally include ccp-pci.c.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/Kconfig
drivers/crypto/ccp/Makefile

index 2fb0fdfc87df912f4ba926c1a6974e3803887c30..b840b79655bcc6311619045684a4861f18a5c271 100644 (file)
@@ -391,7 +391,7 @@ config CRYPTO_DEV_ATMEL_SHA
 
 config CRYPTO_DEV_CCP
        bool "Support for AMD Cryptographic Coprocessor"
-       depends on (X86 && PCI) || ARM64
+       depends on ((X86 && PCI) || ARM64) && HAS_IOMEM
        default n
        help
          The AMD Cryptographic Coprocessor provides hardware support
index 7f592d8d07bb1be86c7858649a13796147a142c7..55a1f3951578f4fe473343cd9b0595d663c26874 100644 (file)
@@ -1,11 +1,6 @@
 obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o
-ccp-objs := ccp-dev.o ccp-ops.o
-ifdef CONFIG_X86
-ccp-objs += ccp-pci.o
-endif
-ifdef CONFIG_ARM64
-ccp-objs += ccp-platform.o
-endif
+ccp-objs := ccp-dev.o ccp-ops.o ccp-platform.o
+ccp-$(CONFIG_PCI) += ccp-pci.o
 
 obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o
 ccp-crypto-objs := ccp-crypto-main.o \