mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									cf1f0d1279
								
							
						
					
					
						commit
						141824d0ae
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Leilei Zhao
						Leilei Zhao