powerpc/crypto: Build files for the nx device driver
authorKent Yoder <key@linux.vnet.ibm.com>
Thu, 12 Apr 2012 05:39:26 +0000 (05:39 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 16 May 2012 05:05:45 +0000 (15:05 +1000)
These files support configuring and building the nx device driver.

Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Makefile
drivers/crypto/Kconfig
drivers/crypto/nx/Makefile [new file with mode: 0644]

index 159e94f4b22aa3b808587812ccc013ff7bc18ee7..950d1f7a5a395baf7f5deae6d1e2888e9b92138b 100644 (file)
@@ -149,6 +149,7 @@ core-$(CONFIG_KVM)          += arch/powerpc/kvm/
 core-$(CONFIG_PERF_EVENTS)     += arch/powerpc/perf/
 
 drivers-$(CONFIG_OPROFILE)     += arch/powerpc/oprofile/
+drivers-$(CONFIG_CRYPTO_DEV_NX) += drivers/crypto/nx/
 
 # Default to zImage, override when needed
 all: zImage
index ab9abb46d01a741a4012bfaf40430a71636d9ca9..4319248761ddbea50730419898774d609f798f6e 100644 (file)
@@ -295,4 +295,21 @@ config CRYPTO_DEV_TEGRA_AES
          To compile this driver as a module, choose M here: the module
          will be called tegra-aes.
 
+config CRYPTO_DEV_NX
+       tristate "Support for Power7+ in-Nest cryptographic accleration"
+       depends on PPC64 && IBMVIO
+       select CRYPTO_AES
+       select CRYPTO_CBC
+       select CRYPTO_ECB
+       select CRYPTO_CCM
+       select CRYPTO_GCM
+       select CRYPTO_AUTHENC
+       select CRYPTO_XCBC
+       select CRYPTO_SHA256
+       select CRYPTO_SHA512
+       help
+         Support for Power7+ in-Nest cryptographic acceleration. This
+         module supports acceleration for AES and SHA2 algorithms. If you
+         choose 'M' here, this module will be called nx_crypto.
+
 endif # CRYPTO_HW
diff --git a/drivers/crypto/nx/Makefile b/drivers/crypto/nx/Makefile
new file mode 100644 (file)
index 0000000..411ce59
--- /dev/null
@@ -0,0 +1,11 @@
+obj-$(CONFIG_CRYPTO_DEV_NX) += nx-crypto.o
+nx-crypto-objs := nx.o \
+                 nx_debugfs.o \
+                 nx-aes-cbc.o \
+                 nx-aes-ecb.o \
+                 nx-aes-gcm.o \
+                 nx-aes-ccm.o \
+                 nx-aes-ctr.o \
+                 nx-aes-xcbc.o \
+                 nx-sha256.o \
+                 nx-sha512.o