sh: clock div6 helper code
authorMagnus Damm <damm@igel.co.jp>
Tue, 2 Jun 2009 08:53:54 +0000 (08:53 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 11 Jun 2009 06:07:13 +0000 (09:07 +0300)
commit2693e2740ddae364a80e6083043ba760b6366b69
treeb2c34eb52ec8d5f6914cb0114abf071556b532c1
parenta50de78dc6d21ee074e9561c800d194bec12128b
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>
arch/sh/include/asm/clock.h
arch/sh/kernel/cpu/clock-cpg.c