Skip to content

Commit d2392ba

Browse files
Alessandro Rubiniherbertx
authored andcommitted
hwrng: nomadik - Add platform device for rng in cpu-8815
Signed-off-by: Alessandro Rubini <[email protected]> Acked-by: Andrea Gallo <[email protected]> Acked-by: Matt Mackall <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent bc85b25 commit d2392ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arch/arm/mach-nomadik/cpu-8815.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,19 @@ static struct amba_device cpu8815_amba_gpio[] = {
8686
},
8787
};
8888

89+
static struct amba_device cpu8815_amba_rng = {
90+
.dev = {
91+
.init_name = "rng",
92+
},
93+
__MEM_4K_RESOURCE(NOMADIK_RNG_BASE),
94+
};
95+
8996
static struct amba_device *amba_devs[] __initdata = {
9097
cpu8815_amba_gpio + 0,
9198
cpu8815_amba_gpio + 1,
9299
cpu8815_amba_gpio + 2,
93100
cpu8815_amba_gpio + 3,
101+
&cpu8815_amba_rng
94102
};
95103

96104
static int __init cpu8815_init(void)

0 commit comments

Comments
 (0)