summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap-secure.c
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2013-09-20 15:25:07 +0200
committerTony Lindgren <tony@atomide.com>2013-10-08 12:02:12 -0700
commitd2065e2b5bb3ec986f0f3ba044a81a136767d0b4 (patch)
tree56d60a70b45e2bfbc43cebdb54f0943073a9b2ab /arch/arm/mach-omap2/omap-secure.c
parent4748a7240284b0f68bd47a66365c2cd561939830 (diff)
downloadlinux-d2065e2b5bb3ec986f0f3ba044a81a136767d0b4.tar.bz2
RX-51: Add support for OMAP3 ROM Random Number Generator
Adding this driver as platform device and only for RX-51 until somebody test if it working also on other OMAP3 HS devices and until there will be generic ARM way to deal with SMC calls. Signed-off-by: Pali Rohár <pali.rohar@gmail.com> [tony@atomide.com: folded in the clock alias change] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap-secure.c')
-rw-r--r--arch/arm/mach-omap2/omap-secure.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap-secure.c b/arch/arm/mach-omap2/omap-secure.c
index 146a7c4e2a13..5ac122e88f67 100644
--- a/arch/arm/mach-omap2/omap-secure.c
+++ b/arch/arm/mach-omap2/omap-secure.c
@@ -135,3 +135,14 @@ u32 rx51_secure_update_aux_cr(u32 set_bits, u32 clear_bits)
FLAG_START_CRITICAL,
1, acr, 0, 0, 0);
}
+
+/**
+ * rx51_secure_rng_call: Routine for HW random generator
+ */
+u32 rx51_secure_rng_call(u32 ptr, u32 count, u32 flag)
+{
+ return rx51_secure_dispatcher(RX51_PPA_HWRNG,
+ 0,
+ NO_FLAG,
+ 3, ptr, count, flag, 0);
+}