From: Paul Walmsley Date: Wed, 10 Sep 2008 16:47:58 +0000 (-0600) Subject: OMAP3 clock: mark DPLL clocks with their DPLLx clockdomains X-Git-Tag: v2.6.27-omap1~189 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a8798a48f33e9268dcc7f30a4b4a3ce4220fe0c9;p=linux-2.6-omap-h63xx.git OMAP3 clock: mark DPLL clocks with their DPLLx clockdomains Mark each DPLL clock as belonging to their respective DPLL clockdomain. cf. 34xx TRM Table 4-27 (among other references). Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/clock34xx.h b/arch/arm/mach-omap2/clock34xx.h index 093fac079d4..e52c85f558c 100644 --- a/arch/arm/mach-omap2/clock34xx.h +++ b/arch/arm/mach-omap2/clock34xx.h @@ -323,6 +323,7 @@ static struct clk dpll1_ck = { .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, .round_rate = &omap2_dpll_round_rate, .set_rate = &omap3_noncore_dpll_set_rate, + .clkdm = { .name = "dpll1_clkdm" }, .recalc = &omap3_dpll_recalc, }; @@ -335,6 +336,7 @@ static struct clk dpll1_x2_ck = { .parent = &dpll1_ck, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll1_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -357,6 +359,7 @@ static struct clk dpll1_x2m2_ck = { .clksel = div16_dpll1_x2m2_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll1_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -394,6 +397,7 @@ static struct clk dpll2_ck = { .disable = &omap3_noncore_dpll_disable, .round_rate = &omap2_dpll_round_rate, .set_rate = &omap3_noncore_dpll_set_rate, + .clkdm = { .name = "dpll2_clkdm" }, .recalc = &omap3_dpll_recalc, }; @@ -416,6 +420,7 @@ static struct clk dpll2_m2_ck = { .clksel = div16_dpll2_m2x2_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll2_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -447,6 +452,7 @@ static struct clk dpll3_ck = { .dpll_data = &dpll3_dd, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | ALWAYS_ENABLED, .round_rate = &omap2_dpll_round_rate, + .clkdm = { .name = "dpll3_clkdm" }, .recalc = &omap3_dpll_recalc, }; @@ -459,6 +465,7 @@ static struct clk dpll3_x2_ck = { .parent = &dpll3_ck, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll3_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -512,6 +519,7 @@ static struct clk dpll3_m2_ck = { .clksel = div31_dpll3m2_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll3_clkdm" }, .round_rate = &omap2_clksel_round_rate, .set_rate = &omap3_core_dpll_m2_set_rate, .recalc = &omap2_clksel_recalc, @@ -549,6 +557,7 @@ static struct clk dpll3_m2x2_ck = { .clksel = dpll3_m2x2_ck_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll3_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -568,6 +577,7 @@ static struct clk dpll3_m3_ck = { .clksel = div16_dpll3_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll3_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -578,6 +588,7 @@ static struct clk dpll3_m3x2_ck = { .enable_reg = _OMAP34XX_CM_REGADDR(PLL_MOD, CM_CLKEN), .enable_bit = OMAP3430_PWRDN_EMU_CORE_SHIFT, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | INVERT_ENABLE, + .clkdm = { .name = "dpll3_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -596,6 +607,7 @@ static struct clk emu_core_alwon_ck = { .clksel = emu_core_alwon_ck_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll3_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -631,6 +643,7 @@ static struct clk dpll4_ck = { .disable = &omap3_noncore_dpll_disable, .round_rate = &omap2_dpll_round_rate, .set_rate = &omap3_noncore_dpll_set_rate, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap3_dpll_recalc, }; @@ -644,6 +657,7 @@ static struct clk dpll4_x2_ck = { .parent = &dpll4_ck, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -662,6 +676,7 @@ static struct clk dpll4_m2_ck = { .clksel = div16_dpll4_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -672,6 +687,7 @@ static struct clk dpll4_m2x2_ck = { .enable_reg = _OMAP34XX_CM_REGADDR(PLL_MOD, CM_CLKEN), .enable_bit = OMAP3430_PWRDN_96M_SHIFT, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | INVERT_ENABLE, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -748,6 +764,7 @@ static struct clk dpll4_m3_ck = { .clksel = div16_dpll4_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -759,6 +776,7 @@ static struct clk dpll4_m3x2_ck = { .enable_reg = _OMAP34XX_CM_REGADDR(PLL_MOD, CM_CLKEN), .enable_bit = OMAP3430_PWRDN_TV_SHIFT, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | INVERT_ENABLE, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -857,6 +875,7 @@ static struct clk dpll4_m4_ck = { .clksel = div16_dpll4_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -867,6 +886,7 @@ static struct clk dpll4_m4x2_ck = { .enable_reg = _OMAP34XX_CM_REGADDR(PLL_MOD, CM_CLKEN), .enable_bit = OMAP3430_PWRDN_DSS1_SHIFT, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | INVERT_ENABLE, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -880,6 +900,7 @@ static struct clk dpll4_m5_ck = { .clksel = div16_dpll4_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -890,6 +911,7 @@ static struct clk dpll4_m5x2_ck = { .enable_reg = _OMAP34XX_CM_REGADDR(PLL_MOD, CM_CLKEN), .enable_bit = OMAP3430_PWRDN_CAM_SHIFT, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | INVERT_ENABLE, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -903,6 +925,7 @@ static struct clk dpll4_m6_ck = { .clksel = div16_dpll4_clksel, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap2_clksel_recalc, }; @@ -914,6 +937,7 @@ static struct clk dpll4_m6x2_ck = { .enable_reg = _OMAP34XX_CM_REGADDR(PLL_MOD, CM_CLKEN), .enable_bit = OMAP3430_PWRDN_EMU_PERIPH_SHIFT, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | INVERT_ENABLE, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &omap3_clkoutx2_recalc, }; @@ -922,6 +946,7 @@ static struct clk emu_per_alwon_ck = { .parent = &dpll4_m6x2_ck, .flags = CLOCK_IN_OMAP343X | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll4_clkdm" }, .recalc = &followparent_recalc, }; @@ -958,6 +983,7 @@ static struct clk dpll5_ck = { .disable = &omap3_noncore_dpll_disable, .round_rate = &omap2_dpll_round_rate, .set_rate = &omap3_noncore_dpll_set_rate, + .clkdm = { .name = "dpll5_clkdm" }, .recalc = &omap3_dpll_recalc, }; @@ -975,6 +1001,7 @@ static struct clk dpll5_m2_ck = { .clksel = div16_dpll5_clksel, .flags = CLOCK_IN_OMAP3430ES2 | RATE_PROPAGATES | PARENT_CONTROLS_CLOCK, + .clkdm = { .name = "dpll5_clkdm" }, .recalc = &omap2_clksel_recalc, };