aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm
diff options
context:
space:
mode:
authorMagnus Damm <damm@opensource.se>2010-02-19 04:22:25 -0500
committerPaul Mundt <lethal@linux-sh.org>2010-02-22 05:11:20 -0500
commit0a5f337ecd20e70e84a5cfc0f2c24d0366087026 (patch)
tree947f3063cb56ca8e7b168b46432b1bd35475e075 /arch/sh/include/asm
parentde7ca2144c36291a491bd39afad172f56432a4bb (diff)
sh: introduce struct clk_div4_table
This patch introduces struct clk_div4_table. The structure will be used to keep div4 specific data, and is with this patch replacing the struct clk_div_mult_table pointer arg used by the sh_clk_div4_register() functions. Signed-off-by: Magnus Damm <damm@opensource.se> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r--arch/sh/include/asm/clock.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h
index 501d0b07628..dbb5746e88f 100644
--- a/arch/sh/include/asm/clock.h
+++ b/arch/sh/include/asm/clock.h
@@ -146,12 +146,16 @@ int sh_clk_mstp32_register(struct clk *clks, int nr);
146 .flags = _flags, \ 146 .flags = _flags, \
147} 147}
148 148
149struct clk_div4_table {
150 struct clk_div_mult_table *div_mult_table;
151};
152
149int sh_clk_div4_register(struct clk *clks, int nr, 153int sh_clk_div4_register(struct clk *clks, int nr,
150 struct clk_div_mult_table *table); 154 struct clk_div4_table *table);
151int sh_clk_div4_enable_register(struct clk *clks, int nr, 155int sh_clk_div4_enable_register(struct clk *clks, int nr,
152 struct clk_div_mult_table *table); 156 struct clk_div4_table *table);
153int sh_clk_div4_reparent_register(struct clk *clks, int nr, 157int sh_clk_div4_reparent_register(struct clk *clks, int nr,
154 struct clk_div_mult_table *table); 158 struct clk_div4_table *table);
155 159
156#define SH_CLK_DIV6(_name, _parent, _reg, _flags) \ 160#define SH_CLK_DIV6(_name, _parent, _reg, _flags) \
157{ \ 161{ \