13 #include <linux/kernel.h>
14 #include <asm/clock.h>
20 static int pfc_divisors[] = { 1, 8, 1,10,12,16, 1, 1 };
22 static void master_clk_init(
struct clk *
clk)
27 static struct sh_clk_ops sh7770_master_clk_ops = {
28 .init = master_clk_init,
31 static unsigned long module_clk_recalc(
struct clk *
clk)
34 return clk->
parent->rate / pfc_divisors[
idx];
37 static struct sh_clk_ops sh7770_module_clk_ops = {
38 .recalc = module_clk_recalc,
41 static unsigned long bus_clk_recalc(
struct clk *
clk)
47 static struct sh_clk_ops sh7770_bus_clk_ops = {
48 .recalc = bus_clk_recalc,
51 static unsigned long cpu_clk_recalc(
struct clk *
clk)
57 static struct sh_clk_ops sh7770_cpu_clk_ops = {
58 .recalc = cpu_clk_recalc,
62 &sh7770_master_clk_ops,
63 &sh7770_module_clk_ops,
71 *ops = sh7770_clk_ops[
idx];