Skip to content

Commit

Permalink
hwrng: nomadik - Add platform device for rng in cpu-8815
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alessandro Rubini authored and Herbert Xu committed Dec 19, 2009
1 parent bc85b25 commit d2392ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arch/arm/mach-nomadik/cpu-8815.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d2392ba

Please sign in to comment.