sh: clkfwk: Use shared sh_clk_div_enable/disable().
authorPaul Mundt <lethal@linux-sh.org>
Fri, 25 May 2012 07:34:48 +0000 (16:34 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 25 May 2012 07:34:48 +0000 (16:34 +0900)
commit764f4e4e33d18cde4dcaf8a0d860b749c6d6d08b
tree1e498ea454a2392b557a0f562170946838dece39
parent0fa22168e00106797f28b2655aaefd0d16a6e67b
sh: clkfwk: Use shared sh_clk_div_enable/disable().

This introduces a new flag for clocks that need to have their divisor
ratio set back to their initial mask at disable time to prevent
interactivity problems with the clock stop bit (presently div6 only).
With this in place it's possible to handle the corner case on top of the
div4 op without any particular need for leaving things split out.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/clk/cpg.c
include/linux/sh_clk.h