Skip to content

Commit c3577f6

Browse files
ffainelliherbertx
authored andcommitted
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>
1 parent 8ddef13 commit c3577f6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎drivers/char/hw_random/Kconfig‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,12 @@ config HW_RANDOM_BCM2835
100100
If unsure, say Y.
101101

102102
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
105105
default HW_RANDOM
106106
---help---
107107
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.
109109

110110
To compile this driver as a module, choose M here: the
111111
module will be called iproc-rng200

‎drivers/char/hw_random/iproc-rng200.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ static int iproc_rng200_probe(struct platform_device *pdev)
220220
}
221221

222222
static const struct of_device_id iproc_rng200_of_match[] = {
223+
{ .compatible = "brcm,bcm7278-rng200", },
223224
{ .compatible = "brcm,iproc-rng200", },
224225
{},
225226
};

0 commit comments

Comments
 (0)