diff options
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/clock.c | 11 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock.h | 1 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock2xxx_data.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-omap2/clock34xx_data.c | 6 |
4 files changed, 5 insertions, 17 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index 759c72a48f7f..7565f8e40a0e 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c | |||
@@ -300,17 +300,6 @@ u32 omap2_get_dpll_rate(struct clk *clk) | |||
300 | return dpll_clk; | 300 | return dpll_clk; |
301 | } | 301 | } |
302 | 302 | ||
303 | /* | ||
304 | * Used for clocks that have the same value as the parent clock, | ||
305 | * divided by some factor | ||
306 | */ | ||
307 | unsigned long omap2_fixed_divisor_recalc(struct clk *clk) | ||
308 | { | ||
309 | WARN_ON(!clk->fixed_div); | ||
310 | |||
311 | return clk->parent->rate / clk->fixed_div; | ||
312 | } | ||
313 | |||
314 | /** | 303 | /** |
315 | * omap2_clk_dflt_find_companion - find companion clock to @clk | 304 | * omap2_clk_dflt_find_companion - find companion clock to @clk |
316 | * @clk: struct clk * to find the companion clock of | 305 | * @clk: struct clk * to find the companion clock of |
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index 93c48df3b5b1..0d70dc09370b 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
@@ -78,7 +78,6 @@ u32 omap2_clksel_round_rate_div(struct clk *clk, unsigned long target_rate, | |||
78 | u32 *new_div); | 78 | u32 *new_div); |
79 | u32 omap2_clksel_to_divisor(struct clk *clk, u32 field_val); | 79 | u32 omap2_clksel_to_divisor(struct clk *clk, u32 field_val); |
80 | u32 omap2_divisor_to_clksel(struct clk *clk, u32 div); | 80 | u32 omap2_divisor_to_clksel(struct clk *clk, u32 div); |
81 | unsigned long omap2_fixed_divisor_recalc(struct clk *clk); | ||
82 | long omap2_clksel_round_rate(struct clk *clk, unsigned long target_rate); | 81 | long omap2_clksel_round_rate(struct clk *clk, unsigned long target_rate); |
83 | int omap2_clksel_set_rate(struct clk *clk, unsigned long rate); | 82 | int omap2_clksel_set_rate(struct clk *clk, unsigned long rate); |
84 | u32 omap2_get_dpll_rate(struct clk *clk); | 83 | u32 omap2_get_dpll_rate(struct clk *clk); |
diff --git a/arch/arm/mach-omap2/clock2xxx_data.c b/arch/arm/mach-omap2/clock2xxx_data.c index 97dc7cf7751d..402115fa9c12 100644 --- a/arch/arm/mach-omap2/clock2xxx_data.c +++ b/arch/arm/mach-omap2/clock2xxx_data.c | |||
@@ -261,7 +261,7 @@ static struct clk func_12m_ck = { | |||
261 | .parent = &func_48m_ck, | 261 | .parent = &func_48m_ck, |
262 | .fixed_div = 4, | 262 | .fixed_div = 4, |
263 | .clkdm_name = "wkup_clkdm", | 263 | .clkdm_name = "wkup_clkdm", |
264 | .recalc = &omap2_fixed_divisor_recalc, | 264 | .recalc = &omap_fixed_divisor_recalc, |
265 | }; | 265 | }; |
266 | 266 | ||
267 | /* Secure timer, only available in secure mode */ | 267 | /* Secure timer, only available in secure mode */ |
@@ -557,7 +557,7 @@ static struct clk iva1_mpu_int_ifck = { | |||
557 | .enable_reg = OMAP_CM_REGADDR(OMAP24XX_DSP_MOD, CM_FCLKEN), | 557 | .enable_reg = OMAP_CM_REGADDR(OMAP24XX_DSP_MOD, CM_FCLKEN), |
558 | .enable_bit = OMAP2420_EN_IVA_MPU_SHIFT, | 558 | .enable_bit = OMAP2420_EN_IVA_MPU_SHIFT, |
559 | .fixed_div = 2, | 559 | .fixed_div = 2, |
560 | .recalc = &omap2_fixed_divisor_recalc, | 560 | .recalc = &omap_fixed_divisor_recalc, |
561 | }; | 561 | }; |
562 | 562 | ||
563 | /* | 563 | /* |
diff --git a/arch/arm/mach-omap2/clock34xx_data.c b/arch/arm/mach-omap2/clock34xx_data.c index cbb421a45763..9e7f68a8fca2 100644 --- a/arch/arm/mach-omap2/clock34xx_data.c +++ b/arch/arm/mach-omap2/clock34xx_data.c | |||
@@ -735,7 +735,7 @@ static struct clk omap_12m_fck = { | |||
735 | .ops = &clkops_null, | 735 | .ops = &clkops_null, |
736 | .parent = &omap_48m_fck, | 736 | .parent = &omap_48m_fck, |
737 | .fixed_div = 4, | 737 | .fixed_div = 4, |
738 | .recalc = &omap2_fixed_divisor_recalc, | 738 | .recalc = &omap_fixed_divisor_recalc, |
739 | }; | 739 | }; |
740 | 740 | ||
741 | /* This virstual clock is the source for dpll4_m4x2_ck */ | 741 | /* This virstual clock is the source for dpll4_m4x2_ck */ |
@@ -1588,7 +1588,7 @@ static struct clk ssi_sst_fck_3430es1 = { | |||
1588 | .ops = &clkops_null, | 1588 | .ops = &clkops_null, |
1589 | .parent = &ssi_ssr_fck_3430es1, | 1589 | .parent = &ssi_ssr_fck_3430es1, |
1590 | .fixed_div = 2, | 1590 | .fixed_div = 2, |
1591 | .recalc = &omap2_fixed_divisor_recalc, | 1591 | .recalc = &omap_fixed_divisor_recalc, |
1592 | }; | 1592 | }; |
1593 | 1593 | ||
1594 | static struct clk ssi_sst_fck_3430es2 = { | 1594 | static struct clk ssi_sst_fck_3430es2 = { |
@@ -1596,7 +1596,7 @@ static struct clk ssi_sst_fck_3430es2 = { | |||
1596 | .ops = &clkops_null, | 1596 | .ops = &clkops_null, |
1597 | .parent = &ssi_ssr_fck_3430es2, | 1597 | .parent = &ssi_ssr_fck_3430es2, |
1598 | .fixed_div = 2, | 1598 | .fixed_div = 2, |
1599 | .recalc = &omap2_fixed_divisor_recalc, | 1599 | .recalc = &omap_fixed_divisor_recalc, |
1600 | }; | 1600 | }; |
1601 | 1601 | ||
1602 | 1602 | ||