Home
last modified time | relevance | path

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

12

/linux/drivers/cpufreq/
H A Dtegra124-cpufreq.c20 struct clk *cpu_clk; member
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()
72 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe()
73 if (IS_ERR(priv->cpu_clk)) in tegra124_cpufreq_probe()
74 return PTR_ERR(priv->cpu_clk); in tegra124_cpufreq_probe()
119 clk_put(priv->cpu_clk); in tegra124_cpufreq_probe()
134 err = clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpufreq_suspend()
[all …]
H A Dkirkwood-cpufreq.c21 struct clk *cpu_clk; member
65 clk_set_parent(priv.powersave_clk, priv.cpu_clk); in kirkwood_cpufreq_target()
119 priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk"); in kirkwood_cpufreq_probe()
120 if (IS_ERR(priv.cpu_clk)) { in kirkwood_cpufreq_probe()
122 err = PTR_ERR(priv.cpu_clk); in kirkwood_cpufreq_probe()
126 err = clk_prepare_enable(priv.cpu_clk); in kirkwood_cpufreq_probe()
132 kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000; in kirkwood_cpufreq_probe()
174 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_probe()
187 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_remove()
H A 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()
H A Dmediatek-cpufreq.c45 struct clk *cpu_clk; member
204 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local
214 pre_freq_hz = clk_get_rate(cpu_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()
303 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
407 if (IS_ERR(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()
567 clk_put(info->cpu_clk); in mtk_cpu_dvfs_info_release()
[all …]
H A Dcpufreq-dt.c93 struct clk *cpu_clk; in cpufreq_init() local
104 cpu_clk = clk_get(cpu_dev, NULL); in cpufreq_init()
105 if (IS_ERR(cpu_clk)) { in cpufreq_init()
106 ret = PTR_ERR(cpu_clk); in cpufreq_init()
117 policy->clk = cpu_clk; in cpufreq_init()
135 clk_put(cpu_clk); in cpufreq_init()
H A Dqcom-cpufreq-hw.c59 struct clk_hw cpu_clk; member
623 struct qcom_cpufreq_data *data = container_of(hw, struct qcom_cpufreq_data, cpu_clk); in qcom_cpufreq_hw_recalc_rate()
704 data->cpu_clk.init = &clk_init; in qcom_cpufreq_hw_driver_probe()
706 ret = devm_clk_hw_register(dev, &data->cpu_clk); in qcom_cpufreq_hw_driver_probe()
713 clk_data->hws[i] = &data->cpu_clk; in qcom_cpufreq_hw_driver_probe()
/linux/arch/arm/mach-mvebu/
H A Dplatsmp.c39 struct clk *cpu_clk; in get_cpu_clk() local
44 cpu_clk = of_clk_get(np, 0); in get_cpu_clk()
45 if (WARN_ON(IS_ERR(cpu_clk))) in get_cpu_clk()
47 return cpu_clk; in get_cpu_clk()
101 struct clk *cpu_clk = get_cpu_clk(cpu); in armada_xp_sync_secondary_clk() local
103 if (!cpu_clk || !boot_cpu_clk) in armada_xp_sync_secondary_clk()
106 clk_prepare_enable(cpu_clk); in armada_xp_sync_secondary_clk()
107 clk_set_rate(cpu_clk, clk_get_rate(boot_cpu_clk)); in armada_xp_sync_secondary_clk()
/linux/arch/mips/lantiq/xway/
H A Dclk.c144 unsigned int ocp_sel, cpu_clk; in ltq_vr9_fpi_hz() local
147 cpu_clk = ltq_vr9_cpu_hz(); in ltq_vr9_fpi_hz()
153 clk = cpu_clk; in ltq_vr9_fpi_hz()
157 clk = cpu_clk / 2; in ltq_vr9_fpi_hz()
161 clk = (cpu_clk * 2) / 5; in ltq_vr9_fpi_hz()
165 clk = cpu_clk / 3; in ltq_vr9_fpi_hz()
/linux/drivers/clk/mvebu/
H A 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()
/linux/arch/sh/kernel/cpu/
H A Dclock-cpg.c24 static struct clk cpu_clk = { variable
36 &cpu_clk,
44 CLKDEV_CON_ID("cpu_clk", &cpu_clk),
/linux/Documentation/devicetree/bindings/arm/marvell/
H A 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/arch/arm64/boot/dts/marvell/
H A Darmada-ap806-quad.dtsi24 clocks = <&cpu_clk 0>;
39 clocks = <&cpu_clk 0>;
54 clocks = <&cpu_clk 1>;
69 clocks = <&cpu_clk 1>;
H A Darmada-ap807-quad.dtsi24 clocks = <&cpu_clk 0>;
39 clocks = <&cpu_clk 0>;
54 clocks = <&cpu_clk 1>;
69 clocks = <&cpu_clk 1>;
H A Darmada-ap806-dual.dtsi24 clocks = <&cpu_clk 0>;
39 clocks = <&cpu_clk 0>;
/linux/arch/mips/boot/dts/mscc/
H A Dluton.dtsi16 clocks = <&cpu_clk>;
32 cpu_clk: cpu-clock { label
41 clocks = <&cpu_clk>;
H A Dserval.dtsi18 clocks = <&cpu_clk>;
35 cpu_clk: cpu-clock { label
44 clocks = <&cpu_clk>;
H A Djaguar2.dtsi24 clocks = <&cpu_clk>;
36 cpu_clk: cpu-clock { label
45 clocks = <&cpu_clk>;
H A Docelot.dtsi16 clocks = <&cpu_clk>;
32 cpu_clk: cpu-clock { label
41 clocks = <&cpu_clk>;
/linux/Documentation/devicetree/bindings/timer/
H A Dcdns,ttc.yaml61 clocks = <&cpu_clk 3>;
69 clocks = <&cpu_clk 3>;
/linux/Documentation/devicetree/bindings/clock/
H A Dmicrochip,lan966x-gck.yaml13 The LAN966X Generic clock controller contains 3 PLLs - cpu_clk,
56 clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>;
/linux/arch/arc/boot/dts/
H A Dabilis_tb10x.dtsi31 clocks = <&cpu_clk>;
37 clocks = <&cpu_clk>;
53 cpu_clk: clkdiv_cpu { label
57 clock-output-names = "cpu_clk";
/linux/drivers/clk/sunxi-ng/
H A Dccu-suniv-f1c100s.c110 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents,
327 &cpu_clk.common,
419 [CLK_CPU] = &cpu_clk.common.hw,
529 .common = &cpu_clk.common,
530 .cm = &cpu_clk.mux,
/linux/drivers/clk/ralink/
H A Dclk-mt7621.c263 unsigned long cpu_clk; in mt7621_cpu_recalc_rate() local
274 cpu_clk = 500000000; in mt7621_cpu_recalc_rate()
280 cpu_clk = ((fbdiv + 1) * xtal_clk) >> prediv_tbl[prediv]; in mt7621_cpu_recalc_rate()
283 cpu_clk = xtal_clk; in mt7621_cpu_recalc_rate()
286 return cpu_clk / ffiv * ffrac; in mt7621_cpu_recalc_rate()
/linux/drivers/base/
H A Darch_topology.c313 struct clk *cpu_clk; in topology_parse_cpu_capacity() local
343 cpu_clk = of_clk_get(cpu_node, 0); in topology_parse_cpu_capacity()
344 if (!PTR_ERR_OR_ZERO(cpu_clk)) { in topology_parse_cpu_capacity()
346 clk_get_rate(cpu_clk) / HZ_PER_KHZ; in topology_parse_cpu_capacity()
347 clk_put(cpu_clk); in topology_parse_cpu_capacity()
/linux/arch/mips/boot/dts/loongson/
H A Dloongson64-2k1000.dtsi22 clocks = <&cpu_clk>;
26 cpu_clk: cpu_clk { label

12