]> git.karo-electronics.de Git - karo-tx-linux.git/commit
sh: clkfwk: rate table construction and rounding for SH7785.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 13 May 2009 11:28:15 +0000 (20:28 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 13 May 2009 11:28:15 +0000 (20:28 +0900)
commitcc96eace48fdf0f8925a74c6c1f7ffa512e458d2
tree7a922b498e387495b3665c5428a932d7d328810e
parenta77b5ac0ea8e47c77008d3a9a9976dcfbc01c42a
sh: clkfwk: rate table construction and rounding for SH7785.

This adds support for constructing a rate table by looking at potential
divisors for a specified clock. Each FQRMR clock is given its own table.
Presently each table is rebuilt when the parent propagates down a new
rate, so some more logic needs to be added to do this more intelligently.

Additionally, a fairly generic round_rate() implementation is then
layered on top of it, which subsequently provides us with cpufreq support.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/clock.h
arch/sh/kernel/cpu/clock.c
arch/sh/kernel/cpu/sh4a/clock-sh7785.c