16 #include <linux/kernel.h>
18 #include <asm/clock.h>
20 #include <asm/processor.h>
22 static const int pll1rate[] = {1,2};
23 static const int pfc_divisors[] = {1,2,0,4};
24 static unsigned int pll2_mult;
26 static void master_clk_init(
struct clk *
clk)
31 static struct sh_clk_ops sh7619_master_clk_ops = {
32 .init = master_clk_init,
35 static unsigned long module_clk_recalc(
struct clk *
clk)
38 return clk->
parent->rate / pfc_divisors[
idx];
41 static struct sh_clk_ops sh7619_module_clk_ops = {
42 .recalc = module_clk_recalc,
45 static unsigned long bus_clk_recalc(
struct clk *
clk)
50 static struct sh_clk_ops sh7619_bus_clk_ops = {
51 .recalc = bus_clk_recalc,
54 static struct sh_clk_ops sh7619_cpu_clk_ops = {
59 &sh7619_master_clk_ops,
60 &sh7619_module_clk_ops,
76 *ops = sh7619_clk_ops[
idx];