diff options
author | Nicolas Royer <nicolas@eukrea.com> | 2013-02-20 11:10:26 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-03-10 04:46:42 -0400 |
commit | d4905b38d1f6b60761a6fd16f45ebd1fac8b6e1f (patch) | |
tree | 4f81ac788b02368092133f742e52de9c3dd52c38 /drivers/crypto/atmel-sha-regs.h | |
parent | 1f858040c2f78013fd2b10ddeb9dc157c3362b04 (diff) |
crypto: atmel-sha - add support for latest release of the IP (0x410)
Updates from IP release 0x320 to 0x400:
- add DMA support (previous IP revision use PDC)
- add DMA double input buffer support
- add SHA224 support
Update from IP release 0x400 to 0x410:
- add SHA384 and SHA512 support
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 'drivers/crypto/atmel-sha-regs.h')
-rw-r--r-- | drivers/crypto/atmel-sha-regs.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/crypto/atmel-sha-regs.h b/drivers/crypto/atmel-sha-regs.h index dc53a20d7da1..83b2d7425666 100644 --- a/drivers/crypto/atmel-sha-regs.h +++ b/drivers/crypto/atmel-sha-regs.h | |||
@@ -14,10 +14,13 @@ | |||
14 | #define SHA_MR_MODE_MANUAL 0x0 | 14 | #define SHA_MR_MODE_MANUAL 0x0 |
15 | #define SHA_MR_MODE_AUTO 0x1 | 15 | #define SHA_MR_MODE_AUTO 0x1 |
16 | #define SHA_MR_MODE_PDC 0x2 | 16 | #define SHA_MR_MODE_PDC 0x2 |
17 | #define SHA_MR_DUALBUFF (1 << 3) | ||
18 | #define SHA_MR_PROCDLY (1 << 4) | 17 | #define SHA_MR_PROCDLY (1 << 4) |
19 | #define SHA_MR_ALGO_SHA1 (0 << 8) | 18 | #define SHA_MR_ALGO_SHA1 (0 << 8) |
20 | #define SHA_MR_ALGO_SHA256 (1 << 8) | 19 | #define SHA_MR_ALGO_SHA256 (1 << 8) |
20 | #define SHA_MR_ALGO_SHA384 (2 << 8) | ||
21 | #define SHA_MR_ALGO_SHA512 (3 << 8) | ||
22 | #define SHA_MR_ALGO_SHA224 (4 << 8) | ||
23 | #define SHA_MR_DUALBUFF (1 << 16) | ||
21 | 24 | ||
22 | #define SHA_IER 0x10 | 25 | #define SHA_IER 0x10 |
23 | #define SHA_IDR 0x14 | 26 | #define SHA_IDR 0x14 |
@@ -33,6 +36,8 @@ | |||
33 | #define SHA_ISR_URAT_MR (0x2 << 12) | 36 | #define SHA_ISR_URAT_MR (0x2 << 12) |
34 | #define SHA_ISR_URAT_WO (0x5 << 12) | 37 | #define SHA_ISR_URAT_WO (0x5 << 12) |
35 | 38 | ||
39 | #define SHA_HW_VERSION 0xFC | ||
40 | |||
36 | #define SHA_TPR 0x108 | 41 | #define SHA_TPR 0x108 |
37 | #define SHA_TCR 0x10C | 42 | #define SHA_TCR 0x10C |
38 | #define SHA_TNPR 0x118 | 43 | #define SHA_TNPR 0x118 |