hwrng: nomadik - Add platform device for rng in cpu-8815
authorAlessandro Rubini <rubini@unipv.it>
Sat, 19 Dec 2009 11:46:33 +0000 (19:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 19 Dec 2009 11:46:33 +0000 (19:46 +0800)
Signed-off-by: Alessandro Rubini <rubini@unipv.it>
Acked-by: Andrea Gallo <andrea.gallo@stericsson.com>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm/mach-nomadik/cpu-8815.c

index f93c596341914f48954d35e04dd2cbc384814e54..9bf33b30a0251f4172d4ae4a33c320459f08087d 100644 (file)
@@ -86,11 +86,19 @@ static struct amba_device cpu8815_amba_gpio[] = {
        },
 };
 
+static struct amba_device cpu8815_amba_rng = {
+       .dev = {
+               .init_name = "rng",
+       },
+       __MEM_4K_RESOURCE(NOMADIK_RNG_BASE),
+};
+
 static struct amba_device *amba_devs[] __initdata = {
        cpu8815_amba_gpio + 0,
        cpu8815_amba_gpio + 1,
        cpu8815_amba_gpio + 2,
        cpu8815_amba_gpio + 3,
+       &cpu8815_amba_rng
 };
 
 static int __init cpu8815_init(void)