diff options
author | Tony Lindgren <tony@atomide.com> | 2013-10-11 16:14:23 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2013-10-11 16:14:23 -0700 |
commit | 9e490f486ea9ce7644be913e03ee5ccdf1be20f7 (patch) | |
tree | 7e8396a6addebd72e228f3beaa53826f3da227f3 /arch/arm/mach-omap2/board-rx51-peripherals.c | |
parent | 576e5bda70a5442381ee31285edada114d692132 (diff) | |
parent | d2065e2b5bb3ec986f0f3ba044a81a136767d0b4 (diff) |
Merge branch 'omap-for-v3.13/n900' into omap-for-v3.13/board
Diffstat (limited to 'arch/arm/mach-omap2/board-rx51-peripherals.c')
-rw-r--r-- | arch/arm/mach-omap2/board-rx51-peripherals.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-rx51-peripherals.c b/arch/arm/mach-omap2/board-rx51-peripherals.c index c3270c0f1fc..497d2604c7c 100644 --- a/arch/arm/mach-omap2/board-rx51-peripherals.c +++ b/arch/arm/mach-omap2/board-rx51-peripherals.c @@ -57,6 +57,8 @@ #include "common-board-devices.h" #include "gpmc.h" #include "gpmc-onenand.h" +#include "soc.h" +#include "omap-secure.h" #define SYSTEM_REV_B_USES_VAUX3 0x1699 #define SYSTEM_REV_S_USES_VAUX3 0x8 @@ -1289,6 +1291,22 @@ static void __init rx51_init_twl4030_hwmon(void) platform_device_register(&madc_hwmon); } +static struct platform_device omap3_rom_rng_device = { + .name = "omap3-rom-rng", + .id = -1, + .dev = { + .platform_data = rx51_secure_rng_call, + }, +}; + +static void __init rx51_init_omap3_rom_rng(void) +{ + if (omap_type() == OMAP2_DEVICE_TYPE_SEC) { + pr_info("RX-51: Registring OMAP3 HWRNG device\n"); + platform_device_register(&omap3_rom_rng_device); + } +} + void __init rx51_peripherals_init(void) { rx51_i2c_init(); @@ -1309,5 +1327,6 @@ void __init rx51_peripherals_init(void) rx51_charger_init(); rx51_init_twl4030_hwmon(); + rx51_init_omap3_rom_rng(); } |