summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorBerne Hebark <berne.hebark@stericsson.com>2011-05-25 14:27:51 +0200
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 11:04:38 +0200
commitea52e07a9554e72ac8a6ff26eb529f14b3e66248 (patch)
tree10ea7232b6bd6577188a1d690ae8148fb445ab09 /arch
parent43d77c96d9d50d2868ef1a8f14b0fb0cd478e3cc (diff)
crypto: ux500: hash: DMA support
- Support for DMA. - Direct to CPU mode for data size < 4 byte data. - Workaround to handle data sizes not modulo wordsize. - Error message/check for HMAC empty message with keysize > 0. - Error message/check for HMAC DMA for u5500, since not working. - Additional, update cryp driver dma code according to this patch and make minor adjustments to comply with mainline code and design are covered by AP370178. ST-Ericsson ID: 280691 ST-Ericsson Linux next: Not tested, ER 320876 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I14d64d1577f007969b372ed4ef04556eca8bc0d6 Signed-off-by: Berne Hebark <berne.hebark@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/33983 Reviewed-by: Per FORLIN <per.forlin@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QABUILD
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/include/mach/crypto-ux500.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/include/mach/crypto-ux500.h b/arch/arm/mach-ux500/include/mach/crypto-ux500.h
index 9d1e1c52c13..80c4620d633 100644
--- a/arch/arm/mach-ux500/include/mach/crypto-ux500.h
+++ b/arch/arm/mach-ux500/include/mach/crypto-ux500.h
@@ -5,6 +5,7 @@
* License terms: GNU General Public License (GPL) version 2
*/
#ifndef _CRYPTO_UX500_H
+#include <linux/dmaengine.h>
#include <plat/ste_dma40.h>
struct cryp_platform_data {
@@ -13,7 +14,8 @@ struct cryp_platform_data {
};
struct hash_platform_data {
- struct stedma40_chan_cfg mem_to_engine;
+ void *mem_to_engine;
+ bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
};
#endif