diff options
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 |