aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Lendacky <thomas.lendacky@amd.com>2013-11-12 12:46:51 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2013-12-05 08:28:40 -0500
commitf114766088f352a47f57307ff927b815e0239644 (patch)
tree763d44982b4350819d0cf7dd7ddf5f1633135d81
parent0ab0a1d505ab6f684076b9c5ef9279e29c2b08ae (diff)
crytpo: ccp - CCP device driver build files
These files provide the ability to configure and build the AMD CCP device driver and crypto API support. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/Kconfig12
-rw-r--r--drivers/crypto/Makefile1
-rw-r--r--drivers/crypto/ccp/Kconfig23
-rw-r--r--drivers/crypto/ccp/Makefile10
4 files changed, 46 insertions, 0 deletions
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig
index f4fd837bcb82..4954d7579c5b 100644
--- a/drivers/crypto/Kconfig
+++ b/drivers/crypto/Kconfig
@@ -399,4 +399,16 @@ config CRYPTO_DEV_ATMEL_SHA
399 To compile this driver as a module, choose M here: the module 399 To compile this driver as a module, choose M here: the module
400 will be called atmel-sha. 400 will be called atmel-sha.
401 401
402config CRYPTO_DEV_CCP
403 bool "Support for AMD Cryptographic Coprocessor"
404 depends on X86
405 default n
406 help
407 The AMD Cryptographic Coprocessor provides hardware support
408 for encryption, hashing and related operations.
409
410if CRYPTO_DEV_CCP
411 source "drivers/crypto/ccp/Kconfig"
412endif
413
402endif # CRYPTO_HW 414endif # CRYPTO_HW
diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile
index b4946ddd2550..8a6c86a2e2c9 100644
--- a/drivers/crypto/Makefile
+++ b/drivers/crypto/Makefile
@@ -22,3 +22,4 @@ obj-$(CONFIG_CRYPTO_DEV_NX) += nx/
22obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o 22obj-$(CONFIG_CRYPTO_DEV_ATMEL_AES) += atmel-aes.o
23obj-$(CONFIG_CRYPTO_DEV_ATMEL_TDES) += atmel-tdes.o 23obj-$(CONFIG_CRYPTO_DEV_ATMEL_TDES) += atmel-tdes.o
24obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o 24obj-$(CONFIG_CRYPTO_DEV_ATMEL_SHA) += atmel-sha.o
25obj-$(CONFIG_CRYPTO_DEV_CCP) += ccp/
diff --git a/drivers/crypto/ccp/Kconfig b/drivers/crypto/ccp/Kconfig
new file mode 100644
index 000000000000..335ed5cac7a0
--- /dev/null
+++ b/drivers/crypto/ccp/Kconfig
@@ -0,0 +1,23 @@
1config CRYPTO_DEV_CCP_DD
2 tristate "Cryptographic Coprocessor device driver"
3 depends on CRYPTO_DEV_CCP
4 default m
5 help
6 Provides the interface to use the AMD Cryptographic Coprocessor
7 which can be used to accelerate or offload encryption operations
8 such as SHA, AES and more. If you choose 'M' here, this module
9 will be called ccp.
10
11config CRYPTO_DEV_CCP_CRYPTO
12 tristate "Encryption and hashing acceleration support"
13 depends on CRYPTO_DEV_CCP_DD
14 default m
15 select CRYPTO_ALGAPI
16 select CRYPTO_HASH
17 select CRYPTO_BLKCIPHER
18 select CRYPTO_AUTHENC
19 help
20 Support for using the cryptographic API with the AMD Cryptographic
21 Coprocessor. This module supports acceleration and offload of SHA
22 and AES algorithms. If you choose 'M' here, this module will be
23 called ccp_crypto.
diff --git a/drivers/crypto/ccp/Makefile b/drivers/crypto/ccp/Makefile
new file mode 100644
index 000000000000..d3505a018720
--- /dev/null
+++ b/drivers/crypto/ccp/Makefile
@@ -0,0 +1,10 @@
1obj-$(CONFIG_CRYPTO_DEV_CCP_DD) += ccp.o
2ccp-objs := ccp-dev.o ccp-ops.o
3ccp-objs += ccp-pci.o
4
5obj-$(CONFIG_CRYPTO_DEV_CCP_CRYPTO) += ccp-crypto.o
6ccp-crypto-objs := ccp-crypto-main.o \
7 ccp-crypto-aes.o \
8 ccp-crypto-aes-cmac.o \
9 ccp-crypto-aes-xts.o \
10 ccp-crypto-sha.o