Home
last modified time | relevance | path

Searched refs:cpu_clk (Results 1 – 8 of 8) sorted by relevance

/drivers/cpufreq/
Dtegra20-cpufreq.c44 static struct clk *cpu_clk; variable
83 ret = clk_set_parent(cpu_clk, pll_p_clk); in tegra_target_intermediate()
114 return clk_set_parent(cpu_clk, pll_p_clk); in tegra_target()
121 ret = clk_set_parent(cpu_clk, pll_x_clk); in tegra_target()
145 clk_prepare_enable(cpu_clk); in tegra_cpu_init()
150 clk_disable_unprepare(cpu_clk); in tegra_cpu_init()
155 policy->clk = cpu_clk; in tegra_cpu_init()
162 clk_disable_unprepare(cpu_clk); in tegra_cpu_exit()
183 cpu_clk = clk_get_sys(NULL, "cclk"); in tegra_cpufreq_init()
184 if (IS_ERR(cpu_clk)) in tegra_cpufreq_init()
[all …]
Dtegra124-cpufreq.c31 struct clk *cpu_clk; member
43 ret = clk_set_rate(priv->dfll_clk, clk_get_rate(priv->cpu_clk)); in tegra124_cpu_switch_to_dfll()
47 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll()
48 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll()
54 clk_set_parent(priv->cpu_clk, priv->dfll_clk); in tegra124_cpu_switch_to_dfll()
59 clk_set_parent(priv->cpu_clk, orig_parent); in tegra124_cpu_switch_to_dfll()
66 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_pllx()
69 clk_set_parent(priv->cpu_clk, priv->pllx_clk); in tegra124_cpu_switch_to_pllx()
102 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe()
103 if (IS_ERR(priv->cpu_clk)) { in tegra124_cpufreq_probe()
[all …]
Dmt8173-cpufreq.c47 struct clk *cpu_clk; member
176 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local
177 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target()
186 old_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target()
218 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
232 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
238 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
256 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
258 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
295 struct clk *cpu_clk = ERR_PTR(-ENODEV); in mtk_cpu_dvfs_info_init() local
[all …]
Dcpufreq-dt.c49 struct clk *cpu_clk = policy->clk; in set_target() local
58 freq_Hz = clk_round_rate(cpu_clk, freq_table[index].frequency * 1000); in set_target()
64 old_freq = clk_get_rate(cpu_clk) / 1000; in set_target()
100 ret = clk_set_rate(cpu_clk, freq_exact); in set_target()
114 clk_set_rate(cpu_clk, old_freq * 1000); in set_target()
126 struct clk *cpu_clk; in allocate_resources() local
165 cpu_clk = clk_get(cpu_dev, NULL); in allocate_resources()
166 if (IS_ERR(cpu_clk)) { in allocate_resources()
171 ret = PTR_ERR(cpu_clk); in allocate_resources()
185 *cclk = cpu_clk; in allocate_resources()
[all …]
Dkirkwood-cpufreq.c25 struct clk *cpu_clk; member
69 clk_set_parent(priv.powersave_clk, priv.cpu_clk); in kirkwood_cpufreq_target()
124 priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk"); in kirkwood_cpufreq_probe()
125 if (IS_ERR(priv.cpu_clk)) { in kirkwood_cpufreq_probe()
127 return PTR_ERR(priv.cpu_clk); in kirkwood_cpufreq_probe()
130 clk_prepare_enable(priv.cpu_clk); in kirkwood_cpufreq_probe()
131 kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000; in kirkwood_cpufreq_probe()
164 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_probe()
176 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_remove()
Dhighbank-cpufreq.c65 struct clk *cpu_clk; in hb_cpufreq_driver_init() local
85 cpu_clk = clk_get(cpu_dev, NULL); in hb_cpufreq_driver_init()
86 if (IS_ERR(cpu_clk)) { in hb_cpufreq_driver_init()
87 ret = PTR_ERR(cpu_clk); in hb_cpufreq_driver_init()
92 ret = clk_notifier_register(cpu_clk, &hb_cpufreq_clk_nb); in hb_cpufreq_driver_init()
Dexynos5440-cpufreq.c102 struct clk *cpu_clk; member
303 policy->clk = dvfs_info->cpu_clk; in exynos_cpufreq_cpu_init()
382 dvfs_info->cpu_clk = devm_clk_get(dvfs_info->dev, "armclk"); in exynos_cpufreq_probe()
383 if (IS_ERR(dvfs_info->cpu_clk)) { in exynos_cpufreq_probe()
385 ret = PTR_ERR(dvfs_info->cpu_clk); in exynos_cpufreq_probe()
389 cur_frequency = clk_get_rate(dvfs_info->cpu_clk); in exynos_cpufreq_probe()
/drivers/clk/mvebu/
Dclk-cpu.c35 struct cpu_clk { struct
48 #define to_cpu_clk(p) container_of(p, struct cpu_clk, hw) argument
53 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate()
80 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate()
115 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate()
170 struct cpu_clk *cpuclk; in of_cpu_clk_setup()