aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-06-04 01:31:41 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-06-11 02:12:58 -0400
commit098dee99d14e8324d3793df442d6078d0c134140 (patch)
treed2fedbcb58a917bc70a0244bc1da63ec8be97b23 /arch/sh/include
parentc01641b42a88c475fd4b72cff2b10e42262a80fe (diff)
sh: add enable()/disable()/set_rate() to div6 code
This patch updates the div6 clock helper code to add support for enable(), disable() and set_rate() callbacks. Needed by the camera clock enabling board code on Migo-R. Signed-off-by: Magnus Damm <damm@igel.co.jp> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include')
-rw-r--r--arch/sh/include/asm/clock.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h
index 026b9daa5584..9fe7d7f8af40 100644
--- a/arch/sh/include/asm/clock.h
+++ b/arch/sh/include/asm/clock.h
@@ -119,6 +119,10 @@ long clk_rate_table_round(struct clk *clk,
119 struct cpufreq_frequency_table *freq_table, 119 struct cpufreq_frequency_table *freq_table,
120 unsigned long rate); 120 unsigned long rate);
121 121
122int clk_rate_table_find(struct clk *clk,
123 struct cpufreq_frequency_table *freq_table,
124 unsigned long rate);
125
122#define SH_CLK_MSTP32(_name, _id, _parent, _enable_reg, \ 126#define SH_CLK_MSTP32(_name, _id, _parent, _enable_reg, \
123 _enable_bit, _flags) \ 127 _enable_bit, _flags) \
124{ \ 128{ \