/Linux-v4.19/drivers/cpufreq/ |
D | tegra124-cpufreq.c | 30 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 …]
|
D | tegra20-cpufreq.c | 42 struct clk *cpu_clk; member 83 ret = clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); in tegra_target_intermediate() 104 return clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_p_clk); in tegra_target() 111 ret = clk_set_parent(cpufreq->cpu_clk, cpufreq->pll_x_clk); in tegra_target() 132 clk_prepare_enable(cpufreq->cpu_clk); in tegra_cpu_init() 137 clk_disable_unprepare(cpufreq->cpu_clk); in tegra_cpu_init() 141 policy->clk = cpufreq->cpu_clk; in tegra_cpu_init() 150 clk_disable_unprepare(cpufreq->cpu_clk); in tegra_cpu_exit() 163 cpufreq->cpu_clk = clk_get_sys(NULL, "cclk"); in tegra20_cpufreq_probe() 164 if (IS_ERR(cpufreq->cpu_clk)) in tegra20_cpufreq_probe() [all …]
|
D | mediatek-cpufreq.c | 49 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() 260 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target() 274 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 280 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 298 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target() 300 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 322 struct clk *cpu_clk = ERR_PTR(-ENODEV); in mtk_cpu_dvfs_info_init() local [all …]
|
D | kirkwood-cpufreq.c | 25 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 err = clk_prepare_enable(priv.cpu_clk); in kirkwood_cpufreq_probe() 136 kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000; in kirkwood_cpufreq_probe() 177 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_probe() 189 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_remove()
|
D | cpufreq-dt.c | 101 struct clk *cpu_clk; in resources_available() local 111 cpu_clk = clk_get(cpu_dev, NULL); in resources_available() 112 ret = PTR_ERR_OR_ZERO(cpu_clk); in resources_available() 126 clk_put(cpu_clk); in resources_available() 158 struct clk *cpu_clk; in cpufreq_init() local 170 cpu_clk = clk_get(cpu_dev, NULL); in cpufreq_init() 171 if (IS_ERR(cpu_clk)) { in cpufreq_init() 172 ret = PTR_ERR(cpu_clk); in cpufreq_init() 260 policy->clk = cpu_clk; in cpufreq_init() 292 clk_put(cpu_clk); in cpufreq_init()
|
D | highbank-cpufreq.c | 65 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()
|
D | tango-cpufreq.c | 16 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()
|
/Linux-v4.19/arch/arm/mach-mvebu/ |
D | platsmp.c | 42 struct clk *cpu_clk; in get_cpu_clk() local 47 cpu_clk = of_clk_get(np, 0); in get_cpu_clk() 48 if (WARN_ON(IS_ERR(cpu_clk))) in get_cpu_clk() 50 return cpu_clk; in get_cpu_clk() 104 struct clk *cpu_clk = get_cpu_clk(cpu); in armada_xp_sync_secondary_clk() local 106 if (!cpu_clk || !boot_cpu_clk) in armada_xp_sync_secondary_clk() 109 clk_prepare_enable(cpu_clk); in armada_xp_sync_secondary_clk() 110 clk_set_rate(cpu_clk, clk_get_rate(boot_cpu_clk)); in armada_xp_sync_secondary_clk()
|
/Linux-v4.19/arch/mips/ar7/ |
D | time.c | 31 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()
|
D | clock.c | 104 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-v4.19/arch/mips/lantiq/xway/ |
D | clk.c | 146 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-v4.19/arch/mips/ralink/ |
D | mt7621.c | 125 u32 cpu_clk; in ralink_clk_init() local 135 cpu_clk = (500 * cpu_ffrac / cpu_fdiv) * 1000 * 1000; in ralink_clk_init() 144 cpu_clk = 25 * fbdiv * 1000 * 1000; in ralink_clk_init() 147 cpu_clk = 40 * fbdiv * 1000 * 1000; in ralink_clk_init() 150 cpu_clk = 20 * fbdiv * 1000 * 1000; in ralink_clk_init()
|
/Linux-v4.19/drivers/clk/mvebu/ |
D | clk-cpu.c | 35 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-v4.19/arch/sh/kernel/cpu/ |
D | clock-cpg.c | 24 static struct clk cpu_clk = { variable 36 &cpu_clk, 44 CLKDEV_CON_ID("cpu_clk", &cpu_clk),
|
/Linux-v4.19/Documentation/devicetree/bindings/arm/marvell/ |
D | kirkwood.txt | 12 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-v4.19/arch/mips/boot/dts/mscc/ |
D | ocelot.dtsi | 16 clocks = <&cpu_clk>; 32 cpu_clk: cpu-clock { label 41 clocks = <&cpu_clk>;
|
/Linux-v4.19/arch/mips/loongson64/lemote-2f/ |
D | clock.c | 44 static struct clk cpu_clk = { variable 52 return &cpu_clk; in clk_get()
|
/Linux-v4.19/arch/arc/boot/dts/ |
D | abilis_tb10x.dtsi | 43 clocks = <&cpu_clk>; 49 clocks = <&cpu_clk>; 65 cpu_clk: clkdiv_cpu { label 69 clock-output-names = "cpu_clk";
|
/Linux-v4.19/Documentation/devicetree/bindings/timer/ |
D | cadence,ttc-timer.txt | 19 clocks = <&cpu_clk 3>;
|
/Linux-v4.19/Documentation/devicetree/bindings/clock/ |
D | snps,hsdk-pll-clock.txt | 23 cpu_clk: cpu-clk@0 {
|
D | tango4-clock.txt | 3 The Tango4 clock generator outputs cpu_clk and sys_clk (the latter is used
|
/Linux-v4.19/arch/arc/kernel/ |
D | setup.c | 558 struct clk *cpu_clk; in show_cpuinfo() local 572 cpu_clk = clk_get(cpu_dev, NULL); in show_cpuinfo() 573 if (IS_ERR(cpu_clk)) { in show_cpuinfo() 577 freq = clk_get_rate(cpu_clk); in show_cpuinfo()
|
/Linux-v4.19/drivers/clk/sunxi-ng/ |
D | ccu-sun8i-v3s.c | 128 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpu_parents, 376 &cpu_clk.common, 465 [CLK_CPU] = &cpu_clk.common.hw,
|
D | ccu-sun6i-a31.c | 188 static SUNXI_CCU_MUX(cpu_clk, "cpu", cpux_parents, 824 &cpu_clk.common, 1001 [CLK_CPU] = &cpu_clk.common.hw, 1219 .common = &cpu_clk.common, 1220 .cm = &cpu_clk.mux,
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | vexpress-v2p-ca5s.dts | 98 clocks = <&cpu_clk>; 133 cpu_clk: oscclk0 { label
|