Home
last modified time | relevance | path

Searched full:pclk (Results 1 – 25 of 692) sorted by relevance

12345678910>>...28

/Linux-v6.1/drivers/clk/
Dclk-xgene.c445 struct xgene_clk *pclk = to_xgene_clk(hw); in xgene_clk_enable() local
449 if (pclk->lock) in xgene_clk_enable()
450 spin_lock_irqsave(pclk->lock, flags); in xgene_clk_enable()
452 if (pclk->param.csr_reg) { in xgene_clk_enable()
455 data = xgene_clk_read(pclk->param.csr_reg + in xgene_clk_enable()
456 pclk->param.reg_clk_offset); in xgene_clk_enable()
457 data |= pclk->param.reg_clk_mask; in xgene_clk_enable()
458 xgene_clk_write(data, pclk->param.csr_reg + in xgene_clk_enable()
459 pclk->param.reg_clk_offset); in xgene_clk_enable()
462 pclk->param.reg_clk_offset, pclk->param.reg_clk_mask, in xgene_clk_enable()
[all …]
Dclk-stm32mp1.c1379 #define PCLK(_id, _name, _parent, _flags, _mgate)\ macro
1883 PCLK(TIM2, "tim2", "pclk1", CLK_IGNORE_UNUSED, G_TIM2),
1884 PCLK(TIM3, "tim3", "pclk1", CLK_IGNORE_UNUSED, G_TIM3),
1885 PCLK(TIM4, "tim4", "pclk1", CLK_IGNORE_UNUSED, G_TIM4),
1886 PCLK(TIM5, "tim5", "pclk1", CLK_IGNORE_UNUSED, G_TIM5),
1887 PCLK(TIM6, "tim6", "pclk1", CLK_IGNORE_UNUSED, G_TIM6),
1888 PCLK(TIM7, "tim7", "pclk1", CLK_IGNORE_UNUSED, G_TIM7),
1889 PCLK(TIM12, "tim12", "pclk1", CLK_IGNORE_UNUSED, G_TIM12),
1890 PCLK(TIM13, "tim13", "pclk1", CLK_IGNORE_UNUSED, G_TIM13),
1891 PCLK(TIM14, "tim14", "pclk1", CLK_IGNORE_UNUSED, G_TIM14),
[all …]
Dclk-conf.c18 struct clk *clk, *pclk; in __set_clk_parents() local
38 pclk = of_clk_get_from_provider(&clkspec); in __set_clk_parents()
39 if (IS_ERR(pclk)) { in __set_clk_parents()
40 if (PTR_ERR(pclk) != -EPROBE_DEFER) in __set_clk_parents()
43 return PTR_ERR(pclk); in __set_clk_parents()
63 rc = clk_set_parent(clk, pclk); in __set_clk_parents()
66 __clk_get_name(clk), __clk_get_name(pclk), rc); in __set_clk_parents()
68 clk_put(pclk); in __set_clk_parents()
72 clk_put(pclk); in __set_clk_parents()
/Linux-v6.1/drivers/clk/x86/
Dclk-pmc-atom.c165 struct clk_plt *pclk; in plt_clk_register() local
169 pclk = devm_kzalloc(&pdev->dev, sizeof(*pclk), GFP_KERNEL); in plt_clk_register()
170 if (!pclk) in plt_clk_register()
179 pclk->hw.init = &init; in plt_clk_register()
180 pclk->reg = pmc_data->base + PMC_CLK_CTL_OFFSET + id * PMC_CLK_CTL_SIZE; in plt_clk_register()
181 spin_lock_init(&pclk->lock); in plt_clk_register()
188 if (pmc_data->critical && plt_clk_is_enabled(&pclk->hw)) in plt_clk_register()
191 ret = devm_clk_hw_register(&pdev->dev, &pclk->hw); in plt_clk_register()
193 pclk = ERR_PTR(ret); in plt_clk_register()
197 pclk->lookup = clkdev_hw_create(&pclk->hw, init.name, NULL); in plt_clk_register()
[all …]
/Linux-v6.1/drivers/clocksource/
Dtimer-microchip-pit64b.c52 * @pclk: PIT64B's peripheral clock
58 struct clk *pclk; member
137 clk_disable_unprepare(timer->pclk); in mchp_pit64b_suspend()
142 clk_prepare_enable(timer->pclk); in mchp_pit64b_resume()
253 * PIT64B timer may be fed by gclk or pclk. When gclk is used its rate has to
254 * be at least 3 times lower that pclk's rate. pclk rate is fixed, gclk rate
255 * could be changed via clock APIs. The chosen clock (pclk or gclk) could be
260 * requested rate. If PCLK/GCLK < 3 (condition requested by PIT64B hardware)
261 * then the function falls back on using PCLK as clock source for PIT64B timer
272 * | |-->pclk -->|-->| | +---------+ +-----+ |
[all …]
Dtimer-rockchip.c37 struct clk *pclk; member
131 struct clk *pclk; in rk_timer_probe() local
146 pclk = of_clk_get_by_name(np, "pclk"); in rk_timer_probe()
147 if (IS_ERR(pclk)) { in rk_timer_probe()
148 ret = PTR_ERR(pclk); in rk_timer_probe()
149 pr_err("Failed to get pclk for '%s'\n", TIMER_NAME); in rk_timer_probe()
153 ret = clk_prepare_enable(pclk); in rk_timer_probe()
155 pr_err("Failed to enable pclk for '%s'\n", TIMER_NAME); in rk_timer_probe()
158 timer->pclk = pclk; in rk_timer_probe()
191 clk_disable_unprepare(pclk); in rk_timer_probe()
[all …]
Ddw_apb_timer_of.c21 struct clk *pclk; in timer_get_base_and_rate() local
44 pclk = of_clk_get_by_name(np, "pclk"); in timer_get_base_and_rate()
45 if (!IS_ERR(pclk)) in timer_get_base_and_rate()
46 if (clk_prepare_enable(pclk)) in timer_get_base_and_rate()
47 pr_warn("pclk for %pOFn is present, but could not be activated\n", in timer_get_base_and_rate()
77 if (!IS_ERR(pclk)) { in timer_get_base_and_rate()
78 clk_disable_unprepare(pclk); in timer_get_base_and_rate()
79 clk_put(pclk); in timer_get_base_and_rate()
/Linux-v6.1/drivers/clk/samsung/
Dclk-s3c64xx.c164 DIV(PCLK, "pclk", "hclkx2", CLK_DIV0, 12, 4),
221 GATE_ON(PCLK_SKEY, "pclk_skey", "pclk", PCLK_GATE, 24),
222 GATE_ON(PCLK_CHIPID, "pclk_chipid", "pclk", PCLK_GATE, 23),
223 GATE_BUS(PCLK_SPI1, "pclk_spi1", "pclk", PCLK_GATE, 22),
224 GATE_BUS(PCLK_SPI0, "pclk_spi0", "pclk", PCLK_GATE, 21),
225 GATE_BUS(PCLK_HSIRX, "pclk_hsirx", "pclk", PCLK_GATE, 20),
226 GATE_BUS(PCLK_HSITX, "pclk_hsitx", "pclk", PCLK_GATE, 19),
227 GATE_ON(PCLK_GPIO, "pclk_gpio", "pclk", PCLK_GATE, 18),
228 GATE_BUS(PCLK_IIC0, "pclk_iic0", "pclk", PCLK_GATE, 17),
229 GATE_BUS(PCLK_IIS1, "pclk_iis1", "pclk", PCLK_GATE, 16),
[all …]
Dclk-s3c2412.c63 DIV(PCLK, "pclk", "hclk", CLKDIVN, 2, 1),
106 GATE(PCLK_WDT, "wdt", "pclk", CLKCON, 28, 0, 0),
107 GATE(PCLK_SPI, "spi", "pclk", CLKCON, 27, 0, 0),
108 GATE(PCLK_I2S, "i2s", "pclk", CLKCON, 26, 0, 0),
109 GATE(PCLK_I2C, "i2c", "pclk", CLKCON, 25, 0, 0),
110 GATE(PCLK_ADC, "adc", "pclk", CLKCON, 24, 0, 0),
111 GATE(PCLK_RTC, "rtc", "pclk", CLKCON, 23, 0, 0),
112 GATE(PCLK_GPIO, "gpio", "pclk", CLKCON, 22, CLK_IGNORE_UNUSED, 0),
113 GATE(PCLK_UART2, "uart2", "pclk", CLKCON, 21, 0, 0),
114 GATE(PCLK_UART1, "uart1", "pclk", CLKCON, 20, 0, 0),
[all …]
Dclk-s3c2443.c102 DIV(PCLK, "pclk", "hclk", CLKDIV0, 2, 1),
130 GATE(PCLK_GPIO, "gpio", "pclk", PCLKCON, 13, CLK_IGNORE_UNUSED, 0),
131 GATE(PCLK_RTC, "rtc", "pclk", PCLKCON, 12, 0, 0),
132 GATE(PCLK_WDT, "wdt", "pclk", PCLKCON, 11, 0, 0),
133 GATE(PCLK_PWM, "pwm", "pclk", PCLKCON, 10, 0, 0),
134 GATE(PCLK_I2S0, "i2s0", "pclk", PCLKCON, 9, 0, 0),
135 GATE(PCLK_AC97, "ac97", "pclk", PCLKCON, 8, 0, 0),
136 GATE(PCLK_ADC, "adc", "pclk", PCLKCON, 7, 0, 0),
137 GATE(PCLK_SPI0, "spi0", "pclk", PCLKCON, 6, 0, 0),
138 GATE(PCLK_I2C0, "i2c0", "pclk", PCLKCON, 4, 0, 0),
[all …]
/Linux-v6.1/arch/arm/boot/dts/
Dversatile-ab.dts161 pclk: pclk@24M { label
236 clocks = <&pclk>;
244 clocks = <&xtal24mhz>, <&pclk>;
252 clocks = <&xtal24mhz>, <&pclk>;
260 clocks = <&xtal24mhz>, <&pclk>;
267 clocks = <&pclk>;
274 clocks = <&pclk>;
282 clocks = <&osc1>, <&pclk>;
321 clocks = <&pclk>;
329 clocks = <&pclk>;
[all …]
Decx-common.dtsi50 clocks = <&pclk>;
60 clocks = <&pclk>;
71 clocks = <&pclk>;
82 clocks = <&pclk>;
93 clocks = <&pclk>;
102 clocks = <&pclk>;
110 clocks = <&pclk>;
118 clocks = <&pclk>, <&pclk>;
187 pclk: pclk { label
199 clocks = <&pclk>;
Darm-realview-eb.dtsi111 pclk: pclk@0 { label
329 clocks = <&pclk>;
342 clocks = <&mclk>, <&pclk>;
352 clocks = <&kmiclk>, <&pclk>;
359 clocks = <&kmiclk>, <&pclk>;
366 clocks = <&pclk>;
373 clocks = <&uartclk>, <&pclk>;
380 clocks = <&uartclk>, <&pclk>;
387 clocks = <&uartclk>, <&pclk>;
394 clocks = <&uartclk>, <&pclk>;
[all …]
Darm-realview-pbx.dtsi126 pclk: pclk@0 { label
371 clocks = <&uartclk>, <&pclk>;
378 clocks = <&uartclk>, <&pclk>;
385 clocks = <&uartclk>, <&pclk>;
392 clocks = <&sspclk>, <&pclk>;
399 clocks = <&wdogclk>, <&pclk>;
407 clocks = <&wdogclk>, <&pclk>;
417 <&pclk>;
428 <&pclk>;
441 clocks = <&pclk>;
[all …]
Darm-realview-pb1176.dts113 pclk: pclk@0 { label
371 clocks = <&timclk>, <&timclk>, <&pclk>;
381 clocks = <&timclk>, <&timclk>, <&pclk>;
390 clocks = <&pclk>;
403 clocks = <&pclk>;
412 clocks = <&sspclk>, <&pclk>;
421 clocks = <&uartclk>, <&pclk>;
430 clocks = <&uartclk>, <&pclk>;
439 clocks = <&uartclk>, <&pclk>;
448 clocks = <&uartclk>, <&pclk>;
[all …]
Dste-nomadik-stn8815.dtsi40 clocks = <&timclk>, <&pclk>;
49 clocks = <&timclk>, <&pclk>;
64 clocks = <&pclk>;
78 clocks = <&pclk>;
92 clocks = <&pclk>;
107 clocks = <&pclk>;
232 /* The PCLK domain uses HCLK right off */
233 pclk: pclk@0 { label
332 clocks = <&pclk>;
338 clocks = <&pclk>;
[all …]
Darm-realview-pb11mp.dts227 pclk: pclk@0 { label
476 clocks = <&pclk>;
491 clocks = <&mclk>, <&pclk>;
503 clocks = <&kmiclk>, <&pclk>;
512 clocks = <&kmiclk>, <&pclk>;
521 clocks = <&uartclk>, <&pclk>;
530 clocks = <&uartclk>, <&pclk>;
539 clocks = <&uartclk>, <&pclk>;
548 clocks = <&uartclk>, <&pclk>;
557 clocks = <&sspclk>, <&pclk>;
[all …]
Dmeson6.dtsi52 clock-names = "xtal", "pclk";
57 clock-names = "xtal", "pclk", "baud";
62 clock-names = "xtal", "pclk", "baud";
67 clock-names = "xtal", "pclk", "baud";
72 clock-names = "xtal", "pclk", "baud";
/Linux-v6.1/drivers/clk/hisilicon/
Dclk-hi3620.c35 static const char *const uart0_mux_p[] __initconst = { "osc26m", "pclk", };
36 static const char *const uart1_mux_p[] __initconst = { "osc26m", "pclk", };
37 static const char *const uart2_mux_p[] __initconst = { "osc26m", "pclk", };
38 static const char *const uart3_mux_p[] __initconst = { "osc26m", "pclk", };
39 static const char *const uart4_mux_p[] __initconst = { "osc26m", "pclk", };
69 { HI3620_PCLK, "pclk", NULL, 0, 26000000, },
138 { HI3620_RTCCLK, "rtcclk", "pclk", CLK_SET_RATE_PARENT, 0x20, 5, 0, },
139 { HI3620_KPC_CLK, "kpc_clk", "pclk", CLK_SET_RATE_PARENT, 0x20, 6, 0, },
140 { HI3620_GPIOCLK0, "gpioclk0", "pclk", CLK_SET_RATE_PARENT, 0x20, 8, 0, },
141 { HI3620_GPIOCLK1, "gpioclk1", "pclk", CLK_SET_RATE_PARENT, 0x20, 9, 0, },
[all …]
/Linux-v6.1/drivers/iio/dac/
Dstm32-dac-core.c22 * @pclk: peripheral clock common for all DACs
27 struct clk *pclk; member
64 ret = clk_prepare_enable(priv->pclk); in stm32_dac_core_hw_start()
66 dev_err(dev, "pclk enable failed: %d\n", ret); in stm32_dac_core_hw_start()
83 clk_disable_unprepare(priv->pclk); in stm32_dac_core_hw_stop()
112 regmap = devm_regmap_init_mmio_clk(dev, "pclk", mmio, in stm32_dac_probe()
118 priv->pclk = devm_clk_get(dev, "pclk"); in stm32_dac_probe()
119 if (IS_ERR(priv->pclk)) in stm32_dac_probe()
120 return dev_err_probe(dev, PTR_ERR(priv->pclk), "pclk get failed\n"); in stm32_dac_probe()
156 priv->common.hfsel = (clk_get_rate(priv->pclk) > 80000000UL); in stm32_dac_probe()
/Linux-v6.1/drivers/cpufreq/
Ds3c2410-cpufreq.c45 unsigned long hclk, fclk, pclk; in s3c2410_cpufreq_calcdivs() local
65 pdiv = (hclk > cfg->max.pclk) ? 2 : 1; in s3c2410_cpufreq_calcdivs()
66 pclk = hclk / pdiv; in s3c2410_cpufreq_calcdivs()
68 if (pclk > cfg->max.pclk) { in s3c2410_cpufreq_calcdivs()
69 s3c_freq_dbg("%s: pclk too big\n", __func__); in s3c2410_cpufreq_calcdivs()
86 .pclk = 50000000,
139 s3c2410_cpufreq_info.max.pclk = 66500000; in s3c2410a_cpufreq_add()
/Linux-v6.1/drivers/rtc/
Drtc-ftrtc010.c34 struct clk *pclk; member
123 rtc->pclk = devm_clk_get(dev, "PCLK"); in ftrtc010_rtc_probe()
124 if (IS_ERR(rtc->pclk)) { in ftrtc010_rtc_probe()
125 dev_err(dev, "could not get PCLK\n"); in ftrtc010_rtc_probe()
127 ret = clk_prepare_enable(rtc->pclk); in ftrtc010_rtc_probe()
129 dev_err(dev, "failed to enable PCLK\n"); in ftrtc010_rtc_probe()
190 clk_disable_unprepare(rtc->pclk); in ftrtc010_rtc_probe()
200 if (!IS_ERR(rtc->pclk)) in ftrtc010_rtc_remove()
201 clk_disable_unprepare(rtc->pclk); in ftrtc010_rtc_remove()
/Linux-v6.1/drivers/pwm/
Dpwm-rockchip.c35 struct clk *pclk; member
71 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state()
98 clk_disable(pc->pclk); in rockchip_pwm_get_state()
193 ret = clk_enable(pc->pclk); in rockchip_pwm_apply()
221 clk_disable(pc->pclk); in rockchip_pwm_apply()
327 pc->pclk = devm_clk_get(&pdev->dev, "pclk"); in rockchip_pwm_probe()
329 pc->pclk = pc->clk; in rockchip_pwm_probe()
331 if (IS_ERR(pc->pclk)) in rockchip_pwm_probe()
332 return dev_err_probe(&pdev->dev, PTR_ERR(pc->pclk), "Can't get APB clk\n"); in rockchip_pwm_probe()
338 ret = clk_prepare_enable(pc->pclk); in rockchip_pwm_probe()
[all …]
/Linux-v6.1/sound/soc/meson/
Daiu.c86 return clk_prepare_enable(aiu->i2s.clks[PCLK].clk); in aiu_cpu_component_probe()
93 clk_disable_unprepare(aiu->i2s.clks[PCLK].clk); in aiu_cpu_component_remove()
206 [PCLK] = "i2s_pclk",
213 [PCLK] = "spdif_pclk",
223 aiu->pclk = devm_clk_get(dev, "pclk"); in aiu_clk_get()
224 if (IS_ERR(aiu->pclk)) in aiu_clk_get()
225 return dev_err_probe(dev, PTR_ERR(aiu->pclk), "Can't get the aiu pclk\n"); in aiu_clk_get()
242 ret = clk_prepare_enable(aiu->pclk); in aiu_clk_get()
250 aiu->pclk); in aiu_clk_get()
252 dev_err(dev, "failed to add reset action on pclk"); in aiu_clk_get()
/Linux-v6.1/arch/riscv/boot/dts/canaan/
Dk210.dtsi260 clock-names = "ssi_clk", "pclk";
298 clock-names = "ref", "pclk";
308 clock-names = "ref", "pclk";
318 clock-names = "ref", "pclk";
327 clock-names = "ref", "pclk";
338 clock-names = "timer", "pclk";
348 clock-names = "timer", "pclk";
358 clock-names = "timer", "pclk";
368 clock-names = "timer", "pclk";
378 clock-names = "timer", "pclk";
[all …]

12345678910>>...28