aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/crypto/atmel-aes.c
diff options
context:
space:
mode:
authorLeilei Zhao <leilei.zhao@atmel.com>2015-04-07 05:45:02 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-08 10:20:00 -0400
commitcf1f0d12792cc57404582c9a7a693cf8f975e967 (patch)
tree752924e4f6fc3c149f3fb3001ad8931133be48bc /drivers/crypto/atmel-aes.c
parentb4e97050248d9cbf84a5fd023eb20c253b7ab35b (diff)
crypto: atmel-aes - add new version
Add new version of atmel-aes 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-aes.c')
-rw-r--r--drivers/crypto/atmel-aes.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c
index 2e875aaeaed7..3f19d7cf9ca4 100644
--- a/drivers/crypto/atmel-aes.c
+++ b/drivers/crypto/atmel-aes.c
@@ -1246,6 +1246,11 @@ static void atmel_aes_get_cap(struct atmel_aes_dev *dd)
1246 1246
1247 /* keep only major version number */ 1247 /* keep only major version number */
1248 switch (dd->hw_version & 0xff0) { 1248 switch (dd->hw_version & 0xff0) {
1249 case 0x200:
1250 dd->caps.has_dualbuff = 1;
1251 dd->caps.has_cfb64 = 1;
1252 dd->caps.max_burst_size = 4;
1253 break;
1249 case 0x130: 1254 case 0x130:
1250 dd->caps.has_dualbuff = 1; 1255 dd->caps.has_dualbuff = 1;
1251 dd->caps.has_cfb64 = 1; 1256 dd->caps.has_cfb64 = 1;