hwrng: bcm2835 - Add support for Broadcom BCM5301x
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 23 Jun 2016 00:27:02 +0000 (17:27 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Jun 2016 13:24:58 +0000 (21:24 +0800)
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>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/bcm2835-rng.c

index 51401100466ba81c47f3abaea56159d261dfad65..56ad5a5936a9a3fb17f6480dceb7acd37e3c8be6 100644 (file)
@@ -90,7 +90,7 @@ config HW_RANDOM_BCM63XX
 
 config HW_RANDOM_BCM2835
        tristate "Broadcom BCM2835 Random Number Generator support"
-       depends on ARCH_BCM2835 || ARCH_BCM_NSP
+       depends on ARCH_BCM2835 || ARCH_BCM_NSP || ARCH_BCM_5301X
        default HW_RANDOM
        ---help---
          This driver provides kernel-side support for the Random Number
index 75ca820730be88f1da7cb2fb9bdd654f11d40829..af2149273fe049b075d0953034cda0aab1525f23 100644 (file)
@@ -70,6 +70,7 @@ static struct hwrng bcm2835_rng_ops = {
 static const struct of_device_id bcm2835_rng_of_match[] = {
        { .compatible = "brcm,bcm2835-rng"},
        { .compatible = "brcm,bcm-nsp-rng", .data = nsp_rng_init},
+       { .compatible = "brcm,bcm5301x-rng", .data = nsp_rng_init},
        {},
 };