hwrng: omap - Add OMAP4 TRNG support
authorLokesh Vutla <lokeshvutla@ti.com>
Mon, 5 Aug 2013 14:47:23 +0000 (20:17 +0530)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 9 Aug 2013 06:39:48 +0000 (16:39 +1000)
commite83872c989fb704748956c0bf1b69874a35492c6
tree0c79da645911df9ef3575ecd92fb28db43de785d
parent674ee08f28f32032c40c6a9d5376edf4158bfbbc
hwrng: omap - Add OMAP4 TRNG support

Add support for OMAP4 version of TRNG module
that is present on OMAP4, AM33xx and OMAP5 SoCs.

The modules have several differences including register
offsets, output size, triggering rng and how configuring
FROs. To handle these differences, a platform_data structure
is defined and contains routine pointers, register offsets. OMAP2
specific routines are prefixed with 'omap2_' and OMAP4
specific routines are prefixed with 'omap4_'.

Note: Few Hard coded values are from the TI AM33xx SDK.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/char/hw_random/Kconfig
drivers/char/hw_random/omap-rng.c