diff options
author | Berne Hebark <berne.hebark@stericsson.com> | 2011-05-25 14:27:51 +0200 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 09:00:40 +0100 |
commit | ce2d02ffde9ab77769e7a58704fa710251e38cab (patch) | |
tree | 2d87be8c8bcdaad2fc443cf9b4da24cd1ff38b7a /arch/arm/mach-ux500/include/mach | |
parent | 5a53f2df1058534c83866e8cf2f1ae0610ced84d (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/arm/mach-ux500/include/mach')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/crypto-ux500.h | 4 |
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 |