Home
last modified time | relevance | path

Searched refs:cpu_clk (Results 1 – 9 of 9) 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.c30 struct clk *cpu_clk; member
42 ret = clk_set_rate(priv->dfll_clk, clk_get_rate(priv->cpu_clk)); in tegra124_cpu_switch_to_dfll()
46 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll()
47 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll()
53 clk_set_parent(priv->cpu_clk, priv->dfll_clk); in tegra124_cpu_switch_to_dfll()
58 clk_set_parent(priv->cpu_clk, orig_parent); in tegra124_cpu_switch_to_dfll()
65 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_pllx()
68 clk_set_parent(priv->cpu_clk, priv->pllx_clk); in tegra124_cpu_switch_to_pllx()
97 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe()
98 if (IS_ERR(priv->cpu_clk)) { in tegra124_cpufreq_probe()
[all …]
Dmt8173-cpufreq.c49 struct clk *cpu_clk; member
216 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local
217 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target()
226 old_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target()
262 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
276 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
282 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
300 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
302 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
346 struct clk *cpu_clk = ERR_PTR(-ENODEV); in mtk_cpu_dvfs_info_init() local
[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()
Dcpufreq-dt.c93 struct clk *cpu_clk; in resources_available() local
103 cpu_clk = clk_get(cpu_dev, NULL); in resources_available()
104 ret = PTR_ERR_OR_ZERO(cpu_clk); in resources_available()
118 clk_put(cpu_clk); in resources_available()
150 struct clk *cpu_clk; in cpufreq_init() local
163 cpu_clk = clk_get(cpu_dev, NULL); in cpufreq_init()
164 if (IS_ERR(cpu_clk)) { in cpufreq_init()
165 ret = PTR_ERR(cpu_clk); in cpufreq_init()
253 policy->clk = cpu_clk; in cpufreq_init()
301 clk_put(cpu_clk); in cpufreq_init()
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()
/drivers/clk/sunxi-ng/
Dccu-sun6i-a31.c176 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpux_parents,
812 &cpu_clk.common,
989 [CLK_CPU] = &cpu_clk.common.hw,
1207 .common = &cpu_clk.common,
1208 .cm = &cpu_clk.mux,