Searched refs:cpu_clk (Results 1 – 11 of 11) sorted by relevance
/drivers/cpufreq/ |
D | tegra-cpufreq.c | 44 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() 185 cpu_clk = clk_get_sys(NULL, "cclk"); in tegra_cpufreq_init() 186 if (IS_ERR(cpu_clk)) in tegra_cpufreq_init() [all …]
|
D | cpufreq-dt.c | 43 struct clk *cpu_clk = policy->clk; in set_target() local 52 freq_Hz = clk_round_rate(cpu_clk, freq_table[index].frequency * 1000); in set_target() 58 old_freq = clk_get_rate(cpu_clk) / 1000; in set_target() 89 ret = clk_set_rate(cpu_clk, freq_exact); in set_target() 103 clk_set_rate(cpu_clk, old_freq * 1000); in set_target() 115 struct clk *cpu_clk; in allocate_resources() local 154 cpu_clk = clk_get(cpu_dev, NULL); in allocate_resources() 155 if (IS_ERR(cpu_clk)) { in allocate_resources() 160 ret = PTR_ERR(cpu_clk); in allocate_resources() 174 *cclk = cpu_clk; in allocate_resources() [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 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()
|
D | exynos4210-cpufreq.c | 24 static struct clk *cpu_clk; variable 145 cpu_clk = clk_get(NULL, "armclk"); in exynos4210_cpufreq_init() 146 if (IS_ERR(cpu_clk)) in exynos4210_cpufreq_init() 147 return PTR_ERR(cpu_clk); in exynos4210_cpufreq_init() 166 info->cpu_clk = cpu_clk; in exynos4210_cpufreq_init() 180 clk_put(cpu_clk); in exynos4210_cpufreq_init()
|
D | exynos5250-cpufreq.c | 24 static struct clk *cpu_clk; variable 171 cpu_clk = clk_get(NULL, "armclk"); in exynos5250_cpufreq_init() 172 if (IS_ERR(cpu_clk)) in exynos5250_cpufreq_init() 173 return PTR_ERR(cpu_clk); in exynos5250_cpufreq_init() 192 info->cpu_clk = cpu_clk; in exynos5250_cpufreq_init() 206 clk_put(cpu_clk); in exynos5250_cpufreq_init()
|
D | exynos4x12-cpufreq.c | 24 static struct clk *cpu_clk; variable 192 cpu_clk = clk_get(NULL, "armclk"); in exynos4x12_cpufreq_init() 193 if (IS_ERR(cpu_clk)) in exynos4x12_cpufreq_init() 194 return PTR_ERR(cpu_clk); in exynos4x12_cpufreq_init() 218 info->cpu_clk = cpu_clk; in exynos4x12_cpufreq_init() 232 clk_put(cpu_clk); in exynos4x12_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 | exynos5440-cpufreq.c | 102 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()
|
D | exynos-cpufreq.c | 136 policy->clk = exynos_info->cpu_clk; in exynos_cpufreq_cpu_init() 199 locking_frequency = clk_get_rate(exynos_info->cpu_clk) / 1000; in exynos_cpufreq_probe()
|
D | exynos-cpufreq.h | 48 struct clk *cpu_clk; member
|
/drivers/clk/mvebu/ |
D | clk-cpu.c | 34 struct cpu_clk { struct 47 #define to_cpu_clk(p) container_of(p, struct cpu_clk, hw) argument 52 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate() 79 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate() 114 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate() 169 struct cpu_clk *cpuclk; in of_cpu_clk_setup()
|