mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	hwrng: iproc-rng200 - Add support for BCM7278
BCM7278 features a RNG200 hardware random number generator block, add support for this chip by matching the chip-specific compatible string and extending the Kconfig dependencies to allow building on ARCH_BRCMSTB (base platform for 7278). Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
		
							parent
							
								
									8ddef132a3
								
							
						
					
					
						commit
						c3577f6100
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -100,12 +100,12 @@ config HW_RANDOM_BCM2835
 | 
				
			||||||
	  If unsure, say Y.
 | 
						  If unsure, say Y.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
config HW_RANDOM_IPROC_RNG200
 | 
					config HW_RANDOM_IPROC_RNG200
 | 
				
			||||||
	tristate "Broadcom iProc RNG200 support"
 | 
						tristate "Broadcom iProc/STB RNG200 support"
 | 
				
			||||||
	depends on ARCH_BCM_IPROC
 | 
						depends on ARCH_BCM_IPROC || ARCH_BRCMSTB
 | 
				
			||||||
	default HW_RANDOM
 | 
						default HW_RANDOM
 | 
				
			||||||
	---help---
 | 
						---help---
 | 
				
			||||||
	  This driver provides kernel-side support for the RNG200
 | 
						  This driver provides kernel-side support for the RNG200
 | 
				
			||||||
	  hardware found on the Broadcom iProc SoCs.
 | 
						  hardware found on the Broadcom iProc and STB SoCs.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	  To compile this driver as a module, choose M here: the
 | 
						  To compile this driver as a module, choose M here: the
 | 
				
			||||||
	  module will be called iproc-rng200
 | 
						  module will be called iproc-rng200
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -220,6 +220,7 @@ static int iproc_rng200_probe(struct platform_device *pdev)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct of_device_id iproc_rng200_of_match[] = {
 | 
					static const struct of_device_id iproc_rng200_of_match[] = {
 | 
				
			||||||
 | 
						{ .compatible = "brcm,bcm7278-rng200", },
 | 
				
			||||||
	{ .compatible = "brcm,iproc-rng200", },
 | 
						{ .compatible = "brcm,iproc-rng200", },
 | 
				
			||||||
	{},
 | 
						{},
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue