Skip to content

Commit

Permalink
crypto: ccp - Update CCP build support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tom Lendacky authored and Herbert Xu committed Feb 27, 2015
1 parent 8db8846 commit a5bd093
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion drivers/crypto/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 2 additions & 7 deletions drivers/crypto/ccp/Makefile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit a5bd093

Please sign in to comment.