Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/clk/rockchip/
Dclk-cpu.c74 struct rockchip_cpuclk *cpuclk, unsigned long rate) in rockchip_get_cpuclk_settings() argument
77 cpuclk->rate_table; in rockchip_get_cpuclk_settings()
80 for (i = 0; i < cpuclk->rate_count; i++) { in rockchip_get_cpuclk_settings()
91 struct rockchip_cpuclk *cpuclk = to_rockchip_cpuclk_hw(hw); in rockchip_cpuclk_recalc_rate() local
92 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_recalc_rate()
93 u32 clksel0 = readl_relaxed(cpuclk->reg_base + reg_data->core_reg); in rockchip_cpuclk_recalc_rate()
104 static void rockchip_cpuclk_set_dividers(struct rockchip_cpuclk *cpuclk, in rockchip_cpuclk_set_dividers() argument
118 writel(clksel->val , cpuclk->reg_base + clksel->reg); in rockchip_cpuclk_set_dividers()
122 static int rockchip_cpuclk_pre_rate_change(struct rockchip_cpuclk *cpuclk, in rockchip_cpuclk_pre_rate_change() argument
125 const struct rockchip_cpuclk_reg_data *reg_data = cpuclk->reg_data; in rockchip_cpuclk_pre_rate_change()
[all …]
/linux-4.1.27/drivers/clk/mvebu/
Dclk-cpu.c52 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate() local
55 reg = readl(cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET); in clk_cpu_recalc_rate()
56 div = (reg >> (cpuclk->cpu * 8)) & SYS_CTRL_CLK_DIVIDER_MASK; in clk_cpu_recalc_rate()
79 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate() local
84 reg = (readl(cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET) in clk_cpu_off_set_rate()
85 & (~(SYS_CTRL_CLK_DIVIDER_MASK << (cpuclk->cpu * 8)))) in clk_cpu_off_set_rate()
86 | (div << (cpuclk->cpu * 8)); in clk_cpu_off_set_rate()
87 writel(reg, cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_VALUE_OFFSET); in clk_cpu_off_set_rate()
89 reload_mask = 1 << (20 + cpuclk->cpu); in clk_cpu_off_set_rate()
91 reg = readl(cpuclk->reg_base + SYS_CTRL_CLK_DIVIDER_CTRL_OFFSET) in clk_cpu_off_set_rate()
[all …]
/linux-4.1.27/drivers/cpufreq/
Dsh-cpufreq.c46 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_target() local
60 freq = clk_round_rate(cpuclk, target_freq * 1000); in sh_cpufreq_target()
73 clk_set_rate(cpuclk, freq); in sh_cpufreq_target()
83 struct clk *cpuclk = &per_cpu(sh_cpuclk, policy->cpu); in sh_cpufreq_verify() local
86 freq_table = cpuclk->nr_freqs ? cpuclk->freq_table : NULL; in sh_cpufreq_verify()
92 policy->min = (clk_round_rate(cpuclk, 1) + 500) / 1000; in sh_cpufreq_verify()
93 policy->max = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in sh_cpufreq_verify()
102 struct clk *cpuclk = &per_cpu(sh_cpuclk, cpu); in sh_cpufreq_cpu_init() local
108 cpuclk = clk_get(dev, "cpu_clk"); in sh_cpufreq_cpu_init()
109 if (IS_ERR(cpuclk)) { in sh_cpufreq_cpu_init()
[all …]
Dat32ap-cpufreq.c55 struct clk *cpuclk; in at32_cpufreq_driver_init() local
61 cpuclk = clk_get(NULL, "cpu"); in at32_cpufreq_driver_init()
62 if (IS_ERR(cpuclk)) { in at32_cpufreq_driver_init()
64 retval = PTR_ERR(cpuclk); in at32_cpufreq_driver_init()
68 min_freq = (clk_round_rate(cpuclk, 1) + 500) / 1000; in at32_cpufreq_driver_init()
69 frequency = (clk_round_rate(cpuclk, ~0UL) + 500) / 1000; in at32_cpufreq_driver_init()
88 rate = clk_round_rate(cpuclk, frequency * 1000) / 1000; in at32_cpufreq_driver_init()
98 policy->clk = cpuclk; in at32_cpufreq_driver_init()
109 clk_put(cpuclk); in at32_cpufreq_driver_init()
Dloongson2_cpufreq.c72 struct clk *cpuclk; in loongson2_cpufreq_cpu_init() local
77 cpuclk = clk_get(NULL, "cpu_clk"); in loongson2_cpufreq_cpu_init()
78 if (IS_ERR(cpuclk)) { in loongson2_cpufreq_cpu_init()
80 return PTR_ERR(cpuclk); in loongson2_cpufreq_cpu_init()
85 clk_put(cpuclk); in loongson2_cpufreq_cpu_init()
95 ret = clk_set_rate(cpuclk, rate * 1000); in loongson2_cpufreq_cpu_init()
97 clk_put(cpuclk); in loongson2_cpufreq_cpu_init()
101 policy->clk = cpuclk; in loongson2_cpufreq_cpu_init()
/linux-4.1.27/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-4.1.27/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 (CPU0 clock)
42 1 = cpuclk (CPU0 clock)
63 output names ("tclk", "cpuclk", "l2clk", "ddrclk")
Dmvebu-cpu-clock.txt11 cpuclk: clock-complex@d0018700 {
21 clocks = <&cpuclk 0>;
/linux-4.1.27/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-4.1.27/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-4.1.27/arch/arm/boot/dts/
Darmada-xp-mv78460.dtsi72 clocks = <&cpuclk 0>;
80 clocks = <&cpuclk 1>;
88 clocks = <&cpuclk 2>;
96 clocks = <&cpuclk 3>;
Darmada-xp-mv78230.dtsi70 clocks = <&cpuclk 0>;
78 clocks = <&cpuclk 1>;
Darmada-xp-mv78260.dtsi71 clocks = <&cpuclk 0>;
79 clocks = <&cpuclk 1>;
Darmada-xp.dtsi151 cpuclk: clock-complex@18700 { label