Lines Matching refs:cpufreq
40 static struct davinci_cpufreq cpufreq; variable
44 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_verify_speed()
46 struct clk *armclk = cpufreq.armclk; in davinci_verify_speed()
69 return clk_get_rate(cpufreq.armclk) / 1000; in davinci_getspeed()
78 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_target()
79 struct clk *armclk = cpufreq.armclk; in davinci_target()
98 dev_driver_string(cpufreq.dev), in davinci_target()
119 if (cpufreq.asyncclk) { in davinci_target()
120 ret = clk_set_rate(cpufreq.asyncclk, cpufreq.asyncrate); in davinci_target()
138 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_cpu_init()
209 cpufreq.dev = &pdev->dev; in davinci_cpufreq_probe()
211 cpufreq.armclk = clk_get(NULL, "arm"); in davinci_cpufreq_probe()
212 if (IS_ERR(cpufreq.armclk)) { in davinci_cpufreq_probe()
213 dev_err(cpufreq.dev, "Unable to get ARM clock\n"); in davinci_cpufreq_probe()
214 return PTR_ERR(cpufreq.armclk); in davinci_cpufreq_probe()
217 asyncclk = clk_get(cpufreq.dev, "async"); in davinci_cpufreq_probe()
219 cpufreq.asyncclk = asyncclk; in davinci_cpufreq_probe()
220 cpufreq.asyncrate = clk_get_rate(asyncclk); in davinci_cpufreq_probe()
228 clk_put(cpufreq.armclk); in davinci_cpufreq_remove()
230 if (cpufreq.asyncclk) in davinci_cpufreq_remove()
231 clk_put(cpufreq.asyncclk); in davinci_cpufreq_remove()