summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pdata-quirks.c
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2014-04-07 14:28:46 +0200
committerTony Lindgren <tony@atomide.com>2014-05-13 10:08:03 -0700
commit14c0a5b4b909b6276f5cdcdbaaa2cfe6cc2b1309 (patch)
tree93988d89e25c42ebf23190609cb37cdf2fa1776c /arch/arm/mach-omap2/pdata-quirks.c
parent89ca3b881987f5a4be4c5dbaa7f0df12bbdde2fd (diff)
downloadlinux-stable-14c0a5b4b909b6276f5cdcdbaaa2cfe6cc2b1309.tar.gz
linux-stable-14c0a5b4b909b6276f5cdcdbaaa2cfe6cc2b1309.tar.bz2
linux-stable-14c0a5b4b909b6276f5cdcdbaaa2cfe6cc2b1309.zip
ARM: OMAP2+: Add support for RNG on DT booted N900
Add support for OMAP3 ROM Random Number Generator via pdata-quirks. Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pdata-quirks.c')
-rw-r--r--arch/arm/mach-omap2/pdata-quirks.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c
index c3b73351cb7a..fa298bd2476e 100644
--- a/arch/arm/mach-omap2/pdata-quirks.c
+++ b/arch/arm/mach-omap2/pdata-quirks.c
@@ -226,6 +226,14 @@ static void __init am3517_evm_legacy_init(void)
am35xx_emac_reset();
}
+static struct platform_device omap3_rom_rng_device = {
+ .name = "omap3-rom-rng",
+ .id = -1,
+ .dev = {
+ .platform_data = rx51_secure_rng_call,
+ },
+};
+
static void __init nokia_n900_legacy_init(void)
{
hsmmc2_internal_input_clk();
@@ -239,6 +247,10 @@ static void __init nokia_n900_legacy_init(void)
pr_warning("RX-51: Not enabling ARM errata 430973 workaround\n");
pr_warning("Thumb binaries may crash randomly without this workaround\n");
}
+
+ pr_info("RX-51: Registring OMAP3 HWRNG device\n");
+ platform_device_register(&omap3_rom_rng_device);
+
}
}
#endif /* CONFIG_ARCH_OMAP3 */