aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod_3xxx_data.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod_3xxx_data.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
index 3c8dd928628e..8688960932f4 100644
--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
+++ b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c
@@ -29,6 +29,7 @@
29 29
30#include "omap_hwmod_common_data.h" 30#include "omap_hwmod_common_data.h"
31 31
32#include "smartreflex.h"
32#include "prm-regbits-34xx.h" 33#include "prm-regbits-34xx.h"
33#include "cm-regbits-34xx.h" 34#include "cm-regbits-34xx.h"
34#include "wd_timer.h" 35#include "wd_timer.h"
@@ -2664,6 +2665,10 @@ static struct omap_hwmod_class omap36xx_smartreflex_hwmod_class = {
2664}; 2665};
2665 2666
2666/* SR1 */ 2667/* SR1 */
2668static struct omap_smartreflex_dev_attr sr1_dev_attr = {
2669 .sensor_voltdm_name = "mpu_iva",
2670};
2671
2667static struct omap_hwmod_ocp_if *omap3_sr1_slaves[] = { 2672static struct omap_hwmod_ocp_if *omap3_sr1_slaves[] = {
2668 &omap3_l4_core__sr1, 2673 &omap3_l4_core__sr1,
2669}; 2674};
@@ -2672,7 +2677,6 @@ static struct omap_hwmod omap34xx_sr1_hwmod = {
2672 .name = "sr1_hwmod", 2677 .name = "sr1_hwmod",
2673 .class = &omap34xx_smartreflex_hwmod_class, 2678 .class = &omap34xx_smartreflex_hwmod_class,
2674 .main_clk = "sr1_fck", 2679 .main_clk = "sr1_fck",
2675 .vdd_name = "mpu_iva",
2676 .prcm = { 2680 .prcm = {
2677 .omap2 = { 2681 .omap2 = {
2678 .prcm_reg_id = 1, 2682 .prcm_reg_id = 1,
@@ -2684,6 +2688,7 @@ static struct omap_hwmod omap34xx_sr1_hwmod = {
2684 }, 2688 },
2685 .slaves = omap3_sr1_slaves, 2689 .slaves = omap3_sr1_slaves,
2686 .slaves_cnt = ARRAY_SIZE(omap3_sr1_slaves), 2690 .slaves_cnt = ARRAY_SIZE(omap3_sr1_slaves),
2691 .dev_attr = &sr1_dev_attr,
2687 .flags = HWMOD_SET_DEFAULT_CLOCKACT, 2692 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2688}; 2693};
2689 2694
@@ -2691,7 +2696,6 @@ static struct omap_hwmod omap36xx_sr1_hwmod = {
2691 .name = "sr1_hwmod", 2696 .name = "sr1_hwmod",
2692 .class = &omap36xx_smartreflex_hwmod_class, 2697 .class = &omap36xx_smartreflex_hwmod_class,
2693 .main_clk = "sr1_fck", 2698 .main_clk = "sr1_fck",
2694 .vdd_name = "mpu_iva",
2695 .prcm = { 2699 .prcm = {
2696 .omap2 = { 2700 .omap2 = {
2697 .prcm_reg_id = 1, 2701 .prcm_reg_id = 1,
@@ -2703,9 +2707,14 @@ static struct omap_hwmod omap36xx_sr1_hwmod = {
2703 }, 2707 },
2704 .slaves = omap3_sr1_slaves, 2708 .slaves = omap3_sr1_slaves,
2705 .slaves_cnt = ARRAY_SIZE(omap3_sr1_slaves), 2709 .slaves_cnt = ARRAY_SIZE(omap3_sr1_slaves),
2710 .dev_attr = &sr1_dev_attr,
2706}; 2711};
2707 2712
2708/* SR2 */ 2713/* SR2 */
2714static struct omap_smartreflex_dev_attr sr2_dev_attr = {
2715 .sensor_voltdm_name = "core",
2716};
2717
2709static struct omap_hwmod_ocp_if *omap3_sr2_slaves[] = { 2718static struct omap_hwmod_ocp_if *omap3_sr2_slaves[] = {
2710 &omap3_l4_core__sr2, 2719 &omap3_l4_core__sr2,
2711}; 2720};
@@ -2714,7 +2723,6 @@ static struct omap_hwmod omap34xx_sr2_hwmod = {
2714 .name = "sr2_hwmod", 2723 .name = "sr2_hwmod",
2715 .class = &omap34xx_smartreflex_hwmod_class, 2724 .class = &omap34xx_smartreflex_hwmod_class,
2716 .main_clk = "sr2_fck", 2725 .main_clk = "sr2_fck",
2717 .vdd_name = "core",
2718 .prcm = { 2726 .prcm = {
2719 .omap2 = { 2727 .omap2 = {
2720 .prcm_reg_id = 1, 2728 .prcm_reg_id = 1,
@@ -2726,6 +2734,7 @@ static struct omap_hwmod omap34xx_sr2_hwmod = {
2726 }, 2734 },
2727 .slaves = omap3_sr2_slaves, 2735 .slaves = omap3_sr2_slaves,
2728 .slaves_cnt = ARRAY_SIZE(omap3_sr2_slaves), 2736 .slaves_cnt = ARRAY_SIZE(omap3_sr2_slaves),
2737 .dev_attr = &sr2_dev_attr,
2729 .flags = HWMOD_SET_DEFAULT_CLOCKACT, 2738 .flags = HWMOD_SET_DEFAULT_CLOCKACT,
2730}; 2739};
2731 2740
@@ -2733,7 +2742,6 @@ static struct omap_hwmod omap36xx_sr2_hwmod = {
2733 .name = "sr2_hwmod", 2742 .name = "sr2_hwmod",
2734 .class = &omap36xx_smartreflex_hwmod_class, 2743 .class = &omap36xx_smartreflex_hwmod_class,
2735 .main_clk = "sr2_fck", 2744 .main_clk = "sr2_fck",
2736 .vdd_name = "core",
2737 .prcm = { 2745 .prcm = {
2738 .omap2 = { 2746 .omap2 = {
2739 .prcm_reg_id = 1, 2747 .prcm_reg_id = 1,
@@ -2745,6 +2753,7 @@ static struct omap_hwmod omap36xx_sr2_hwmod = {
2745 }, 2753 },
2746 .slaves = omap3_sr2_slaves, 2754 .slaves = omap3_sr2_slaves,
2747 .slaves_cnt = ARRAY_SIZE(omap3_sr2_slaves), 2755 .slaves_cnt = ARRAY_SIZE(omap3_sr2_slaves),
2756 .dev_attr = &sr2_dev_attr,
2748}; 2757};
2749 2758
2750/* 2759/*