20 #include <linux/kernel.h>
24 #include <plat/clock.h>
33 #define EN_APLL_STOPPED 0
34 #define EN_APLL_LOCKED 3
37 #define APLLS_CLKIN_19_2MHZ 0
38 #define APLLS_CLKIN_13MHZ 2
39 #define APLLS_CLKIN_12MHZ 3
46 static int omap2_clk_apll_enable(
struct clk *
clk,
u32 status_mask)
54 if ((cval & apll_mask) == apll_mask)
71 static int omap2_clk_apll96_enable(
struct clk *
clk)
76 static int omap2_clk_apll54_enable(
struct clk *
clk)
81 static void _apll96_allow_idle(
struct clk *
clk)
86 static void _apll96_deny_idle(
struct clk *
clk)
91 static void _apll54_allow_idle(
struct clk *
clk)
96 static void _apll54_deny_idle(
struct clk *
clk)
102 static void omap2_clk_apll_disable(
struct clk *
clk)
114 .enable = omap2_clk_apll96_enable,
115 .disable = omap2_clk_apll_disable,
116 .allow_idle = _apll96_allow_idle,
117 .deny_idle = _apll96_deny_idle,
121 .enable = omap2_clk_apll54_enable,
122 .disable = omap2_clk_apll_disable,
123 .allow_idle = _apll54_allow_idle,
124 .deny_idle = _apll54_deny_idle,
131 u32 aplls, srate = 0;