Lines Matching full:cpu_clk
45 struct clk *cpu_clk; member
204 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local
205 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target()
214 pre_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target()
265 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
278 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
284 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
301 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
303 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
406 info->cpu_clk = clk_get(cpu_dev, "cpu"); in mtk_cpu_dvfs_info_init()
407 if (IS_ERR(info->cpu_clk)) in mtk_cpu_dvfs_info_init()
408 return dev_err_probe(cpu_dev, PTR_ERR(info->cpu_clk), in mtk_cpu_dvfs_info_init()
466 ret = clk_prepare_enable(info->cpu_clk); in mtk_cpu_dvfs_info_init()
499 info->current_freq = clk_get_rate(info->cpu_clk); in mtk_cpu_dvfs_info_init()
530 clk_disable_unprepare(info->cpu_clk); in mtk_cpu_dvfs_info_init()
553 clk_put(info->cpu_clk); in mtk_cpu_dvfs_info_init()
566 clk_disable_unprepare(info->cpu_clk); in mtk_cpu_dvfs_info_release()
567 clk_put(info->cpu_clk); in mtk_cpu_dvfs_info_release()
598 policy->clk = info->cpu_clk; in mtk_cpufreq_init()