| /kernel/linux/linux-6.6/drivers/cpufreq/ |
| D | tegra124-cpufreq.c | 20 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() [all …]
|
| D | kirkwood-cpufreq.c | 21 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()
|
| D | mediatek-cpufreq.c | 45 struct clk *cpu_clk; member 204 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local 205 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target() 214 pre_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target() 265 ret = clk_set_parent(cpu_clk, info->inter_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() 301 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target() 303 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 409 info->cpu_clk = clk_get(cpu_dev, "cpu"); in mtk_cpu_dvfs_info_init() [all …]
|
| D | highbank-cpufreq.c | 62 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()
|
| /kernel/linux/linux-5.10/drivers/cpufreq/ |
| D | tegra124-cpufreq.c | 21 struct clk *cpu_clk; member 33 ret = clk_set_rate(priv->dfll_clk, clk_get_rate(priv->cpu_clk)); in tegra124_cpu_switch_to_dfll() 37 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll() 38 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll() 44 clk_set_parent(priv->cpu_clk, priv->dfll_clk); in tegra124_cpu_switch_to_dfll() 49 clk_set_parent(priv->cpu_clk, orig_parent); in tegra124_cpu_switch_to_dfll() 74 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe() 75 if (IS_ERR(priv->cpu_clk)) { in tegra124_cpufreq_probe() 76 ret = PTR_ERR(priv->cpu_clk); in tegra124_cpufreq_probe() 125 clk_put(priv->cpu_clk); in tegra124_cpufreq_probe() [all …]
|
| D | kirkwood-cpufreq.c | 21 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()
|
| D | mediatek-cpufreq.c | 40 struct clk *cpu_clk; member 208 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local 209 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target() 218 old_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target() 252 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target() 266 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 272 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 290 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target() 292 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target() 307 struct clk *cpu_clk = ERR_PTR(-ENODEV); in mtk_cpu_dvfs_info_init() local [all …]
|
| 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()
|
| D | highbank-cpufreq.c | 62 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()
|
| /kernel/linux/linux-5.10/arch/mips/ar7/ |
| D | time.c | 19 struct clk *cpu_clk; in plat_time_init() local 24 cpu_clk = clk_get(NULL, "cpu"); in plat_time_init() 25 if (IS_ERR(cpu_clk)) { in plat_time_init() 30 mips_hpt_frequency = clk_get_rate(cpu_clk) / 2; in plat_time_init()
|
| D | clock.c | 91 static struct clk cpu_clk = { variable 182 base_clock = cpu_clk.rate; in tnetd7300_get_clock() 222 base_clock = cpu_clk.rate; in tnetd7300_set_clock() 248 cpu_clk.rate = tnetd7300_get_clock(CPU_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks() 251 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks() 349 cpu_clk.rate = in tnetd7200_init_clocks() 353 cpu_clk.rate); in tnetd7200_init_clocks() 362 cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul) in tnetd7200_init_clocks() 366 cpu_clk.rate); in tnetd7200_init_clocks() 371 bus_clk.rate = cpu_clk.rate / 2; in tnetd7200_init_clocks() [all …]
|
| /kernel/linux/linux-6.6/arch/mips/ar7/ |
| D | time.c | 19 struct clk *cpu_clk; in plat_time_init() local 24 cpu_clk = clk_get(NULL, "cpu"); in plat_time_init() 25 if (IS_ERR(cpu_clk)) { in plat_time_init() 30 mips_hpt_frequency = clk_get_rate(cpu_clk) / 2; in plat_time_init()
|
| D | clock.c | 96 static struct clk_rate cpu_clk = { variable 184 base_clock = cpu_clk.rate; in tnetd7300_get_clock() 224 base_clock = cpu_clk.rate; in tnetd7300_set_clock() 252 cpu_clk.rate = tnetd7300_get_clock(CPU_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks() 255 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks() 265 clk = clk_register_fixed_rate(NULL, "cpu", NULL, 0, cpu_clk.rate); in tnetd7300_init_clocks() 360 cpu_clk.rate = in tnetd7200_init_clocks() 364 cpu_clk.rate); in tnetd7200_init_clocks() 373 cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul) in tnetd7200_init_clocks() 377 cpu_clk.rate); in tnetd7200_init_clocks() [all …]
|
| /kernel/linux/linux-6.6/arch/arm/mach-mvebu/ |
| D | platsmp.c | 39 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()
|
| /kernel/linux/linux-5.10/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()
|
| /kernel/linux/linux-6.6/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),
|
| /kernel/linux/linux-5.10/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),
|
| /kernel/linux/linux-6.6/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";
|
| /kernel/linux/linux-5.10/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";
|
| /kernel/linux/linux-6.6/drivers/clk/mvebu/ |
| D | clk-cpu.c | 33 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()
|
| /kernel/linux/linux-5.10/arch/mips/lantiq/xway/ |
| D | clk.c | 144 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()
|
| /kernel/linux/linux-6.6/arch/mips/lantiq/xway/ |
| D | clk.c | 144 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()
|
| /kernel/linux/linux-5.10/drivers/clk/mvebu/ |
| D | clk-cpu.c | 33 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()
|
| /kernel/linux/linux-5.10/arch/arm64/boot/dts/marvell/ |
| D | armada-ap806-quad.dtsi | 24 clocks = <&cpu_clk 0>; 39 clocks = <&cpu_clk 0>; 54 clocks = <&cpu_clk 1>; 69 clocks = <&cpu_clk 1>;
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/marvell/ |
| D | armada-ap806-quad.dtsi | 24 clocks = <&cpu_clk 0>; 39 clocks = <&cpu_clk 0>; 54 clocks = <&cpu_clk 1>; 69 clocks = <&cpu_clk 1>;
|