diff options
Diffstat (limited to 'arch/arm/mach-omap2/clkt2xxx_osc.c')
-rw-r--r-- | arch/arm/mach-omap2/clkt2xxx_osc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clkt2xxx_osc.c b/arch/arm/mach-omap2/clkt2xxx_osc.c index df7b80506483..c3460928b5e0 100644 --- a/arch/arm/mach-omap2/clkt2xxx_osc.c +++ b/arch/arm/mach-omap2/clkt2xxx_osc.c | |||
@@ -30,6 +30,13 @@ | |||
30 | #include "prm2xxx_3xxx.h" | 30 | #include "prm2xxx_3xxx.h" |
31 | #include "prm-regbits-24xx.h" | 31 | #include "prm-regbits-24xx.h" |
32 | 32 | ||
33 | /* | ||
34 | * XXX This does not actually enable the osc_ck, since the osc_ck must | ||
35 | * be running for this function to be called. Instead, this function | ||
36 | * is used to disable an autoidle mode on the osc_ck. The existing | ||
37 | * clk_enable/clk_disable()-based usecounting for osc_ck should be | ||
38 | * replaced with autoidle-based usecounting. | ||
39 | */ | ||
33 | static int omap2_enable_osc_ck(struct clk *clk) | 40 | static int omap2_enable_osc_ck(struct clk *clk) |
34 | { | 41 | { |
35 | u32 pcc; | 42 | u32 pcc; |
@@ -41,6 +48,13 @@ static int omap2_enable_osc_ck(struct clk *clk) | |||
41 | return 0; | 48 | return 0; |
42 | } | 49 | } |
43 | 50 | ||
51 | /* | ||
52 | * XXX This does not actually disable the osc_ck, since doing so would | ||
53 | * immediately halt the system. Instead, this function is used to | ||
54 | * enable an autoidle mode on the osc_ck. The existing | ||
55 | * clk_enable/clk_disable()-based usecounting for osc_ck should be | ||
56 | * replaced with autoidle-based usecounting. | ||
57 | */ | ||
44 | static void omap2_disable_osc_ck(struct clk *clk) | 58 | static void omap2_disable_osc_ck(struct clk *clk) |
45 | { | 59 | { |
46 | u32 pcc; | 60 | u32 pcc; |