crypto: ccp - Update CCP build support
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>
This commit is contained in:
parent
8db8846754
commit
a5bd093af0
|
@ -391,7 +391,7 @@ config CRYPTO_DEV_ATMEL_SHA
|
||||||
|
|
||||||
config CRYPTO_DEV_CCP
|
config CRYPTO_DEV_CCP
|
||||||
bool "Support for AMD Cryptographic Coprocessor"
|
bool "Support for AMD Cryptographic Coprocessor"
|
||||||
depends on (X86 && PCI) || ARM64
|
depends on ((X86 && PCI) || ARM64) && HAS_IOMEM
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
The AMD Cryptographic Coprocessor provides hardware support
|
The AMD Cryptographic Coprocessor provides hardware support
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o
|
obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o
|
||||||
ccp-objs := ccp-dev.o ccp-ops.o
|
ccp-objs := ccp-dev.o ccp-ops.o ccp-platform.o
|
||||||
ifdef CONFIG_X86
|
ccp-$(CONFIG_PCI) += ccp-pci.o
|
||||||
ccp-objs += ccp-pci.o
|
|
||||||
endif
|
|
||||||
ifdef CONFIG_ARM64
|
|
||||||
ccp-objs += ccp-platform.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o
|
obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o
|
||||||
ccp-crypto-objs := ccp-crypto-main.o \
|
ccp-crypto-objs := ccp-crypto-main.o \
|
||||||
|
|
Loading…
Reference in New Issue