diff options
author | Lokesh Vutla <lokeshvutla@ti.com> | 2013-08-29 08:52:10 -0400 |
---|---|---|
committer | Paul Walmsley <paul@pwsan.com> | 2013-10-09 11:02:51 -0400 |
commit | ace1e3ec4a2540c783e65884bb7be9cd45a0a295 (patch) | |
tree | 944e02b7dd2494e45b52efd81c6cbc29afb64c91 | |
parent | f92d9597f781f6a5a39c73dc71604bd8a21c5299 (diff) |
ARM: AM33xx: hwmod: Add RNG module data
Add RNG hwmod data for AM33xx SoC.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod_33xx_data.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c index dd3aa31c313b..a166e5394113 100644 --- a/arch/arm/mach-omap2/omap_hwmod_33xx_data.c +++ b/arch/arm/mach-omap2/omap_hwmod_33xx_data.c | |||
@@ -2493,6 +2493,41 @@ static struct omap_hwmod_ocp_if am33xx_l3_main__aes0 = { | |||
2493 | .user = OCP_USER_MPU | OCP_USER_SDMA, | 2493 | .user = OCP_USER_MPU | OCP_USER_SDMA, |
2494 | }; | 2494 | }; |
2495 | 2495 | ||
2496 | /* rng */ | ||
2497 | static struct omap_hwmod_class_sysconfig am33xx_rng_sysc = { | ||
2498 | .rev_offs = 0x1fe0, | ||
2499 | .sysc_offs = 0x1fe4, | ||
2500 | .sysc_flags = SYSC_HAS_AUTOIDLE | SYSC_HAS_SIDLEMODE, | ||
2501 | .idlemodes = SIDLE_FORCE | SIDLE_NO, | ||
2502 | .sysc_fields = &omap_hwmod_sysc_type1, | ||
2503 | }; | ||
2504 | |||
2505 | static struct omap_hwmod_class am33xx_rng_hwmod_class = { | ||
2506 | .name = "rng", | ||
2507 | .sysc = &am33xx_rng_sysc, | ||
2508 | }; | ||
2509 | |||
2510 | static struct omap_hwmod am33xx_rng_hwmod = { | ||
2511 | .name = "rng", | ||
2512 | .class = &am33xx_rng_hwmod_class, | ||
2513 | .clkdm_name = "l4ls_clkdm", | ||
2514 | .flags = HWMOD_SWSUP_SIDLE, | ||
2515 | .main_clk = "rng_fck", | ||
2516 | .prcm = { | ||
2517 | .omap4 = { | ||
2518 | .clkctrl_offs = AM33XX_CM_PER_RNG_CLKCTRL_OFFSET, | ||
2519 | .modulemode = MODULEMODE_SWCTRL, | ||
2520 | }, | ||
2521 | }, | ||
2522 | }; | ||
2523 | |||
2524 | static struct omap_hwmod_ocp_if am33xx_l4_per__rng = { | ||
2525 | .master = &am33xx_l4_ls_hwmod, | ||
2526 | .slave = &am33xx_rng_hwmod, | ||
2527 | .clk = "rng_fck", | ||
2528 | .user = OCP_USER_MPU, | ||
2529 | }; | ||
2530 | |||
2496 | static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = { | 2531 | static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = { |
2497 | &am33xx_l3_main__emif, | 2532 | &am33xx_l3_main__emif, |
2498 | &am33xx_mpu__l3_main, | 2533 | &am33xx_mpu__l3_main, |
@@ -2572,6 +2607,7 @@ static struct omap_hwmod_ocp_if *am33xx_hwmod_ocp_ifs[] __initdata = { | |||
2572 | &am33xx_cpgmac0__mdio, | 2607 | &am33xx_cpgmac0__mdio, |
2573 | &am33xx_l3_main__sha0, | 2608 | &am33xx_l3_main__sha0, |
2574 | &am33xx_l3_main__aes0, | 2609 | &am33xx_l3_main__aes0, |
2610 | &am33xx_l4_per__rng, | ||
2575 | NULL, | 2611 | NULL, |
2576 | }; | 2612 | }; |
2577 | 2613 | ||