aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/clock.c
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2010-01-26 22:13:04 -0500
committerPaul Walmsley <paul@pwsan.com>2010-01-26 22:13:04 -0500
commit69ecefca514c318d0ce993c48ffa3bad009c7b9b (patch)
treeb23bcdbf2eda2fc212a5fd081abda89cbe13927f /arch/arm/mach-omap2/clock.c
parent4b1f76ed4f8012929494261eb6923b3c98554a9a (diff)
OMAP2/3/4 clock: combine all omap2_clk_functions
The struct clk_functions for OMAP2, 3, and 4 are all essentially the same, so combine them. This removes one multi-OMAP kernel impediment and saves memory on multi-OMAP builds. The stubs for omap2_clk_{init,exit}_cpufreq() code will removed once the OPP layer code that's currently in Kevin's PM branch is merged. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/clock.c')
-rw-r--r--arch/arm/mach-omap2/clock.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c
index 0d54fde5b455..999b91e023b1 100644
--- a/arch/arm/mach-omap2/clock.c
+++ b/arch/arm/mach-omap2/clock.c
@@ -351,3 +351,20 @@ void omap2_clk_disable_unused(struct clk *clk)
351 pwrdm_clkdm_state_switch(clk->clkdm); 351 pwrdm_clkdm_state_switch(clk->clkdm);
352} 352}
353#endif 353#endif
354
355/* Common data */
356
357struct clk_functions omap2_clk_functions = {
358 .clk_enable = omap2_clk_enable,
359 .clk_disable = omap2_clk_disable,
360 .clk_round_rate = omap2_clk_round_rate,
361 .clk_set_rate = omap2_clk_set_rate,
362 .clk_set_parent = omap2_clk_set_parent,
363 .clk_disable_unused = omap2_clk_disable_unused,
364#ifdef CONFIG_CPU_FREQ
365 /* These will be removed when the OPP code is integrated */
366 .clk_init_cpufreq_table = omap2_clk_init_cpufreq_table,
367 .clk_exit_cpufreq_table = omap2_clk_exit_cpufreq_table,
368#endif
369};
370