aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-11-01 19:20:06 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2017-11-10 06:20:12 -0500
commitc3577f6100ca43261cd1d00cd46fde014c5b51ad (patch)
treeaf9f56e4ee112566de0efb9fa7d4d16fd4be0f80
parent8ddef132a36f4081b7cc7a34bce6a666e78083e3 (diff)
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>
-rw-r--r--drivers/char/hw_random/Kconfig6
-rw-r--r--drivers/char/hw_random/iproc-rng200.c1
2 files changed, 4 insertions, 3 deletions
diff --git a/drivers/char/hw_random/Kconfig b/drivers/char/hw_random/Kconfig
index 95a031e9eced..f6e3e5abc117 100644
--- a/drivers/char/hw_random/Kconfig
+++ b/drivers/char/hw_random/Kconfig
@@ -100,12 +100,12 @@ config HW_RANDOM_BCM2835
100 If unsure, say Y. 100 If unsure, say Y.
101 101
102config HW_RANDOM_IPROC_RNG200 102config HW_RANDOM_IPROC_RNG200
103 tristate "Broadcom iProc RNG200 support" 103 tristate "Broadcom iProc/STB RNG200 support"
104 depends on ARCH_BCM_IPROC 104 depends on ARCH_BCM_IPROC || ARCH_BRCMSTB
105 default HW_RANDOM 105 default HW_RANDOM
106 ---help--- 106 ---help---
107 This driver provides kernel-side support for the RNG200 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 To compile this driver as a module, choose M here: the 110 To compile this driver as a module, choose M here: the
111 module will be called iproc-rng200 111 module will be called iproc-rng200
diff --git a/drivers/char/hw_random/iproc-rng200.c b/drivers/char/hw_random/iproc-rng200.c
index 3eaf7cb96d36..8b5a20b35293 100644
--- a/drivers/char/hw_random/iproc-rng200.c
+++ b/drivers/char/hw_random/iproc-rng200.c
@@ -220,6 +220,7 @@ static int iproc_rng200_probe(struct platform_device *pdev)
220} 220}
221 221
222static const struct of_device_id iproc_rng200_of_match[] = { 222static const struct of_device_id iproc_rng200_of_match[] = {
223 { .compatible = "brcm,bcm7278-rng200", },
223 { .compatible = "brcm,iproc-rng200", }, 224 { .compatible = "brcm,iproc-rng200", },
224 {}, 225 {},
225}; 226};