aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include
diff options
context:
space:
mode:
authorMagnus Damm <damm@igel.co.jp>2009-05-28 08:52:29 -0400
committerPaul Mundt <lethal@linux-sh.org>2009-06-01 05:05:37 -0400
commit6881e8bf3d86b23dd124134fae113ebd05fae08a (patch)
tree3945557723d26014b6071ceaf5729952cec8a8e9 /arch/sh/include
parent98fbe45bea77c1804eae0e71f27673db1824a2a8 (diff)
sh: shared mstp32 clock code
Add shared 32-bit module stop bit clock support. Processor specific code can use SH_CLK_MSTP32() to initialize module stop bit clocks, and then use sh_clk_mstp32() for registration. 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.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h
index aa9480d4aa05..f43d3e72d266 100644
--- a/arch/sh/include/asm/clock.h
+++ b/arch/sh/include/asm/clock.h
@@ -117,4 +117,17 @@ long clk_rate_table_round(struct clk *clk,
117 struct cpufreq_frequency_table *freq_table, 117 struct cpufreq_frequency_table *freq_table,
118 unsigned long rate); 118 unsigned long rate);
119 119
120#define SH_CLK_MSTP32(_name, _id, _parent, _enable_reg, \
121 _enable_bit, _flags) \
122{ \
123 .name = _name, \
124 .id = _id, \
125 .parent = _parent, \
126 .enable_reg = (void __iomem *)_enable_reg, \
127 .enable_bit = _enable_bit, \
128 .flags = _flags, \
129}
130
131int sh_clk_mstp32_register(struct clk *clks, int nr);
132
120#endif /* __ASM_SH_CLOCK_H */ 133#endif /* __ASM_SH_CLOCK_H */