Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Florian Fainelli and committed by
Herbert Xu
c3577f61 8ddef132

+4 -3
+3 -3
drivers/char/hw_random/Kconfig
··· 100 100 If unsure, say Y. 101 101 102 102 config HW_RANDOM_IPROC_RNG200 103 - tristate "Broadcom iProc RNG200 support" 104 - depends on ARCH_BCM_IPROC 103 + tristate "Broadcom iProc/STB RNG200 support" 104 + depends on ARCH_BCM_IPROC || ARCH_BRCMSTB 105 105 default HW_RANDOM 106 106 ---help--- 107 107 This driver provides kernel-side support for the RNG200 108 - hardware found on the Broadcom iProc SoCs. 108 + hardware found on the Broadcom iProc and STB SoCs. 109 109 110 110 To compile this driver as a module, choose M here: the 111 111 module will be called iproc-rng200
+1
drivers/char/hw_random/iproc-rng200.c
··· 220 220 } 221 221 222 222 static const struct of_device_id iproc_rng200_of_match[] = { 223 + { .compatible = "brcm,bcm7278-rng200", }, 223 224 { .compatible = "brcm,iproc-rng200", }, 224 225 {}, 225 226 };