Home
last modified time | relevance | path

Searched refs:cpuclk (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/clk/rockchip/
A Dclk-cpu.c71 cpuclk->rate_table; in rockchip_get_cpuclk_settings()
263 cpuclk = kzalloc(sizeof(*cpuclk), GFP_KERNEL); in rockchip_clk_register_cpuclk()
264 if (!cpuclk) in rockchip_clk_register_cpuclk()
280 cpuclk->reg_base = reg_base; in rockchip_clk_register_cpuclk()
281 cpuclk->lock = lock; in rockchip_clk_register_cpuclk()
282 cpuclk->reg_data = reg_data; in rockchip_clk_register_cpuclk()
284 cpuclk->hw.init = &init; in rockchip_clk_register_cpuclk()
287 if (!cpuclk->alt_parent) { in rockchip_clk_register_cpuclk()
322 if (!cpuclk->rate_table) { in rockchip_clk_register_cpuclk()
338 kfree(cpuclk->rate_table); in rockchip_clk_register_cpuclk()
[all …]
/linux/drivers/clk/mvebu/
A Dclk-cpu.c85 | (div << (cpuclk->cpu * 8)); in clk_cpu_off_set_rate()
119 if (!cpuclk->pmu_dfs) in clk_cpu_on_set_rate()
138 reg = readl(cpuclk->pmu_dfs); in clk_cpu_on_set_rate()
141 writel(reg, cpuclk->pmu_dfs); in clk_cpu_on_set_rate()
168 struct cpu_clk *cpuclk; in of_cpu_clk_setup() local
187 cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL); in of_cpu_clk_setup()
188 if (WARN_ON(!cpuclk)) in of_cpu_clk_setup()
212 cpuclk[cpu].cpu = cpu; in of_cpu_clk_setup()
216 cpuclk[cpu].hw.init = &init; in of_cpu_clk_setup()
237 kfree(cpuclk[ncpus].clk_name); in of_cpu_clk_setup()
[all …]
/linux/drivers/clk/samsung/
A Dclk-cpu.c364 struct exynos_cpuclk *cpuclk; in exynos_cpuclk_notifier_cb() local
369 base = cpuclk->ctrl_base; in exynos_cpuclk_notifier_cb()
392 base = cpuclk->ctrl_base; in exynos5433_cpuclk_notifier_cb()
419 cpuclk = kzalloc(sizeof(*cpuclk), GFP_KERNEL); in exynos_register_cpu_clock()
420 if (!cpuclk) in exynos_register_cpu_clock()
432 cpuclk->hw.init = &init; in exynos_register_cpu_clock()
434 cpuclk->lock = &ctx->lock; in exynos_register_cpu_clock()
435 cpuclk->flags = flags; in exynos_register_cpu_clock()
450 if (!cpuclk->cfg) { in exynos_register_cpu_clock()
465 kfree(cpuclk->cfg); in exynos_register_cpu_clock()
[all …]
/linux/drivers/cpufreq/
A Dsh-cpufreq.c47 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in __sh_cpufreq_target() local
70 clk_set_rate(cpuclk, freq); in __sh_cpufreq_target()
94 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_verify()
110 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_cpu_init() local
116 cpuclk = clk_get(dev, "cpu_clk"); in sh_cpufreq_cpu_init()
117 if (IS_ERR(cpuclk)) { in sh_cpufreq_cpu_init()
119 return PTR_ERR(cpuclk); in sh_cpufreq_cpu_init()
122 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_cpu_init()
130 (clk_round_rate(cpuclk, 1) + 500) / 1000; in sh_cpufreq_cpu_init()
132 (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in sh_cpufreq_cpu_init()
[all …]
/linux/arch/mips/txx9/generic/
A Dsetup_tx4939.c101 unsigned int cpuclk = 0; in tx4939_setup() local
125 cpuclk = cpuclk / 3 * 4 /* / 6 * 8 */; break; in tx4939_setup()
127 cpuclk = cpuclk / 2 * 3 /* / 6 * 9 */; break; in tx4939_setup()
129 cpuclk = cpuclk / 3 * 5 /* / 6 * 10 */; break; in tx4939_setup()
131 cpuclk = cpuclk / 6 * 11; break; in tx4939_setup()
133 cpuclk = cpuclk * 2 /* / 6 * 12 */; break; in tx4939_setup()
135 cpuclk = cpuclk / 6 * 13; break; in tx4939_setup()
137 cpuclk = cpuclk / 3 * 7 /* / 6 * 14 */; break; in tx4939_setup()
139 cpuclk = cpuclk / 2 * 5 /* / 6 * 15 */; break; in tx4939_setup()
141 txx9_cpu_clock = cpuclk; in tx4939_setup()
[all …]
A Dsetup_tx4927.c92 unsigned int cpuclk = 0; in tx4927_setup() local
126 cpuclk = txx9_gbus_clock * 2; break; in tx4927_setup()
129 cpuclk = txx9_gbus_clock * 5 / 2; break; in tx4927_setup()
132 cpuclk = txx9_gbus_clock * 3; break; in tx4927_setup()
135 cpuclk = txx9_gbus_clock * 4; break; in tx4927_setup()
137 txx9_cpu_clock = cpuclk; in tx4927_setup()
142 cpuclk = txx9_cpu_clock; in tx4927_setup()
147 txx9_gbus_clock = cpuclk / 2; break; in tx4927_setup()
150 txx9_gbus_clock = cpuclk * 2 / 5; break; in tx4927_setup()
153 txx9_gbus_clock = cpuclk / 3; break; in tx4927_setup()
[all …]
A Dsetup_tx4938.c97 unsigned int cpuclk = 0; in tx4938_setup() local
132 cpuclk = txx9_gbus_clock * 2; break; in tx4938_setup()
135 cpuclk = txx9_gbus_clock * 5 / 2; break; in tx4938_setup()
138 cpuclk = txx9_gbus_clock * 3; break; in tx4938_setup()
141 cpuclk = txx9_gbus_clock * 4; break; in tx4938_setup()
144 cpuclk = txx9_gbus_clock * 9 / 2; break; in tx4938_setup()
146 txx9_cpu_clock = cpuclk; in tx4938_setup()
151 cpuclk = txx9_cpu_clock; in tx4938_setup()
156 txx9_gbus_clock = cpuclk / 2; break; in tx4938_setup()
162 txx9_gbus_clock = cpuclk / 3; break; in tx4938_setup()
[all …]
/linux/drivers/clk/qcom/
A Dclk-cpu-8996.c208 struct clk_cpu_8996_mux *cpuclk = to_clk_cpu_8996_mux_hw(hw); in clk_cpu_8996_mux_get_parent() local
209 u32 mask = GENMASK(cpuclk->width - 1, 0); in clk_cpu_8996_mux_get_parent()
212 regmap_read(clkr->regmap, cpuclk->reg, &val); in clk_cpu_8996_mux_get_parent()
213 val >>= cpuclk->shift; in clk_cpu_8996_mux_get_parent()
222 u32 mask = GENMASK(cpuclk->width + cpuclk->shift - 1, cpuclk->shift); in clk_cpu_8996_mux_set_parent()
226 val <<= cpuclk->shift; in clk_cpu_8996_mux_set_parent()
235 struct clk_hw *parent = cpuclk->pll; in clk_cpu_8996_mux_determine_rate()
237 if (cpuclk->pll_div_2 && req->rate < DIV_2_THRESHOLD) { in clk_cpu_8996_mux_determine_rate()
241 parent = cpuclk->pll_div_2; in clk_cpu_8996_mux_determine_rate()
470 ret = clk_cpu_8996_mux_set_parent(&cpuclk->clkr.hw, in cpu_clk_notifier_cb()
[all …]
/linux/Documentation/devicetree/bindings/clock/
A Dmvebu-core-clock.txt9 1 = cpuclk (CPU clock)
16 1 = cpuclk (CPU clock)
22 1 = cpuclk (CPU clock)
28 1 = cpuclk (CPU clock)
36 1 = cpuclk (CPU clock)
42 1 = cpuclk (CPU0 clock)
48 1 = cpuclk (CPU0 clock)
72 output names ("tclk", "cpuclk", "l2clk", "ddrclk")
A Dmvebu-cpu-clock.txt12 cpuclk: clock-complex@d0018700 {
22 clocks = <&cpuclk 0>;
/linux/arch/mips/cavium-octeon/
A Doct_ilm.c33 u64 cpuclk, avg, max, min; in show_latency() local
36 cpuclk = octeon_get_clock_rate(); in show_latency()
38 max = (curr_li.max_latency * 1000000000) / cpuclk; in show_latency()
39 min = (curr_li.min_latency * 1000000000) / cpuclk; in show_latency()
40 avg = (curr_li.latency_sum * 1000000000) / (cpuclk * curr_li.interrupt_cnt); in show_latency()
/linux/arch/arm/boot/dts/
A Darmada-xp-mv78460.dtsi35 clocks = <&cpuclk 0>;
43 clocks = <&cpuclk 1>;
51 clocks = <&cpuclk 2>;
59 clocks = <&cpuclk 3>;
A Darmada-xp-98dx3336.dtsi22 clocks = <&cpuclk 1>;
A Darmada-xp-98dx4251.dtsi22 clocks = <&cpuclk 1>;
A Darmada-xp-mv78230.dtsi33 clocks = <&cpuclk 0>;
41 clocks = <&cpuclk 1>;
A Darmada-xp-98dx3236.dtsi35 clocks = <&cpuclk 0>;
148 cpuclk: clock-complex@18700 { label
A Darmada-xp-mv78260.dtsi34 clocks = <&cpuclk 0>;
42 clocks = <&cpuclk 1>;
A Darmada-xp.dtsi102 cpuclk: clock-complex@18700 { label

Completed in 27 milliseconds