projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f56809c
)
crypto: atmel-sha - add support of sama5d2x SoCs
author
Cyrille Pitchen
<cyrille.pitchen@atmel.com>
Fri, 15 Jan 2016 14:49:33 +0000
(15:49 +0100)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Mon, 25 Jan 2016 14:42:07 +0000
(22:42 +0800)
This patch adds support of hardware version 5.1.x embedded inside sama5d2x
SoCs.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-sha.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/atmel-sha.c
b/drivers/crypto/atmel-sha.c
index 75a8cbcf3121ea6d6bdb94933e26404d78761236..7327e11e0ccb719d0b015f36a17981b81610ac74 100644
(file)
--- a/
drivers/crypto/atmel-sha.c
+++ b/
drivers/crypto/atmel-sha.c
@@
-1279,6
+1279,12
@@
static void atmel_sha_get_cap(struct atmel_sha_dev *dd)
/* keep only major version number */
switch (dd->hw_version & 0xff0) {
+ case 0x510:
+ dd->caps.has_dma = 1;
+ dd->caps.has_dualbuff = 1;
+ dd->caps.has_sha224 = 1;
+ dd->caps.has_sha_384_512 = 1;
+ break;
case 0x420:
dd->caps.has_dma = 1;
dd->caps.has_dualbuff = 1;