Home
last modified time | relevance | path

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

/linux-4.4.14/arch/arm/mach-mvebu/
Dplatsmp.c40 struct clk *cpu_clk; in get_cpu_clk() local
45 cpu_clk = of_clk_get(np, 0); in get_cpu_clk()
46 if (WARN_ON(IS_ERR(cpu_clk))) in get_cpu_clk()
48 return cpu_clk; in get_cpu_clk()
55 struct clk *cpu_clk; in set_secondary_cpu_clock() local
59 cpu_clk = get_cpu_clk(thiscpu); in set_secondary_cpu_clock()
60 if (!cpu_clk) in set_secondary_cpu_clock()
62 clk_prepare_enable(cpu_clk); in set_secondary_cpu_clock()
63 rate = clk_get_rate(cpu_clk); in set_secondary_cpu_clock()
65 cpu_clk = get_cpu_clk(cpu); in set_secondary_cpu_clock()
[all …]
/linux-4.4.14/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()
/linux-4.4.14/arch/mips/ar7/
Dtime.c31 struct clk *cpu_clk; in plat_time_init() local
36 cpu_clk = clk_get(NULL, "cpu"); in plat_time_init()
37 if (IS_ERR(cpu_clk)) { in plat_time_init()
42 mips_hpt_frequency = clk_get_rate(cpu_clk) / 2; in plat_time_init()
Dclock.c104 static struct clk cpu_clk = { variable
195 base_clock = cpu_clk.rate; in tnetd7300_get_clock()
235 base_clock = cpu_clk.rate; in tnetd7300_set_clock()
261 cpu_clk.rate = tnetd7300_get_clock(CPU_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks()
264 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks()
362 cpu_clk.rate = in tnetd7200_init_clocks()
366 cpu_clk.rate); in tnetd7200_init_clocks()
375 cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul) in tnetd7200_init_clocks()
379 cpu_clk.rate); in tnetd7200_init_clocks()
384 bus_clk.rate = cpu_clk.rate / 2; in tnetd7200_init_clocks()
[all …]
/linux-4.4.14/arch/mips/lantiq/xway/
Dclk.c146 unsigned int ocp_sel, cpu_clk; in ltq_vr9_fpi_hz() local
149 cpu_clk = ltq_vr9_cpu_hz(); in ltq_vr9_fpi_hz()
155 clk = cpu_clk; in ltq_vr9_fpi_hz()
159 clk = cpu_clk / 2; in ltq_vr9_fpi_hz()
163 clk = (cpu_clk * 2) / 5; in ltq_vr9_fpi_hz()
167 clk = cpu_clk / 3; in ltq_vr9_fpi_hz()
/linux-4.4.14/Documentation/devicetree/bindings/arm/
Dkirkwood.txt12 cpus/cpu@0 with three clocks, "cpu_clk", "ddrclk" and "powersave",
14 between the "cpu_clk" and the "ddrclk".
26 clock-names = "cpu_clk", "ddrclk", "powersave";
/linux-4.4.14/arch/sh/kernel/cpu/
Dclock-cpg.c23 static struct clk cpu_clk = { variable
35 &cpu_clk,
43 CLKDEV_CON_ID("cpu_clk", &cpu_clk),
/linux-4.4.14/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()
/linux-4.4.14/arch/avr32/kernel/
Dsetup.c556 struct clk *cpu_clk; in setup_arch() local
578 cpu_clk = clk_get(NULL, "cpu"); in setup_arch()
579 if (IS_ERR(cpu_clk)) { in setup_arch()
582 unsigned long cpu_hz = clk_get_rate(cpu_clk); in setup_arch()
588 clk_enable(cpu_clk); in setup_arch()
590 boot_cpu_data.clk = cpu_clk; in setup_arch()
/linux-4.4.14/arch/mips/loongson64/lemote-2f/
Dclock.c44 static struct clk cpu_clk = { variable
52 return &cpu_clk; in clk_get()
/linux-4.4.14/Documentation/devicetree/bindings/timer/
Dcadence,ttc-timer.txt19 clocks = <&cpu_clk 3>;
/linux-4.4.14/arch/arc/boot/dts/
Dabilis_tb10x.dtsi51 cpu_clk: clkdiv_cpu { label
55 clock-output-names = "cpu_clk";
Dabilis_tb101.dtsi34 cpu_clk: clkdiv_cpu { label
Dabilis_tb100.dtsi34 cpu_clk: clkdiv_cpu { label
/linux-4.4.14/kernel/sched/
Ddebug.c349 u64 ktime, sched_clk, cpu_clk; in sched_debug_header() local
355 cpu_clk = local_clock(); in sched_debug_header()
369 PN(cpu_clk); in sched_debug_header()
/linux-4.4.14/arch/avr32/mach-at32ap/
Dat32ap700x.c482 static struct clk cpu_clk = { variable
490 .parent = &cpu_clk,
721 .parent = &cpu_clk,
2202 &cpu_clk,
2268 cpu_clk.parent = &pll0; in setup_platform()
2271 cpu_clk.parent = &osc0; in setup_platform()
/linux-4.4.14/arch/arm/boot/dts/
Dkirkwood.dtsi20 clock-names = "cpu_clk", "ddrclk", "powersave";
Dste-u300.dts101 cpu_clk@208M {
Dsun8i-a23-a33.dtsi139 cpu: cpu_clk@01c20050 {