diff options
Diffstat (limited to 'arch/arm/mach-omap2/dpll44xx.c')
-rw-r--r-- | arch/arm/mach-omap2/dpll44xx.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/arm/mach-omap2/dpll44xx.c b/arch/arm/mach-omap2/dpll44xx.c index 0e58e5a85d53..fc712240e5fd 100644 --- a/arch/arm/mach-omap2/dpll44xx.c +++ b/arch/arm/mach-omap2/dpll44xx.c | |||
@@ -36,26 +36,6 @@ | |||
36 | /* Static rate multiplier for OMAP4 REGM4XEN clocks */ | 36 | /* Static rate multiplier for OMAP4 REGM4XEN clocks */ |
37 | #define OMAP4430_REGM4XEN_MULT 4 | 37 | #define OMAP4430_REGM4XEN_MULT 4 |
38 | 38 | ||
39 | /* Supported only on OMAP4 */ | ||
40 | int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk) | ||
41 | { | ||
42 | u32 v; | ||
43 | u32 mask; | ||
44 | |||
45 | if (!clk || !clk->clksel_reg) | ||
46 | return -EINVAL; | ||
47 | |||
48 | mask = clk->flags & CLOCK_CLKOUTX2 ? | ||
49 | OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK : | ||
50 | OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK; | ||
51 | |||
52 | v = omap2_clk_readl(clk, clk->clksel_reg); | ||
53 | v &= mask; | ||
54 | v >>= __ffs(mask); | ||
55 | |||
56 | return v; | ||
57 | } | ||
58 | |||
59 | void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) | 39 | void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk) |
60 | { | 40 | { |
61 | u32 v; | 41 | u32 v; |