diff options
| author | Nancy Chen <Nancy.Chen@freescale.com> | 2010-04-05 10:42:41 -0500 |
|---|---|---|
| committer | Nancy Chen <Nancy.Chen@freescale.com> | 2010-04-06 08:29:35 -0500 |
| commit | 72013d7931689d4addd9500bb36651afa14c1611 (patch) | |
| tree | d5fb861ea08c473a19bbc6021f7176aef09831e7 /arch/arm/plat-mxs | |
| parent | b9cd0e9360abeb1e83df755ac24e0888277a8e48 (diff) | |
ENGR00121904 MX23: Add set_rate implementation for some clocks
Add set_rate implementation for some clocks.
Signed-off-by: Nancy Chen <Nancy.Chen@freescale.com>
Diffstat (limited to 'arch/arm/plat-mxs')
| -rw-r--r-- | arch/arm/plat-mxs/include/mach/clock.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/plat-mxs/include/mach/clock.h b/arch/arm/plat-mxs/include/mach/clock.h index 4eae0f85e3b7..19917e904e1e 100644 --- a/arch/arm/plat-mxs/include/mach/clock.h +++ b/arch/arm/plat-mxs/include/mach/clock.h @@ -82,6 +82,23 @@ static inline int clk_is_busy(struct clk *clk) return __raw_readl(clk->busy_reg) & (1 << clk->busy_bits); } +struct mxs_emi_scaling_data { + u32 emi_div; + u32 frac_div; + u32 cur_freq; + u32 new_freq; +}; + +#ifdef CONFIG_MXS_RAM_FREQ_SCALING +extern void mxs_ram_freq_scale(struct mxs_emi_scaling_data *); +extern u32 mxs_ram_funcs_sz; +#else +static inline void mxs_ram_freq_scale(struct mxs_emi_scaling_data *p) +{ +} +static u32 mxs_ram_funcs_sz; +#endif + /* Clock flags */ /* 0 ~ 16 attribute flags */ #define ALWAYS_ENABLED (1 << 0) /* Clock cannot be disabled */ |
