[PATCH 2/2] nomadik: Add rng clk to nomadik, RNG support to ux500
srinidhi kasagar
srinidhi.kasagar at stericsson.com
Tue May 11 02:58:34 EDT 2010
Add rng clock to nomadik lookup table, and add hardware
RNG support to ux500 machine which uses nomadik RNG driver.
Signed-off-by: srinidhi kasagar <srinidhi.kasagar at stericsson.com>
Acked-by: Linus Walleij <linus.walleij at dtericsson.com>
---
arch/arm/mach-nomadik/clock.c | 1 +
arch/arm/mach-ux500/board-mop500.c | 1 +
arch/arm/mach-ux500/devices.c | 5 +++++
arch/arm/mach-ux500/include/mach/devices.h | 1 +
4 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-nomadik/clock.c b/arch/arm/mach-nomadik/clock.c
index 60f5bee..2c471fc 100644
--- a/arch/arm/mach-nomadik/clock.c
+++ b/arch/arm/mach-nomadik/clock.c
@@ -56,6 +56,7 @@ static struct clk_lookup lookups[] = {
CLK(&clk_default, "gpio.1"),
CLK(&clk_default, "gpio.2"),
CLK(&clk_default, "gpio.3"),
+ CLK(&clk_default, "rng"),
};
static int __init clk_init(void)
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index fdcf0d4..602b999 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -124,6 +124,7 @@ static struct amba_device *amba_devs[] __initdata = {
&ux500_uart0_device,
&ux500_uart1_device,
&ux500_uart2_device,
+ &ux500_rng_device,
&u8500_ssp0_device,
};
diff --git a/arch/arm/mach-ux500/devices.c b/arch/arm/mach-ux500/devices.c
index 8a26889..65eb79a 100644
--- a/arch/arm/mach-ux500/devices.c
+++ b/arch/arm/mach-ux500/devices.c
@@ -29,6 +29,11 @@ struct amba_device ux500_pl031_device = {
.irq = {IRQ_RTC_RTT, NO_IRQ},
};
+struct amba_device ux500_rng_device = {
+ .dev = { .init_name = "rng" },
+ __MEM_4K_RESOURCE(UX500_RNG_BASE),
+};
+
struct amba_device ux500_uart0_device = {
.dev = { .init_name = "uart0" },
__MEM_4K_RESOURCE(UX500_UART0_BASE),
diff --git a/arch/arm/mach-ux500/include/mach/devices.h b/arch/arm/mach-ux500/include/mach/devices.h
index 0422af0..72fa6f7 100644
--- a/arch/arm/mach-ux500/include/mach/devices.h
+++ b/arch/arm/mach-ux500/include/mach/devices.h
@@ -18,6 +18,7 @@ extern struct amba_device u8500_ssp0_device;
extern struct amba_device ux500_uart0_device;
extern struct amba_device ux500_uart1_device;
extern struct amba_device ux500_uart2_device;
+extern struct amba_device ux500_rng_device;
extern struct platform_device ux500_i2c1_device;
extern struct platform_device ux500_i2c2_device;
--
1.6.3.3
More information about the linux-arm-kernel
mailing list