Lines Matching refs:clk
28 struct clk *clk; member
34 static struct clk *spear1340_cpu_get_possible_parent(unsigned long newfreq) in spear1340_cpu_get_possible_parent()
36 struct clk *sys_pclk; in spear1340_cpu_get_possible_parent()
76 static int spear1340_set_cpu_rate(struct clk *sys_pclk, unsigned long newfreq) in spear1340_set_cpu_rate()
78 struct clk *sys_clk; in spear1340_set_cpu_rate()
81 sys_clk = clk_get_parent(spear_cpufreq.clk); in spear1340_set_cpu_rate()
107 struct clk *srcclk; in spear_cpufreq_target()
133 srcclk = spear_cpufreq.clk; in spear_cpufreq_target()
145 ret = clk_set_rate(spear_cpufreq.clk, newfreq); in spear_cpufreq_target()
155 policy->clk = spear_cpufreq.clk; in spear_cpufreq_init()
213 spear_cpufreq.clk = clk_get(NULL, "cpu_clk"); in spear_cpufreq_probe()
214 if (IS_ERR(spear_cpufreq.clk)) { in spear_cpufreq_probe()
216 ret = PTR_ERR(spear_cpufreq.clk); in spear_cpufreq_probe()
225 clk_put(spear_cpufreq.clk); in spear_cpufreq_probe()