diff options
Diffstat (limited to 'arch/arm/mach-omap2/clock.h')
-rw-r--r-- | arch/arm/mach-omap2/clock.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.h b/arch/arm/mach-omap2/clock.h index d5980a9e09a4..3cd37cb57c5a 100644 --- a/arch/arm/mach-omap2/clock.h +++ b/arch/arm/mach-omap2/clock.h | |||
@@ -18,11 +18,16 @@ | |||
18 | 18 | ||
19 | #include <asm/arch/clock.h> | 19 | #include <asm/arch/clock.h> |
20 | 20 | ||
21 | /* The maximum error between a target DPLL rate and the rounded rate in Hz */ | ||
22 | #define DEFAULT_DPLL_RATE_TOLERANCE 50000 | ||
23 | |||
21 | int omap2_clk_enable(struct clk *clk); | 24 | int omap2_clk_enable(struct clk *clk); |
22 | void omap2_clk_disable(struct clk *clk); | 25 | void omap2_clk_disable(struct clk *clk); |
23 | long omap2_clk_round_rate(struct clk *clk, unsigned long rate); | 26 | long omap2_clk_round_rate(struct clk *clk, unsigned long rate); |
24 | int omap2_clk_set_rate(struct clk *clk, unsigned long rate); | 27 | int omap2_clk_set_rate(struct clk *clk, unsigned long rate); |
25 | int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent); | 28 | int omap2_clk_set_parent(struct clk *clk, struct clk *new_parent); |
29 | int omap2_dpll_rate_tolerance_set(struct clk *clk, unsigned int tolerance); | ||
30 | long omap2_dpll_round_rate(struct clk *clk, unsigned long target_rate); | ||
26 | 31 | ||
27 | #ifdef CONFIG_OMAP_RESET_CLOCKS | 32 | #ifdef CONFIG_OMAP_RESET_CLOCKS |
28 | void omap2_clk_disable_unused(struct clk *clk); | 33 | void omap2_clk_disable_unused(struct clk *clk); |
@@ -42,6 +47,7 @@ long omap2_clksel_round_rate(struct clk *clk, unsigned long target_rate); | |||
42 | int omap2_clksel_set_rate(struct clk *clk, unsigned long rate); | 47 | int omap2_clksel_set_rate(struct clk *clk, unsigned long rate); |
43 | u32 omap2_get_dpll_rate(struct clk *clk); | 48 | u32 omap2_get_dpll_rate(struct clk *clk); |
44 | int omap2_wait_clock_ready(void __iomem *reg, u32 cval, const char *name); | 49 | int omap2_wait_clock_ready(void __iomem *reg, u32 cval, const char *name); |
50 | void omap2_clk_prepare_for_reboot(void); | ||
45 | 51 | ||
46 | extern u8 cpu_mask; | 52 | extern u8 cpu_mask; |
47 | 53 | ||