aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/dpll44xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/dpll44xx.c')
-rw-r--r--arch/arm/mach-omap2/dpll44xx.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/dpll44xx.c b/arch/arm/mach-omap2/dpll44xx.c
index 52f9438b92f2..4613f1e86988 100644
--- a/arch/arm/mach-omap2/dpll44xx.c
+++ b/arch/arm/mach-omap2/dpll44xx.c
@@ -15,10 +15,7 @@
15#include <linux/io.h> 15#include <linux/io.h>
16#include <linux/bitops.h> 16#include <linux/bitops.h>
17 17
18#include "soc.h"
19#include "clock.h" 18#include "clock.h"
20#include "clock44xx.h"
21#include "cm-regbits-44xx.h"
22 19
23/* 20/*
24 * Maximum DPLL input frequency (FINT) and output frequency (FOUT) that 21 * Maximum DPLL input frequency (FINT) and output frequency (FOUT) that
@@ -29,13 +26,23 @@
29#define OMAP4_DPLL_LP_FINT_MAX 1000000 26#define OMAP4_DPLL_LP_FINT_MAX 1000000
30#define OMAP4_DPLL_LP_FOUT_MAX 100000000 27#define OMAP4_DPLL_LP_FOUT_MAX 100000000
31 28
29/*
30 * Bitfield declarations
31 */
32#define OMAP4430_DPLL_CLKOUT_GATE_CTRL_MASK (1 << 8)
33#define OMAP4430_DPLL_CLKOUTX2_GATE_CTRL_MASK (1 << 10)
34#define OMAP4430_DPLL_REGM4XEN_MASK (1 << 11)
35
36/* Static rate multiplier for OMAP4 REGM4XEN clocks */
37#define OMAP4430_REGM4XEN_MULT 4
38
32/* Supported only on OMAP4 */ 39/* Supported only on OMAP4 */
33int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk) 40int omap4_dpllmx_gatectrl_read(struct clk_hw_omap *clk)
34{ 41{
35 u32 v; 42 u32 v;
36 u32 mask; 43 u32 mask;
37 44
38 if (!clk || !clk->clksel_reg || !cpu_is_omap44xx()) 45 if (!clk || !clk->clksel_reg)
39 return -EINVAL; 46 return -EINVAL;
40 47
41 mask = clk->flags & CLOCK_CLKOUTX2 ? 48 mask = clk->flags & CLOCK_CLKOUTX2 ?
@@ -54,7 +61,7 @@ void omap4_dpllmx_allow_gatectrl(struct clk_hw_omap *clk)
54 u32 v; 61 u32 v;
55 u32 mask; 62 u32 mask;
56 63
57 if (!clk || !clk->clksel_reg || !cpu_is_omap44xx()) 64 if (!clk || !clk->clksel_reg)
58 return; 65 return;
59 66
60 mask = clk->flags & CLOCK_CLKOUTX2 ? 67 mask = clk->flags & CLOCK_CLKOUTX2 ?
@@ -72,7 +79,7 @@ void omap4_dpllmx_deny_gatectrl(struct clk_hw_omap *clk)
72 u32 v; 79 u32 v;
73 u32 mask; 80 u32 mask;
74 81
75 if (!clk || !clk->clksel_reg || !cpu_is_omap44xx()) 82 if (!clk || !clk->clksel_reg)
76 return; 83 return;
77 84
78 mask = clk->flags & CLOCK_CLKOUTX2 ? 85 mask = clk->flags & CLOCK_CLKOUTX2 ?