19 #include <linux/kernel.h>
20 #include <asm/clock.h>
24 static const int pll1rate[]={8,12,16,0};
25 static const int pfc_divisors[]={1,2,3,4,6,8,12};
26 #define ifc_divisors pfc_divisors
28 static unsigned int pll2_mult;
30 static void master_clk_init(
struct clk *
clk)
35 static struct sh_clk_ops sh7203_master_clk_ops = {
36 .init = master_clk_init,
39 static unsigned long module_clk_recalc(
struct clk *
clk)
42 return clk->
parent->rate / pfc_divisors[
idx];
45 static struct sh_clk_ops sh7203_module_clk_ops = {
46 .recalc = module_clk_recalc,
49 static unsigned long bus_clk_recalc(
struct clk *
clk)
52 return clk->
parent->rate / pfc_divisors[idx-2];
55 static struct sh_clk_ops sh7203_bus_clk_ops = {
56 .recalc = bus_clk_recalc,
59 static struct sh_clk_ops sh7203_cpu_clk_ops = {
64 &sh7203_master_clk_ops,
65 &sh7203_module_clk_ops,
80 *ops = sh7203_clk_ops[
idx];