Lines Matching refs:clk
22 static void master_clk_init(struct clk *clk) in master_clk_init() argument
24 clk->rate *= p0fc_divisors[(__raw_readl(FRQCR) >> 4) & 0x07]; in master_clk_init()
31 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc() argument
34 return clk->parent->rate / p0fc_divisors[idx]; in module_clk_recalc()
41 static unsigned long bus_clk_recalc(struct clk *clk) in bus_clk_recalc() argument
44 return clk->parent->rate / bfc_divisors[idx]; in bus_clk_recalc()
68 static unsigned long shyway_clk_recalc(struct clk *clk) in shyway_clk_recalc() argument
71 return clk->parent->rate / cfc_divisors[idx]; in shyway_clk_recalc()
78 static struct clk sh7763_shyway_clk = {
87 static struct clk *sh7763_onchip_clocks[] = {
98 struct clk *clk; in arch_clk_init() local
103 clk = clk_get(NULL, "master_clk"); in arch_clk_init()
105 struct clk *clkp = sh7763_onchip_clocks[i]; in arch_clk_init()
107 clkp->parent = clk; in arch_clk_init()
111 clk_put(clk); in arch_clk_init()