aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock24xx.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2008-11-04 11:48:35 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-02-08 06:38:39 -0500
commit57137181e3136d4c7b20b4b95b9817efd38f8f07 (patch)
tree3a5986311d910db1a0f721e5e1cbe3f3d056fd66 /arch/arm/mach-omap2/clock24xx.h
parent897dcded6fb6565f4d1c22a55d21f135403db132 (diff)
[ARM] omap: kill PARENT_CONTROLS_CLOCK
PARENT_CONTROLS_CLOCK just makes enable/disable no-op, and is functionally an alias for ALWAYS_ENABLED. This can be handled in the same way, using clkops_null. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-omap2/clock24xx.h')
-rw-r--r--arch/arm/mach-omap2/clock24xx.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/arch/arm/mach-omap2/clock24xx.h b/arch/arm/mach-omap2/clock24xx.h
index d4869377307a..adc00e1064af 100644
--- a/arch/arm/mach-omap2/clock24xx.h
+++ b/arch/arm/mach-omap2/clock24xx.h
@@ -742,9 +742,10 @@ static const struct clksel func_54m_clksel[] = {
742 742
743static struct clk func_54m_ck = { 743static struct clk func_54m_ck = {
744 .name = "func_54m_ck", 744 .name = "func_54m_ck",
745 .ops = &clkops_null,
745 .parent = &apll54_ck, /* can also be alt_clk */ 746 .parent = &apll54_ck, /* can also be alt_clk */
746 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | 747 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X |
747 RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, 748 RATE_PROPAGATES,
748 .clkdm_name = "wkup_clkdm", 749 .clkdm_name = "wkup_clkdm",
749 .init = &omap2_init_clksel_parent, 750 .init = &omap2_init_clksel_parent,
750 .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKSEL1), 751 .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKSEL1),
@@ -783,9 +784,10 @@ static const struct clksel func_96m_clksel[] = {
783/* The parent of this clock is not selectable on 2420. */ 784/* The parent of this clock is not selectable on 2420. */
784static struct clk func_96m_ck = { 785static struct clk func_96m_ck = {
785 .name = "func_96m_ck", 786 .name = "func_96m_ck",
787 .ops = &clkops_null,
786 .parent = &apll96_ck, 788 .parent = &apll96_ck,
787 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | 789 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X |
788 RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, 790 RATE_PROPAGATES,
789 .clkdm_name = "wkup_clkdm", 791 .clkdm_name = "wkup_clkdm",
790 .init = &omap2_init_clksel_parent, 792 .init = &omap2_init_clksel_parent,
791 .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKSEL1), 793 .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKSEL1),
@@ -816,9 +818,10 @@ static const struct clksel func_48m_clksel[] = {
816 818
817static struct clk func_48m_ck = { 819static struct clk func_48m_ck = {
818 .name = "func_48m_ck", 820 .name = "func_48m_ck",
821 .ops = &clkops_null,
819 .parent = &apll96_ck, /* 96M or Alt */ 822 .parent = &apll96_ck, /* 96M or Alt */
820 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | 823 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X |
821 RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, 824 RATE_PROPAGATES,
822 .clkdm_name = "wkup_clkdm", 825 .clkdm_name = "wkup_clkdm",
823 .init = &omap2_init_clksel_parent, 826 .init = &omap2_init_clksel_parent,
824 .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKSEL1), 827 .clksel_reg = OMAP_CM_REGADDR(PLL_MOD, CM_CLKSEL1),
@@ -831,10 +834,11 @@ static struct clk func_48m_ck = {
831 834
832static struct clk func_12m_ck = { 835static struct clk func_12m_ck = {
833 .name = "func_12m_ck", 836 .name = "func_12m_ck",
837 .ops = &clkops_null,
834 .parent = &func_48m_ck, 838 .parent = &func_48m_ck,
835 .fixed_div = 4, 839 .fixed_div = 4,
836 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | 840 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X |
837 RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, 841 RATE_PROPAGATES,
838 .clkdm_name = "wkup_clkdm", 842 .clkdm_name = "wkup_clkdm",
839 .recalc = &omap2_fixed_divisor_recalc, 843 .recalc = &omap2_fixed_divisor_recalc,
840}; 844};
@@ -917,9 +921,9 @@ static const struct clksel sys_clkout_clksel[] = {
917 921
918static struct clk sys_clkout = { 922static struct clk sys_clkout = {
919 .name = "sys_clkout", 923 .name = "sys_clkout",
924 .ops = &clkops_null,
920 .parent = &sys_clkout_src, 925 .parent = &sys_clkout_src,
921 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | 926 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X,
922 PARENT_CONTROLS_CLOCK,
923 .clkdm_name = "wkup_clkdm", 927 .clkdm_name = "wkup_clkdm",
924 .clksel_reg = OMAP24XX_PRCM_CLKOUT_CTRL, 928 .clksel_reg = OMAP24XX_PRCM_CLKOUT_CTRL,
925 .clksel_mask = OMAP24XX_CLKOUT_DIV_MASK, 929 .clksel_mask = OMAP24XX_CLKOUT_DIV_MASK,
@@ -954,8 +958,9 @@ static const struct clksel sys_clkout2_clksel[] = {
954/* In 2430, new in 2420 ES2 */ 958/* In 2430, new in 2420 ES2 */
955static struct clk sys_clkout2 = { 959static struct clk sys_clkout2 = {
956 .name = "sys_clkout2", 960 .name = "sys_clkout2",
961 .ops = &clkops_null,
957 .parent = &sys_clkout2_src, 962 .parent = &sys_clkout2_src,
958 .flags = CLOCK_IN_OMAP242X | PARENT_CONTROLS_CLOCK, 963 .flags = CLOCK_IN_OMAP242X,
959 .clkdm_name = "wkup_clkdm", 964 .clkdm_name = "wkup_clkdm",
960 .clksel_reg = OMAP24XX_PRCM_CLKOUT_CTRL, 965 .clksel_reg = OMAP24XX_PRCM_CLKOUT_CTRL,
961 .clksel_mask = OMAP2420_CLKOUT2_DIV_MASK, 966 .clksel_mask = OMAP2420_CLKOUT2_DIV_MASK,
@@ -1076,9 +1081,10 @@ static const struct clksel dsp_irate_ick_clksel[] = {
1076/* This clock does not exist as such in the TRM. */ 1081/* This clock does not exist as such in the TRM. */
1077static struct clk dsp_irate_ick = { 1082static struct clk dsp_irate_ick = {
1078 .name = "dsp_irate_ick", 1083 .name = "dsp_irate_ick",
1084 .ops = &clkops_null,
1079 .parent = &dsp_fck, 1085 .parent = &dsp_fck,
1080 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | DELAYED_APP | 1086 .flags = CLOCK_IN_OMAP242X | CLOCK_IN_OMAP243X | DELAYED_APP |
1081 CONFIG_PARTICIPANT | PARENT_CONTROLS_CLOCK, 1087 CONFIG_PARTICIPANT,
1082 .clksel_reg = OMAP_CM_REGADDR(OMAP24XX_DSP_MOD, CM_CLKSEL), 1088 .clksel_reg = OMAP_CM_REGADDR(OMAP24XX_DSP_MOD, CM_CLKSEL),
1083 .clksel_mask = OMAP24XX_CLKSEL_DSP_IF_MASK, 1089 .clksel_mask = OMAP24XX_CLKSEL_DSP_IF_MASK,
1084 .clksel = dsp_irate_ick_clksel, 1090 .clksel = dsp_irate_ick_clksel,