Lines Matching full:cpufreq
19 #include <linux/cpufreq.h>
23 #include <linux/platform_data/davinci-cpufreq.h>
33 static struct davinci_cpufreq cpufreq; variable
37 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_target()
38 struct clk *armclk = cpufreq.armclk; in davinci_target()
56 if (cpufreq.asyncclk) { in davinci_target()
57 ret = clk_set_rate(cpufreq.asyncclk, cpufreq.asyncrate); in davinci_target()
72 struct davinci_cpufreq_config *pdata = cpufreq.dev->platform_data; in davinci_cpu_init()
85 policy->clk = cpufreq.armclk; in davinci_cpu_init()
117 cpufreq.dev = &pdev->dev; in davinci_cpufreq_probe()
119 cpufreq.armclk = clk_get(NULL, "arm"); in davinci_cpufreq_probe()
120 if (IS_ERR(cpufreq.armclk)) { in davinci_cpufreq_probe()
121 dev_err(cpufreq.dev, "Unable to get ARM clock\n"); in davinci_cpufreq_probe()
122 return PTR_ERR(cpufreq.armclk); in davinci_cpufreq_probe()
125 asyncclk = clk_get(cpufreq.dev, "async"); in davinci_cpufreq_probe()
127 cpufreq.asyncclk = asyncclk; in davinci_cpufreq_probe()
128 cpufreq.asyncrate = clk_get_rate(asyncclk); in davinci_cpufreq_probe()
138 clk_put(cpufreq.armclk); in davinci_cpufreq_remove()
140 if (cpufreq.asyncclk) in davinci_cpufreq_remove()
141 clk_put(cpufreq.asyncclk); in davinci_cpufreq_remove()
146 .name = "cpufreq-davinci",