Lines Matching refs:clk
25 static void master_clk_init(struct clk *clk) in master_clk_init() argument
27 clk->rate *= pfc_divisors[__raw_readl(FRQCR) & 0x0003]; in master_clk_init()
34 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc() argument
37 return clk->parent->rate / pfc_divisors[idx]; in module_clk_recalc()
44 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc() argument
47 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc()
54 static unsigned long cpu_clk_recalc(struct clk *clk) in cpu_clk_recalc() argument
57 return clk->parent->rate / ifc_divisors[idx]; in cpu_clk_recalc()
77 static unsigned long shyway_clk_recalc(struct clk *clk) in shyway_clk_recalc() argument
80 return clk->parent->rate / cfc_divisors[idx]; in shyway_clk_recalc()
87 static struct clk sh7780_shyway_clk = {
96 static struct clk *sh7780_onchip_clocks[] = {
107 struct clk *clk; in arch_clk_init() local
112 clk = clk_get(NULL, "master_clk"); in arch_clk_init()
114 struct clk *clkp = sh7780_onchip_clocks[i]; in arch_clk_init()
116 clkp->parent = clk; in arch_clk_init()
120 clk_put(clk); in arch_clk_init()