crypto: octeon - add MD5 module
authorAaro Koskinen <aaro.koskinen@iki.fi>
Sun, 21 Dec 2014 20:54:01 +0000 (22:54 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 23 Dec 2014 21:14:23 +0000 (08:14 +1100)
Add OCTEON MD5 module.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/mips/cavium-octeon/crypto/Makefile
arch/mips/cavium-octeon/crypto/octeon-crypto.h
arch/mips/cavium-octeon/crypto/octeon-md5.c [new file with mode: 0644]

index 739b803..a74f76d 100644 (file)
@@ -3,3 +3,5 @@
 #
 
 obj-y += octeon-crypto.o
+
+obj-$(CONFIG_CRYPTO_MD5_OCTEON) += octeon-md5.o
index 3f65bc6..e2a4aec 100644 (file)
@@ -14,6 +14,8 @@
 #include <linux/sched.h>
 #include <asm/mipsregs.h>
 
+#define OCTEON_CR_OPCODE_PRIORITY 300
+
 extern unsigned long octeon_crypto_enable(struct octeon_cop2_state *state);
 extern void octeon_crypto_disable(struct octeon_cop2_state *state,
                                  unsigned long flags);