Home
last modified time | relevance | path

Searched full:cpu_clk (Results 1 – 25 of 138) sorted by relevance

123456

/openbmc/linux/drivers/cpufreq/
H A Dtegra124-cpufreq.c20 struct clk *cpu_clk; member
32 ret = clk_set_rate(priv->dfll_clk, clk_get_rate(priv->cpu_clk)); in tegra124_cpu_switch_to_dfll()
36 orig_parent = clk_get_parent(priv->cpu_clk); in tegra124_cpu_switch_to_dfll()
37 clk_set_parent(priv->cpu_clk, priv->pllp_clk); in tegra124_cpu_switch_to_dfll()
43 clk_set_parent(priv->cpu_clk, priv->dfll_clk); in tegra124_cpu_switch_to_dfll()
48 clk_set_parent(priv->cpu_clk, orig_parent); in tegra124_cpu_switch_to_dfll()
73 priv->cpu_clk = of_clk_get_by_name(np, "cpu_g"); in tegra124_cpufreq_probe()
74 if (IS_ERR(priv->cpu_clk)) { in tegra124_cpufreq_probe()
75 ret = PTR_ERR(priv->cpu_clk); in tegra124_cpufreq_probe()
124 clk_put(priv->cpu_clk); in tegra124_cpufreq_probe()
[all …]
H A Dkirkwood-cpufreq.c21 struct clk *cpu_clk; member
65 clk_set_parent(priv.powersave_clk, priv.cpu_clk); in kirkwood_cpufreq_target()
119 priv.cpu_clk = of_clk_get_by_name(np, "cpu_clk"); in kirkwood_cpufreq_probe()
120 if (IS_ERR(priv.cpu_clk)) { in kirkwood_cpufreq_probe()
122 err = PTR_ERR(priv.cpu_clk); in kirkwood_cpufreq_probe()
126 err = clk_prepare_enable(priv.cpu_clk); in kirkwood_cpufreq_probe()
132 kirkwood_freq_table[0].frequency = clk_get_rate(priv.cpu_clk) / 1000; in kirkwood_cpufreq_probe()
174 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_probe()
187 clk_disable_unprepare(priv.cpu_clk); in kirkwood_cpufreq_remove()
H A Dmediatek-cpufreq.c45 struct clk *cpu_clk; member
204 struct clk *cpu_clk = policy->clk; in mtk_cpufreq_set_target() local
205 struct clk *armpll = clk_get_parent(cpu_clk); in mtk_cpufreq_set_target()
214 pre_freq_hz = clk_get_rate(cpu_clk); in mtk_cpufreq_set_target()
265 ret = clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
278 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
284 ret = clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
301 clk_set_parent(cpu_clk, info->inter_clk); in mtk_cpufreq_set_target()
303 clk_set_parent(cpu_clk, armpll); in mtk_cpufreq_set_target()
409 info->cpu_clk = clk_get(cpu_dev, "cpu"); in mtk_cpu_dvfs_info_init()
[all …]
H A Dhighbank-cpufreq.c62 struct clk *cpu_clk; in hb_cpufreq_driver_init() local
82 cpu_clk = clk_get(cpu_dev, NULL); in hb_cpufreq_driver_init()
83 if (IS_ERR(cpu_clk)) { in hb_cpufreq_driver_init()
84 ret = PTR_ERR(cpu_clk); in hb_cpufreq_driver_init()
89 ret = clk_notifier_register(cpu_clk, &hb_cpufreq_clk_nb); in hb_cpufreq_driver_init()
H A Dcpufreq-dt.c107 struct clk *cpu_clk; in cpufreq_init() local
118 cpu_clk = clk_get(cpu_dev, NULL); in cpufreq_init()
119 if (IS_ERR(cpu_clk)) { in cpufreq_init()
120 ret = PTR_ERR(cpu_clk); in cpufreq_init()
131 policy->clk = cpu_clk; in cpufreq_init()
149 clk_put(cpu_clk); in cpufreq_init()
/openbmc/linux/arch/mips/ar7/
H A Dtime.c19 struct clk *cpu_clk; in plat_time_init() local
24 cpu_clk = clk_get(NULL, "cpu"); in plat_time_init()
25 if (IS_ERR(cpu_clk)) { in plat_time_init()
30 mips_hpt_frequency = clk_get_rate(cpu_clk) / 2; in plat_time_init()
H A Dclock.c96 static struct clk_rate cpu_clk = { variable
184 base_clock = cpu_clk.rate; in tnetd7300_get_clock()
224 base_clock = cpu_clk.rate; in tnetd7300_set_clock()
252 cpu_clk.rate = tnetd7300_get_clock(CPU_PLL_SOURCE_SHIFT, in tnetd7300_init_clocks()
255 cpu_clk.rate = bus_clk.rate; in tnetd7300_init_clocks()
265 clk = clk_register_fixed_rate(NULL, "cpu", NULL, 0, cpu_clk.rate); in tnetd7300_init_clocks()
360 cpu_clk.rate = in tnetd7200_init_clocks()
364 cpu_clk.rate); in tnetd7200_init_clocks()
373 cpu_clk.rate = ((cpu_base / cpu_prediv) * cpu_mul) in tnetd7200_init_clocks()
377 cpu_clk.rate); in tnetd7200_init_clocks()
[all …]
/openbmc/linux/arch/arm/mach-mvebu/
H A Dplatsmp.c39 struct clk *cpu_clk; in get_cpu_clk() local
44 cpu_clk = of_clk_get(np, 0); in get_cpu_clk()
45 if (WARN_ON(IS_ERR(cpu_clk))) in get_cpu_clk()
47 return cpu_clk; in get_cpu_clk()
101 struct clk *cpu_clk = get_cpu_clk(cpu); in armada_xp_sync_secondary_clk() local
103 if (!cpu_clk || !boot_cpu_clk) in armada_xp_sync_secondary_clk()
106 clk_prepare_enable(cpu_clk); in armada_xp_sync_secondary_clk()
107 clk_set_rate(cpu_clk, clk_get_rate(boot_cpu_clk)); in armada_xp_sync_secondary_clk()
/openbmc/u-boot/arch/powerpc/cpu/mpc8xx/
H A Dspeed.c29 gd->cpu_clk = CONFIG_8xx_GCLK_FREQ; in get_clocks()
33 gd->bus_clk = gd->cpu_clk; in get_clocks()
36 gd->bus_clk = gd->cpu_clk / 2; in get_clocks()
39 gd->arch.brg_clk = gd->cpu_clk / divider; in get_clocks()
/openbmc/linux/arch/sh/kernel/cpu/
H A Dclock-cpg.c24 static struct clk cpu_clk = { variable
36 &cpu_clk,
44 CLKDEV_CON_ID("cpu_clk", &cpu_clk),
/openbmc/u-boot/arch/mips/mach-ath79/qca953x/
H A Dclk.c58 /* CPU_CLK = PLLOUT / CPU_POST_DIV */ in get_clocks()
61 gd->cpu_clk = pll / div; in get_clocks()
91 /* AHB_CLK = CPU_CLK / AHB_POST_DIV */ in get_clocks()
92 gd->bus_clk = gd->cpu_clk / (div + 1); in get_clocks()
/openbmc/linux/Documentation/devicetree/bindings/arm/marvell/
H A Dkirkwood.txt12 cpus/cpu@0 with three clocks, "cpu_clk", "ddrclk" and "powersave",
14 between the "cpu_clk" and the "ddrclk".
26 clock-names = "cpu_clk", "ddrclk", "powersave";
/openbmc/linux/arch/mips/lantiq/xway/
H A Dclk.c144 unsigned int ocp_sel, cpu_clk; in ltq_vr9_fpi_hz() local
147 cpu_clk = ltq_vr9_cpu_hz(); in ltq_vr9_fpi_hz()
153 clk = cpu_clk; in ltq_vr9_fpi_hz()
157 clk = cpu_clk / 2; in ltq_vr9_fpi_hz()
161 clk = (cpu_clk * 2) / 5; in ltq_vr9_fpi_hz()
165 clk = cpu_clk / 3; in ltq_vr9_fpi_hz()
/openbmc/linux/drivers/clk/mvebu/
H A Dclk-cpu.c33 struct cpu_clk { struct
46 #define to_cpu_clk(p) container_of(p, struct cpu_clk, hw) argument
51 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_recalc_rate()
78 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_off_set_rate()
113 struct cpu_clk *cpuclk = to_cpu_clk(hwclk); in clk_cpu_on_set_rate()
168 struct cpu_clk *cpuclk; in of_cpu_clk_setup()
/openbmc/linux/arch/arm64/boot/dts/marvell/
H A Darmada-ap807-quad.dtsi24 clocks = <&cpu_clk 0>;
39 clocks = <&cpu_clk 0>;
54 clocks = <&cpu_clk 1>;
69 clocks = <&cpu_clk 1>;
H A Darmada-ap806-quad.dtsi24 clocks = <&cpu_clk 0>;
39 clocks = <&cpu_clk 0>;
54 clocks = <&cpu_clk 1>;
69 clocks = <&cpu_clk 1>;
/openbmc/u-boot/arch/arm/cpu/arm1136/mx35/
H A Dgeneric.c201 case CPU_CLK: in mxc_get_main_clock()
265 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
272 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
280 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
287 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
295 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
302 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
308 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
314 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
321 ret_val = ((clk_sel != 0) ? mxc_get_main_clock(CPU_CLK) : in mxc_get_peri_clock()
/openbmc/u-boot/arch/m68k/cpu/mcf52x2/
H A Dspeed.c68 gd->cpu_clk = CONFIG_SYS_CLK; in get_clocks()
71 gd->bus_clk = gd->cpu_clk / 2; in get_clocks()
73 gd->bus_clk = gd->cpu_clk; in get_clocks()
/openbmc/linux/arch/mips/boot/dts/mscc/
H A Dluton.dtsi16 clocks = <&cpu_clk>;
32 cpu_clk: cpu-clock { label
41 clocks = <&cpu_clk>;
H A Dserval.dtsi18 clocks = <&cpu_clk>;
35 cpu_clk: cpu-clock { label
44 clocks = <&cpu_clk>;
H A Djaguar2.dtsi24 clocks = <&cpu_clk>;
36 cpu_clk: cpu-clock { label
45 clocks = <&cpu_clk>;
/openbmc/u-boot/arch/arm/mach-versal/
H A Dclk.c23 gd->cpu_clk = get_tbclk(); in set_cpu_clk_info()
25 gd->bd->bi_arm_freq = gd->cpu_clk / 1000000; in set_cpu_clk_info()
/openbmc/u-boot/arch/arm/mach-zynqmp/
H A Dclk.c37 gd->cpu_clk = get_tbclk(); in set_cpu_clk_info()
39 gd->bd->bi_arm_freq = gd->cpu_clk / 1000000; in set_cpu_clk_info()
/openbmc/u-boot/board/synopsys/iot_devkit/
H A Diot_devkit.c132 gd->cpu_clk = fdtdec_get_int(gd->fdt_blob, offset, "clock-frequency", 0); in mach_cpu_init()
133 if (!gd->cpu_clk) in mach_cpu_init()
137 if (gd->cpu_clk > 100000000) { in mach_cpu_init()
145 return set_cpu_freq(gd->cpu_clk); in mach_cpu_init()
/openbmc/linux/Documentation/devicetree/bindings/clock/
H A Dmicrochip,lan966x-gck.yaml13 The LAN966X Generic clock controller contains 3 PLLs - cpu_clk,
56 clocks = <&cpu_clk>, <&ddr_clk>, <&sys_clk>;

123456