Skip to content

Commit 5214099

Browse files
ffainelliherbertx
authored andcommitted
hwrng: bcm2835 - Add support for Broadcom BCM5301x
The Broadcom BCM5301x SoCs (Northstar) utilize the same random number generator peripheral as Northstar Plus and BCM2835, but just like the NSP SoC, we need to enable the interrupt. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent b578456 commit 5214099

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/char/hw_random/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ config HW_RANDOM_BCM63XX
9090

9191
config HW_RANDOM_BCM2835
9292
tristate "Broadcom BCM2835 Random Number Generator support"
93-
depends on ARCH_BCM2835 || ARCH_BCM_NSP
93+
depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X
9494
default HW_RANDOM
9595
---help---
9696
This driver provides kernel-side support for the Random Number

‎drivers/char/hw_random/bcm2835-rng.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ static struct hwrng bcm2835_rng_ops = {
7070
static const struct of_device_id bcm2835_rng_of_match[] = {
7171
{ .compatible = "brcm,bcm2835-rng"},
7272
{ .compatible = "brcm,bcm-nsp-rng", .data = nsp_rng_init},
73+
{ .compatible = "brcm,bcm5301x-rng", .data = nsp_rng_init},
7374
{},
7475
};
7576

0 commit comments

Comments
 (0)