Home
last modified time | relevance | path

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

/drivers/cpufreq/
Dtegra20-cpufreq.c33 struct clk *cpu_clk; member
74 ret = clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); in tegra_target_intermediate()
95 return clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); in tegra_target()
102 ret = clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_x_clk); in tegra_target()
122 clk_prepare_enable(cpufreq->cpu_clk); in tegra_cpu_init()
126 policy->clk = cpufreq->cpu_clk; in tegra_cpu_init()
135 clk_disable_unprepare(cpufreq->cpu_clk); in tegra_cpu_exit()
148 cpufreq->cpu_clk = clk_get_sys(NULL, "cclk"); in tegra20_cpufreq_probe()
149 if (IS_ERR(cpufreq->cpu_clk)) in tegra20_cpufreq_probe()
150 return PTR_ERR(cpufreq->cpu_clk); in tegra20_cpufreq_probe()
[all …]
Dmediatek-cpufreq.c40 struct clk *cpu_clk; member
206 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local
207 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target()
216 old_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target()
250 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
264 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
270 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
288 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
290 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
305 struct clk *cpu_clk = ERR_PTR(-ENODEV); in mtk_cpu_dvfs_info_init() local
[all …]
Dtegra124-cpufreq.c20 struct clk *cpu_clk; member
32 ret = clk_set_rate(priv->dfll_clk, clk_get_rate(priv->cpu_clk)); in tegra124_cpu_switch_to_dfll()
36 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll()
37 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll()
43 clk_set_parent(priv->cpu_clk, priv->dfll_clk); in tegra124_cpu_switch_to_dfll()
48 clk_set_parent(priv->cpu_clk, orig_parent); in tegra124_cpu_switch_to_dfll()
73 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe()
74 if (IS_ERR(priv->cpu_clk)) { in tegra124_cpufreq_probe()
75 ret = PTR_ERR(priv->cpu_clk); in tegra124_cpufreq_probe()
124 clk_put(priv->cpu_clk); in tegra124_cpufreq_probe()
Dkirkwood-cpufreq.c21 struct clk *cpu_clk; member
65 clk_set_parent(priv.powersave_clk, priv.cpu_clk); in kirkwood_cpufreq_target()
121 priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk"); in kirkwood_cpufreq_probe()
122 if (IS_ERR(priv.cpu_clk)) { in kirkwood_cpufreq_probe()
124 err = PTR_ERR(priv.cpu_clk); in kirkwood_cpufreq_probe()
128 err = clk_prepare_enable(priv.cpu_clk); in kirkwood_cpufreq_probe()
134 kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000; in kirkwood_cpufreq_probe()
176 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_probe()
189 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_remove()
Dcpufreq-dt.c97 struct clk *cpu_clk; in resources_available() local
107 cpu_clk = clk_get(cpu_dev, NULL); in resources_available()
108 ret = PTR_ERR_OR_ZERO(cpu_clk); in resources_available()
122 clk_put(cpu_clk); in resources_available()
154 struct clk *cpu_clk; in cpufreq_init() local
166 cpu_clk = clk_get(cpu_dev, NULL); in cpufreq_init()
167 if (IS_ERR(cpu_clk)) { in cpufreq_init()
168 ret = PTR_ERR(cpu_clk); in cpufreq_init()
257 policy->clk = cpu_clk; in cpufreq_init()
292 clk_put(cpu_clk); in cpufreq_init()
Dhighbank-cpufreq.c62 struct clk *cpu_clk; in hb_cpufreq_driver_init() local
82 cpu_clk = clk_get(cpu_dev, NULL); in hb_cpufreq_driver_init()
83 if (IS_ERR(cpu_clk)) { in hb_cpufreq_driver_init()
84 ret = PTR_ERR(cpu_clk); in hb_cpufreq_driver_init()
89 ret = clk_notifier_register(cpu_clk, &hb_cpufreq_clk_nb); in hb_cpufreq_driver_init()
Dtango-cpufreq.c16 struct clk *cpu_clk; in tango_cpufreq_init() local
22 cpu_clk = clk_get(cpu_dev, NULL); in tango_cpufreq_init()
23 if (IS_ERR(cpu_clk)) in tango_cpufreq_init()
26 max_freq = clk_get_rate(cpu_clk); in tango_cpufreq_init()
/drivers/clk/mvebu/
Dclk-cpu.c33 struct cpu_clk { struct
46 #define to_cpu_clk(p) container_of(p, struct cpu_clk, hw) argument
51 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate()
78 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate()
113 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate()
168 struct cpu_clk *cpuclk; in of_cpu_clk_setup()
/drivers/clk/sunxi-ng/
Dccu-suniv-f1c100s.c109 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents,
319 &cpu_clk.common,
410 [CLK_CPU] = &cpu_clk.common.hw,
519 .common = &cpu_clk.common,
520 .cm = &cpu_clk.mux,
Dccu-sun8i-v3s.c129 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents,
387 &cpu_clk.common,
463 &cpu_clk.common,
560 [CLK_CPU] = &cpu_clk.common.hw,
640 [CLK_CPU] = &cpu_clk.common.hw,
Dccu-sun5i.c180 static struct ccu_mux cpu_clk = { variable
520 &cpu_clk.common,
648 [CLK_CPU] = &cpu_clk.common.hw,
787 [CLK_CPU] = &cpu_clk.common.hw,
893 [CLK_CPU] = &cpu_clk.common.hw,
Dccu-sun6i-a31.c181 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpux_parents,
817 &cpu_clk.common,
1005 [CLK_CPU] = &cpu_clk.common.hw,
1223 .common = &cpu_clk.common,
1224 .cm = &cpu_clk.mux,
Dccu-sun8i-r40.c252 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents,
804 &cpu_clk.common,
1007 [CLK_CPU] = &cpu_clk.common.hw,
1261 .common = &cpu_clk.common,
1262 .cm = &cpu_clk.mux,
Dccu-sun4i-a10.c221 static struct ccu_mux cpu_clk = { variable
874 &cpu_clk.common,
1077 [CLK_CPU] = &cpu_clk.common.hw,
1230 [CLK_CPU] = &cpu_clk.common.hw,
/drivers/clk/actions/
Dowl-s900.c114 static OWL_MUX(cpu_clk, "cpu_clk", cpu_clk_mux_p, CMU_BUSCLK, 0, 2, CLK_SET_RATE_PARENT);
511 &cpu_clk.common,
604 [CLK_CPU] = &cpu_clk.common.hw,
/drivers/clk/meson/
Dg12a.c1032 struct clk_hw *cpu_clk; member
1053 clk_hw_set_parent(nb_data->cpu_clk, in g12a_sys_pll_notifier_cb()
1078 clk_hw_set_parent(nb_data->cpu_clk, in g12a_sys_pll_notifier_cb()
1098 .cpu_clk = &g12a_cpu_clk.hw,
1106 .cpu_clk = &g12b_cpu_clk.hw,
1114 .cpu_clk = &g12b_cpub_clk.hw,
Dmeson8b.c3598 struct clk *cpu_clk, *parent_clk; in meson8b_cpu_clk_notifier_cb() local
3615 cpu_clk = __clk_lookup(clk_hw_get_name(cpu_clk_hw)); in meson8b_cpu_clk_notifier_cb()
3619 ret = clk_set_parent(cpu_clk, parent_clk); in meson8b_cpu_clk_notifier_cb()