aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrei Varvara <andrei.varvara@freescale.com>2013-05-28 15:37:06 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2013-05-28 15:37:06 +0800
commitd179333b0c6298291c384a0b0ba51ee67d983758 (patch)
treed379e7ec5113c44c634a6d353fb39327b2ba32d4
parent524f1bd9a3d401cca16bca16582cd71c0abc8bd9 (diff)
downloadkernel_goldelico_gta04-d179333b0c6298291c384a0b0ba51ee67d983758.zip
kernel_goldelico_gta04-d179333b0c6298291c384a0b0ba51ee67d983758.tar.gz
kernel_goldelico_gta04-d179333b0c6298291c384a0b0ba51ee67d983758.tar.bz2
crypto: caam - Add MATH command to support shld function
Perform 32-bit left shift of DEST and concatenate with left 32 bits of SRC1. {DEST[31:0],SRC1[63:32]} Signed-off-by: Andrei Varvara <andrei.varvara@freescale.com> Acked-by: Mihai Serb <mihai.serb@freescale.com> Reviewed-by: Phillips Kim-R1AAHA <Kim.Phillips@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r--drivers/crypto/caam/desc_constr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/crypto/caam/desc_constr.h b/drivers/crypto/caam/desc_constr.h
index fc4470a..08c95a1 100644
--- a/drivers/crypto/caam/desc_constr.h
+++ b/drivers/crypto/caam/desc_constr.h
@@ -299,6 +299,8 @@ append_cmd(desc, CMD_MATH | MATH_FUN_##op | MATH_DEST_##dest | \
APPEND_MATH(LSHIFT, desc, dest, src0, src1, len)
#define append_math_rshift(desc, dest, src0, src1, len) \
APPEND_MATH(RSHIFT, desc, dest, src0, src1, len)
+#define append_math_ldshift(desc, dest, src0, src1, len) \
+ APPEND_MATH(SHLD, desc, dest, src0, src1, len)
/* Exactly one source is IMM. Data is passed in as u32 value */
#define APPEND_MATH_IMM_u32(op, desc, dest, src_0, src_1, data) \