diff options
-rw-r--r-- | arch/powerpc/Makefile | 1 | ||||
-rw-r--r-- | drivers/crypto/Kconfig | 17 | ||||
-rw-r--r-- | drivers/crypto/nx/Makefile | 11 |
3 files changed, 29 insertions, 0 deletions
diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 159e94f4b22..950d1f7a5a3 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile | |||
@@ -149,6 +149,7 @@ core-$(CONFIG_KVM) += arch/powerpc/kvm/ | |||
149 | core-$(CONFIG_PERF_EVENTS) += arch/powerpc/perf/ | 149 | core-$(CONFIG_PERF_EVENTS) += arch/powerpc/perf/ |
150 | 150 | ||
151 | drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ | 151 | drivers-$(CONFIG_OPROFILE) += arch/powerpc/oprofile/ |
152 | drivers-$(CONFIG_CRYPTO_DEV_NX) += drivers/crypto/nx/ | ||
152 | 153 | ||
153 | # Default to zImage, override when needed | 154 | # Default to zImage, override when needed |
154 | all: zImage | 155 | all: zImage |
diff --git a/drivers/crypto/Kconfig b/drivers/crypto/Kconfig index ab9abb46d01..4319248761d 100644 --- a/drivers/crypto/Kconfig +++ b/drivers/crypto/Kconfig | |||
@@ -295,4 +295,21 @@ config CRYPTO_DEV_TEGRA_AES | |||
295 | To compile this driver as a module, choose M here: the module | 295 | To compile this driver as a module, choose M here: the module |
296 | will be called tegra-aes. | 296 | will be called tegra-aes. |
297 | 297 | ||
298 | config CRYPTO_DEV_NX | ||
299 | tristate "Support for Power7+ in-Nest cryptographic accleration" | ||
300 | depends on PPC64 && IBMVIO | ||
301 | select CRYPTO_AES | ||
302 | select CRYPTO_CBC | ||
303 | select CRYPTO_ECB | ||
304 | select CRYPTO_CCM | ||
305 | select CRYPTO_GCM | ||
306 | select CRYPTO_AUTHENC | ||
307 | select CRYPTO_XCBC | ||
308 | select CRYPTO_SHA256 | ||
309 | select CRYPTO_SHA512 | ||
310 | help | ||
311 | Support for Power7+ in-Nest cryptographic acceleration. This | ||
312 | module supports acceleration for AES and SHA2 algorithms. If you | ||
313 | choose 'M' here, this module will be called nx_crypto. | ||
314 | |||
298 | endif # CRYPTO_HW | 315 | endif # CRYPTO_HW |
diff --git a/drivers/crypto/nx/Makefile b/drivers/crypto/nx/Makefile new file mode 100644 index 00000000000..411ce59c80d --- /dev/null +++ b/drivers/crypto/nx/Makefile | |||
@@ -0,0 +1,11 @@ | |||
1 | obj-$(CONFIG_CRYPTO_DEV_NX) += nx-crypto.o | ||
2 | nx-crypto-objs := nx.o \ | ||
3 | nx_debugfs.o \ | ||
4 | nx-aes-cbc.o \ | ||
5 | nx-aes-ecb.o \ | ||
6 | nx-aes-gcm.o \ | ||
7 | nx-aes-ccm.o \ | ||
8 | nx-aes-ctr.o \ | ||
9 | nx-aes-xcbc.o \ | ||
10 | nx-sha256.o \ | ||
11 | nx-sha512.o | ||