Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/clk/rockchip/
Dclk-cpu.c75 struct rockchip_cpuclk *cpuclk, unsigned long rate) in rockchip_get_cpuclk_settings() argument
78 cpuclk->rate_table; in rockchip_get_cpuclk_settings()
81 for (i = 0; i < cpuclk->rate_count; i++) { in rockchip_get_cpuclk_settings()
92 struct rockchip_cpuclk *cpuclk = to_rockchip_cpuclk_hw(hw); in rockchip_cpuclk_recalc_rate() local
93 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_recalc_rate()
94 u32 clksel0 = readl_relaxed(cpuclk->reg_base + reg_data->core_reg); in rockchip_cpuclk_recalc_rate()
105 static void rockchip_cpuclk_set_dividers(struct rockchip_cpuclk *cpuclk, in rockchip_cpuclk_set_dividers() argument
119 writel(clksel->val, cpuclk->reg_base + clksel->reg); in rockchip_cpuclk_set_dividers()
123 static int rockchip_cpuclk_pre_rate_change(struct rockchip_cpuclk *cpuclk, in rockchip_cpuclk_pre_rate_change() argument
126 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_pre_rate_change()
[all …]
/Linux-v4.19/drivers/clk/samsung/
Dclk-cpu.c152 struct exynos_cpuclk *cpuclk, void __iomem *base) in exynos_cpuclk_pre_rate_change() argument
154 const struct exynos_cpuclk_cfg_data *cfg_data = cpuclk->cfg; in exynos_cpuclk_pre_rate_change()
155 unsigned long alt_prate = clk_get_rate(cpuclk->alt_parent); in exynos_cpuclk_pre_rate_change()
167 spin_lock_irqsave(cpuclk->lock, flags); in exynos_cpuclk_pre_rate_change()
175 if (cpuclk->flags & CLK_CPU_HAS_DIV1) { in exynos_cpuclk_pre_rate_change()
196 if (cpuclk->flags & CLK_CPU_NEEDS_DEBUG_ALT_DIV) { in exynos_cpuclk_pre_rate_change()
217 if (cpuclk->flags & CLK_CPU_HAS_DIV1) { in exynos_cpuclk_pre_rate_change()
223 spin_unlock_irqrestore(cpuclk->lock, flags); in exynos_cpuclk_pre_rate_change()
229 struct exynos_cpuclk *cpuclk, void __iomem *base) in exynos_cpuclk_post_rate_change() argument
231 const struct exynos_cpuclk_cfg_data *cfg_data = cpuclk->cfg; in exynos_cpuclk_post_rate_change()
[all …]
/Linux-v4.19/drivers/clk/mvebu/
Dclk-cpu.c53 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate() local
56 reg = readl(cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET); in clk_cpu_recalc_rate()
57 div = (reg >> (cpuclk->cpu * 8)) & SYS_CTRL_CLK_DIVIDER_MASK; in clk_cpu_recalc_rate()
80 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate() local
85 reg = (readl(cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET) in clk_cpu_off_set_rate()
86 & (~(SYS_CTRL_CLK_DIVIDER_MASK << (cpuclk->cpu * 8)))) in clk_cpu_off_set_rate()
87 | (div << (cpuclk->cpu * 8)); in clk_cpu_off_set_rate()
88 writel(reg, cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET); in clk_cpu_off_set_rate()
90 reload_mask = 1 << (20 + cpuclk->cpu); in clk_cpu_off_set_rate()
92 reg = readl(cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET) in clk_cpu_off_set_rate()
[all …]
/Linux-v4.19/drivers/cpufreq/
Dsh-cpufreq.c48 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in __sh_cpufreq_target() local
59 freq = clk_round_rate(cpuclk, target->freq * 1000); in __sh_cpufreq_target()
71 clk_set_rate(cpuclk, freq); in __sh_cpufreq_target()
92 struct clk *cpuclk = &per_cpu(sh_cpuclk, policy->cpu); in sh_cpufreq_verify() local
95 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_verify()
101 policy->min = (clk_round_rate(cpuclk, 1) + 500) / 1000; in sh_cpufreq_verify()
102 policy->max = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in sh_cpufreq_verify()
111 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_cpu_init() local
117 cpuclk = clk_get(dev, "cpu_clk"); in sh_cpufreq_cpu_init()
118 if (IS_ERR(cpuclk)) { in sh_cpufreq_cpu_init()
[all …]
Dloongson2_cpufreq.c68 struct clk *cpuclk; in loongson2_cpufreq_cpu_init() local
73 cpuclk = clk_get(NULL, "cpu_clk"); in loongson2_cpufreq_cpu_init()
74 if (IS_ERR(cpuclk)) { in loongson2_cpufreq_cpu_init()
76 return PTR_ERR(cpuclk); in loongson2_cpufreq_cpu_init()
81 clk_put(cpuclk); in loongson2_cpufreq_cpu_init()
91 ret = clk_set_rate(cpuclk, rate * 1000); in loongson2_cpufreq_cpu_init()
93 clk_put(cpuclk); in loongson2_cpufreq_cpu_init()
97 policy->clk = cpuclk; in loongson2_cpufreq_cpu_init()
/Linux-v4.19/arch/mips/txx9/generic/
Dsetup_tx4939.c118 unsigned int cpuclk = 0; in tx4939_setup() local
139 cpuclk = txx9_master_clock * 20 / 2; in tx4939_setup()
142 cpuclk = cpuclk / 3 * 4 /* / 6 * 8 */; break; in tx4939_setup()
144 cpuclk = cpuclk / 2 * 3 /* / 6 * 9 */; break; in tx4939_setup()
146 cpuclk = cpuclk / 3 * 5 /* / 6 * 10 */; break; in tx4939_setup()
148 cpuclk = cpuclk / 6 * 11; break; in tx4939_setup()
150 cpuclk = cpuclk * 2 /* / 6 * 12 */; break; in tx4939_setup()
152 cpuclk = cpuclk / 6 * 13; break; in tx4939_setup()
154 cpuclk = cpuclk / 3 * 7 /* / 6 * 14 */; break; in tx4939_setup()
156 cpuclk = cpuclk / 2 * 5 /* / 6 * 15 */; break; in tx4939_setup()
[all …]
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 …]
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()
159 txx9_gbus_clock = cpuclk * 2 / 5; break; in tx4938_setup()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/clock/
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)
71 output names ("tclk", "cpuclk", "l2clk", "ddrclk")
Dmvebu-cpu-clock.txt12 cpuclk: clock-complex@d0018700 {
22 clocks = <&cpuclk 0>;
Dtango4-clock.txt12 - clock-output-names: should be "cpuclk" and "sysclk".
21 clock-output-names = "cpuclk", "sysclk";
/Linux-v4.19/arch/mips/cavium-octeon/
Doct_ilm.c32 u64 cpuclk, avg, max, min; in show_latency() local
35 cpuclk = octeon_get_clock_rate(); in show_latency()
37 max = (curr_li.max_latency * 1000000000) / cpuclk; in show_latency()
38 min = (curr_li.min_latency * 1000000000) / cpuclk; in show_latency()
39 avg = (curr_li.latency_sum * 1000000000) / (cpuclk * curr_li.interrupt_cnt); in show_latency()
/Linux-v4.19/arch/arm/mach-ks8695/
Dcpu.c57 static unsigned int cpuclk[8] = { 166000000, 166000000, 83000000, 83000000, 55300000, 55300000, 415… variable
64 sysclk[scdc] / 1000000, cpuclk[scdc] / 1000000); in ks8695_clock_info()
/Linux-v4.19/arch/arm/boot/dts/
Darmada-xp-mv78460.dtsi35 clocks = <&cpuclk 0>;
43 clocks = <&cpuclk 1>;
51 clocks = <&cpuclk 2>;
59 clocks = <&cpuclk 3>;
Darmada-xp-98dx3336.dtsi22 clocks = <&cpuclk 1>;
Darmada-xp-98dx4251.dtsi22 clocks = <&cpuclk 1>;
Darmada-xp-mv78230.dtsi33 clocks = <&cpuclk 0>;
41 clocks = <&cpuclk 1>;
Darmada-xp-98dx3236.dtsi35 clocks = <&cpuclk 0>;
148 cpuclk: clock-complex@18700 { label
Darmada-xp-mv78260.dtsi34 clocks = <&cpuclk 0>;
42 clocks = <&cpuclk 1>;
Darmada-xp.dtsi102 cpuclk: clock-complex@18700 { label