Home
last modified time | relevance | path

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

/linux/drivers/clk/rockchip/
A Dclk-cpu.c71 cpuclk->rate_table; in rockchip_get_cpuclk_settings()
316 cpuclk = kzalloc(sizeof(*cpuclk), GFP_KERNEL); in rockchip_clk_register_cpuclk()
317 if (!cpuclk) in rockchip_clk_register_cpuclk()
333 cpuclk->reg_base = reg_base; in rockchip_clk_register_cpuclk()
334 cpuclk->lock = lock; in rockchip_clk_register_cpuclk()
335 cpuclk->reg_data = reg_data; in rockchip_clk_register_cpuclk()
337 cpuclk->hw.init = &init; in rockchip_clk_register_cpuclk()
340 if (!cpuclk->alt_parent) { in rockchip_clk_register_cpuclk()
374 if (!cpuclk->rate_table) { in rockchip_clk_register_cpuclk()
390 kfree(cpuclk->rate_table); in rockchip_clk_register_cpuclk()
[all …]
/linux/drivers/clk/samsung/
A Dclk-cpu.c605 struct exynos_cpuclk *cpuclk; in exynos_cpuclk_notifier_cb() local
611 err = cpuclk->chip->pre_rate_cb(ndata, cpuclk); in exynos_cpuclk_notifier_cb()
613 err = cpuclk->chip->post_rate_cb(ndata, cpuclk); in exynos_cpuclk_notifier_cb()
661 cpuclk = kzalloc(sizeof(*cpuclk), GFP_KERNEL); in exynos_register_cpu_clock()
662 if (!cpuclk) in exynos_register_cpu_clock()
674 cpuclk->hw.init = &init; in exynos_register_cpu_clock()
676 cpuclk->lock = &ctx->lock; in exynos_register_cpu_clock()
692 cpuclk->cfg = kmemdup_array(clk_data->cfg, num_cfgs, sizeof(*cpuclk->cfg), in exynos_register_cpu_clock()
694 if (!cpuclk->cfg) { in exynos_register_cpu_clock()
710 kfree(cpuclk->cfg); in exynos_register_cpu_clock()
[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
184 cpuclk = kcalloc(ncpus, sizeof(*cpuclk), GFP_KERNEL); in of_cpu_clk_setup()
185 if (WARN_ON(!cpuclk)) in of_cpu_clk_setup()
204 cpuclk[cpu].cpu = cpu; in of_cpu_clk_setup()
208 cpuclk[cpu].hw.init = &init; in of_cpu_clk_setup()
229 kfree(cpuclk[ncpus].clk_name); in of_cpu_clk_setup()
[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_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/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 oct_ilm_show() local
36 cpuclk = octeon_get_clock_rate(); in oct_ilm_show()
38 max = (curr_li.max_latency * 1000000000) / cpuclk; in oct_ilm_show()
39 min = (curr_li.min_latency * 1000000000) / cpuclk; in oct_ilm_show()
40 avg = (curr_li.latency_sum * 1000000000) / (cpuclk * curr_li.interrupt_cnt); in oct_ilm_show()
/linux/drivers/clk/qcom/
A Dclk-cpu-8996.c277 struct clk_cpu_8996_pmux *cpuclk = to_clk_cpu_8996_pmux_hw(hw); in clk_cpu_8996_pmux_get_parent() local
280 regmap_read(clkr->regmap, cpuclk->reg, &val); in clk_cpu_8996_pmux_get_parent()
288 struct clk_cpu_8996_pmux *cpuclk = to_clk_cpu_8996_pmux_hw(hw); in clk_cpu_8996_pmux_set_parent() local
293 return regmap_update_bits(clkr->regmap, cpuclk->reg, PMUX_MASK, val); in clk_cpu_8996_pmux_set_parent()
549 struct clk_cpu_8996_pmux *cpuclk = to_clk_cpu_8996_pmux_nb(nb); in cpu_clk_notifier_cb() local
554 qcom_cpu_clk_msm8996_acd_init(cpuclk->clkr.regmap); in cpu_clk_notifier_cb()
566 clk_cpu_8996_pmux_set_parent(&cpuclk->clkr.hw, SMUX_INDEX); in cpu_clk_notifier_cb()
573 clk_cpu_8996_pmux_set_parent(&cpuclk->clkr.hw, ACD_INDEX); in cpu_clk_notifier_cb()
/linux/arch/arm/boot/dts/sigmastar/
A Dmstar-infinity2m.dtsi30 clock-names = "cpuclk";
A Dmstar-v7.dtsi25 clock-names = "cpuclk";
/linux/arch/arm/boot/dts/marvell/
A Darmada-xp-98dx3336.dtsi22 clocks = <&cpuclk 1>;
A Darmada-xp-mv78460.dtsi35 clocks = <&cpuclk 0>;
43 clocks = <&cpuclk 1>;
51 clocks = <&cpuclk 2>;
59 clocks = <&cpuclk 3>;
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>;
158 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 30 milliseconds