Lines Matching refs:clk
25 static void master_clk_init(struct clk *clk) in master_clk_init() argument
27 clk->rate *= p0fc_divisors[(__raw_readl(FRQCR) >> 4) & 0x07]; in master_clk_init()
34 static unsigned long module_clk_recalc(struct clk *clk) in module_clk_recalc() argument
37 return clk->parent->rate / p0fc_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()
71 static unsigned long shyway_clk_recalc(struct clk *clk) in shyway_clk_recalc() argument
74 return clk->parent->rate / cfc_divisors[idx]; in shyway_clk_recalc()
81 static struct clk sh7763_shyway_clk = {
90 static struct clk *sh7763_onchip_clocks[] = {
101 struct clk *clk; in arch_clk_init() local
106 clk = clk_get(NULL, "master_clk"); in arch_clk_init()
108 struct clk *clkp = sh7763_onchip_clocks[i]; in arch_clk_init()
110 clkp->parent = clk; in arch_clk_init()
114 clk_put(clk); in arch_clk_init()