diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-06-02 04:53:54 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-06-11 02:07:13 -0400 |
commit | 2693e2740ddae364a80e6083043ba760b6366b69 (patch) | |
tree | b2c34eb52ec8d5f6914cb0114abf071556b532c1 /arch/sh/include | |
parent | a50de78dc6d21ee074e9561c800d194bec12128b (diff) |
sh: clock div6 helper code
This patch adds div6 clock helper code. The div6 clocks
are simply 6-bit divide-by-n modules where n is 1 to 64.
Needed for vclk on sh7722, sh7723, sh7343 and sh7366.
sh7724 needs this even more for vclk, fclka, fclkb,
irdaclk and spuclk.
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.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/sh/include/asm/clock.h b/arch/sh/include/asm/clock.h index 7435e40022e6..026b9daa5584 100644 --- a/arch/sh/include/asm/clock.h +++ b/arch/sh/include/asm/clock.h | |||
@@ -145,4 +145,14 @@ int sh_clk_mstp32_register(struct clk *clks, int nr); | |||
145 | int sh_clk_div4_register(struct clk *clks, int nr, | 145 | int sh_clk_div4_register(struct clk *clks, int nr, |
146 | struct clk_div_mult_table *table); | 146 | struct clk_div_mult_table *table); |
147 | 147 | ||
148 | #define SH_CLK_DIV6(_name, _parent, _reg, _flags) \ | ||
149 | { \ | ||
150 | .name = _name, \ | ||
151 | .parent = _parent, \ | ||
152 | .enable_reg = (void __iomem *)_reg, \ | ||
153 | .flags = _flags, \ | ||
154 | } | ||
155 | |||
156 | int sh_clk_div6_register(struct clk *clks, int nr); | ||
157 | |||
148 | #endif /* __ASM_SH_CLOCK_H */ | 158 | #endif /* __ASM_SH_CLOCK_H */ |