summaryrefslogtreecommitdiff
path: root/include/linux/platform_data/crypto-atmel.h
diff options
context:
space:
mode:
authorNicolas Royer <nicolas@eukrea.com>2013-02-20 20:10:23 +0400
committerHerbert Xu <herbert@gondor.apana.org.au>2013-03-10 12:46:41 +0400
commit6150f3bc0b4f94f0eea3e32b4e7462025e4bd972 (patch)
treecb34994298a6576ff55eb902aaa3b60bc3d1ccad /include/linux/platform_data/crypto-atmel.h
parentca81a1a1b8d79dd6706c9463a81e9491e940ca2b (diff)
downloadlinux-6150f3bc0b4f94f0eea3e32b4e7462025e4bd972.tar.xz
ARM: AT91SAM9G45: same platform data structure for all crypto peripherals
Only AES use DMA in AT91SAM9G45 (TDES and SHA use PDC). However latest Atmel TDES and SHA IP releases use DMA instead of PDC. --> Atmel TDES and SHA drivers need DMA platform data for those IP releases. Goal of this patch is to use the same platform data structure for all Atmel crypto peripherals. This structure contains information about DMA interface. Signed-off-by: Nicolas Royer <nicolas@eukrea.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Acked-by: Eric Bénard <eric@eukrea.com> Tested-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/platform_data/crypto-atmel.h')
-rw-r--r--include/linux/platform_data/crypto-atmel.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/platform_data/crypto-atmel.h b/include/linux/platform_data/crypto-atmel.h
new file mode 100644
index 000000000000..b46e0d9062a0
--- /dev/null
+++ b/include/linux/platform_data/crypto-atmel.h
@@ -0,0 +1,22 @@
+#ifndef __LINUX_CRYPTO_ATMEL_H
+#define __LINUX_CRYPTO_ATMEL_H
+
+#include <linux/platform_data/dma-atmel.h>
+
+/**
+ * struct crypto_dma_data - DMA data for AES/TDES/SHA
+ */
+struct crypto_dma_data {
+ struct at_dma_slave txdata;
+ struct at_dma_slave rxdata;
+};
+
+/**
+ * struct crypto_platform_data - board-specific AES/TDES/SHA configuration
+ * @dma_slave: DMA slave interface to use in data transfers.
+ */
+struct crypto_platform_data {
+ struct crypto_dma_data *dma_slave;
+};
+
+#endif /* __LINUX_CRYPTO_ATMEL_H */