diff options
author | Leilei Zhao <leilei.zhao@atmel.com> | 2015-04-07 11:45:03 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-08 16:20:01 +0200 |
commit | 141824d0ae3b125a499b35138c01c985e81c0aca (patch) | |
tree | 748c6703c0d36b30178b6feea095ed836d389a77 /drivers/crypto/atmel-sha.c | |
parent | crypto: atmel-aes - add new version (diff) | |
download | linux-141824d0ae3b125a499b35138c01c985e81c0aca.tar.xz linux-141824d0ae3b125a499b35138c01c985e81c0aca.zip |
crypto: atmel-sha - add new version
Add new version of atmel-sha available with SAMA5D4 devices.
Signed-off-by: Leilei Zhao <leilei.zhao@atmel.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/atmel-sha.c')
-rw-r--r-- | drivers/crypto/atmel-sha.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/crypto/atmel-sha.c b/drivers/crypto/atmel-sha.c index 325d6b66c27c..f1a00aa944eb 100644 --- a/drivers/crypto/atmel-sha.c +++ b/drivers/crypto/atmel-sha.c @@ -1266,6 +1266,12 @@ static void atmel_sha_get_cap(struct atmel_sha_dev *dd) /* keep only major version number */ switch (dd->hw_version & 0xff0) { + case 0x420: + dd->caps.has_dma = 1; + dd->caps.has_dualbuff = 1; + dd->caps.has_sha224 = 1; + dd->caps.has_sha_384_512 = 1; + break; case 0x410: dd->caps.has_dma = 1; dd->caps.has_dualbuff = 1; |