sh: add shared clock framework frequency table code
authorMagnus Damm <damm@igel.co.jp>
Mon, 25 May 2009 08:10:28 +0000 (08:10 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 26 May 2009 08:08:39 +0000 (17:08 +0900)
commitc94a85746f7bdc13035acdf88c130d7b6fa41bde
tree8aff35100dcb0a62c82452357ea267f92376dc7a
parentc9904dd15922f349b5f06839e34b1723d4a75940
sh: add shared clock framework frequency table code

Add SuperH-specific clock framework helper functions:
- clk_rate_table_build() - build cpufreq table from divisors/multipliers
- clk_rate_table_round() - use cpufreq table to find matching frequency

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.c