Home
last modified time | relevance | path

Searched full:gclk (Results 1 – 25 of 29) sorted by relevance

12

/Linux-v5.10/drivers/clocksource/
Dtimer-microchip-pit64b.c54 * @gclk: PIT64B's generic clock
60 struct clk *gclk; member
165 clk_disable_unprepare(timer->gclk); in mchp_pit64b_clkevt_suspend()
175 clk_prepare_enable(timer->gclk); in mchp_pit64b_clkevt_resume()
210 * PIT64B timer may be fed by gclk or pclk. When gclk is used its rate has to
211 * be at least 3 times lower that pclk's rate. pclk rate is fixed, gclk rate
212 * could be changed via clock APIs. The chosen clock (pclk or gclk) could be
215 * This function, first tries to use GCLK by requesting the desired rate from
217 * requested rate. If PCLK/GCLK < 3 (condition requested by PIT64B hardware)
227 * | |-->gclk -->|-->| | +---------+ +-----+ |
[all …]
/Linux-v5.10/sound/soc/atmel/
Dmchp-i2s-mcc.c234 struct clk *gclk; member
425 ret = mchp_i2s_mcc_clk_get_rate_diff(dev->gclk, clk_rate, in mchp_i2s_mcc_config_divs()
429 dev_err(dev->dev, "gclk error for rate %lu: %d", in mchp_i2s_mcc_config_divs()
433 dev_dbg(dev->dev, "found perfect rate on gclk: %lu\n", in mchp_i2s_mcc_config_divs()
461 best_clk == dev->pclk ? "pclk" : "gclk", in mchp_i2s_mcc_config_divs()
469 if (best_clk == dev->gclk) in mchp_i2s_mcc_config_divs()
657 ret = clk_set_rate(dev->gclk, rate); in mchp_i2s_mcc_hw_params()
660 "unable to set rate %lu to GCLK: %d\n", in mchp_i2s_mcc_hw_params()
665 ret = clk_prepare(dev->gclk); in mchp_i2s_mcc_hw_params()
667 dev_err(dev->dev, "unable to prepare GCLK: %d\n", ret); in mchp_i2s_mcc_hw_params()
[all …]
Datmel-classd.c31 struct clk *gclk; member
130 err = clk_prepare_enable(dd->gclk); in atmel_classd_cpu_dai_startup()
365 clk_disable_unprepare(dd->gclk); in atmel_classd_cpu_dai_hw_params()
367 ret = clk_set_rate(dd->gclk, sample_rates[best].gclk_rate); in atmel_classd_cpu_dai_hw_params()
377 return clk_prepare_enable(dd->gclk); in atmel_classd_cpu_dai_hw_params()
387 clk_disable_unprepare(dd->gclk); in atmel_classd_cpu_dai_shutdown()
554 dd->gclk = devm_clk_get(dev, "gclk"); in atmel_classd_probe()
555 if (IS_ERR(dd->gclk)) { in atmel_classd_probe()
556 ret = PTR_ERR(dd->gclk); in atmel_classd_probe()
Datmel-i2s.c197 struct clk *gclk; member
294 if (!dev->gclk) { in atmel_i2s_get_gck_param()
434 clk_disable_unprepare(dev->gclk); in atmel_i2s_switch_mck_generator()
444 ret = clk_set_rate(dev->gclk, gclk_rate); in atmel_i2s_switch_mck_generator()
448 ret = clk_prepare_enable(dev->gclk); in atmel_i2s_switch_mck_generator()
557 if (!dev->gclk) in atmel_i2s_sama5d2_mck_init()
571 return clk_set_parent(muxclk, dev->gclk); in atmel_i2s_sama5d2_mck_init()
643 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in atmel_i2s_probe()
644 if (IS_ERR(dev->gclk)) { in atmel_i2s_probe()
645 if (PTR_ERR(dev->gclk) == -EPROBE_DEFER) in atmel_i2s_probe()
[all …]
Datmel-pdmic.c31 struct clk *gclk; member
111 ret = clk_prepare_enable(dd->gclk); in atmel_pdmic_cpu_dai_startup()
117 clk_disable_unprepare(dd->gclk); in atmel_pdmic_cpu_dai_startup()
141 clk_disable_unprepare(dd->gclk); in atmel_pdmic_cpu_dai_shutdown()
406 gclk_rate = clk_get_rate(dd->gclk); in atmel_pdmic_cpu_dai_hw_params()
532 u32 clk_min_rate = (u32)(clk_get_rate(dd->gclk) >> 8); in atmel_pdmic_get_sample_rate()
607 dd->gclk = devm_clk_get(dev, "gclk"); in atmel_pdmic_probe()
608 if (IS_ERR(dd->gclk)) { in atmel_pdmic_probe()
609 ret = PTR_ERR(dd->gclk); in atmel_pdmic_probe()
614 /* The gclk clock frequency must always be three times in atmel_pdmic_probe()
[all …]
Dmchp-spdiftx.c197 struct clk *gclk; member
492 clk_disable_unprepare(dev->gclk); in mchp_spdiftx_hw_params()
495 ret = clk_set_rate(dev->gclk, params_rate(params) * in mchp_spdiftx_hw_params()
499 "unable to change gclk rate to: rate %u * ratio %u\n", in mchp_spdiftx_hw_params()
503 ret = clk_prepare_enable(dev->gclk); in mchp_spdiftx_hw_params()
505 dev_err(dev->dev, "unable to enable gclk: %d\n", ret); in mchp_spdiftx_hw_params()
509 dev_dbg(dev->dev, "%s(): GCLK set to %d\n", __func__, in mchp_spdiftx_hw_params()
529 clk_disable_unprepare(dev->gclk); in mchp_spdiftx_hw_free()
819 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_spdiftx_probe()
820 if (IS_ERR(dev->gclk)) { in mchp_spdiftx_probe()
[all …]
Dmchp-spdifrx.c239 struct clk *gclk; member
447 clk_disable_unprepare(dev->gclk); in mchp_spdifrx_hw_params()
450 ret = clk_set_min_rate(dev->gclk, params_rate(params) * in mchp_spdifrx_hw_params()
454 "unable to set gclk min rate: rate %u * ratio %u + 1\n", in mchp_spdifrx_hw_params()
458 ret = clk_prepare_enable(dev->gclk); in mchp_spdifrx_hw_params()
460 dev_err(dev->dev, "unable to enable gclk: %d\n", ret); in mchp_spdifrx_hw_params()
465 dev_dbg(dev->dev, "GCLK range min set to %d\n", in mchp_spdifrx_hw_params()
477 clk_disable_unprepare(dev->gclk); in mchp_spdifrx_hw_free()
693 rate = clk_get_rate(dev->gclk); in mchp_spdifrx_rate_get()
905 dev->gclk = devm_clk_get(&pdev->dev, "gclk"); in mchp_spdifrx_probe()
[all …]
/Linux-v5.10/arch/arm/boot/dts/
Demev2.dtsi78 compatible = "renesas,emev2-smu-gclk";
90 compatible = "renesas,emev2-smu-gclk";
127 compatible = "renesas,emev2-smu-gclk";
133 compatible = "renesas,emev2-smu-gclk";
139 compatible = "renesas,emev2-smu-gclk";
145 compatible = "renesas,emev2-smu-gclk";
151 compatible = "renesas,emev2-smu-gclk";
Dsama5d2.dtsi391 clock-names = "t0_clk", "gclk", "slow_clk";
401 clock-names = "t0_clk", "gclk", "slow_clk";
429 clock-names = "pclk", "gclk";
719 clock-names = "pclk", "gclk";
1109 clock-names = "pclk", "gclk";
1125 clock-names = "pclk", "gclk";
Dsam9x60.dtsi241 clock-names = "pclk", "gclk";
270 clock-names = "pclk", "gclk";
335 clock-names = "pclk", "gclk";
Dsun7i-a20-bananapi.dts246 "", "", "", "IO-GCLK", "", "", "", "",
/Linux-v5.10/Documentation/devicetree/bindings/clock/
Drenesas,emev2-smu.txt32 - compatible: Should be "renesas,emev2-smu-gclk"
47 compatible = "renesas,emev2-smu-gclk";
93 compatible = "renesas,emev2-smu-gclk";
/Linux-v5.10/Documentation/devicetree/bindings/sound/
Datmel-classd.txt16 Required elements: "pclk" and "gclk".
47 clock-names = "pclk", "gclk";
Datmel-pdmic.txt17 - "gclk" generated clock
47 clock-names = "pclk", "gclk";
Dmchp,spdifrx.yaml37 - const: gclk
72 clock-names = "pclk", "gclk";
Dmchp,spdiftx.yaml37 - const: gclk
72 clock-names = "pclk", "gclk";
Dmchp-i2s-mcc.txt16 - "gclk" (generated clock) Optional (1).
40 clock-names = "pclk", "gclk";
Datmel-i2s.txt17 - "gclk" (generated clock) Optional (1).
43 clock-names = "pclk", "gclk", "muxclk";
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dnv40.c149 int gclk = cstate->domain[nv_clk_src_core]; in nv40_clk_calc() local
155 ret = nv40_clk_calc_pll(clk, 0x004000, gclk, in nv40_clk_calc()
169 if (sclk && sclk != gclk) { in nv40_clk_calc()
/Linux-v5.10/drivers/clk/at91/
Dclk-generated.c42 pr_debug("GCLK: %s, gckdiv = %d, parent id = %d\n", in clk_generated_enable()
185 pr_debug("GCLK: %s, best_rate = %ld, parent clk: %s @ %ld\n", in clk_generated_determine_rate()
/Linux-v5.10/drivers/clk/renesas/
Dclk-emev2.c98 CLK_OF_DECLARE(emev2_smu_gclk, "renesas,emev2-smu-gclk", emev2_smu_gclk_init);
/Linux-v5.10/Documentation/devicetree/bindings/soc/microchip/
Datmel,at91rm9200-tcb.yaml90 - const: gclk
/Linux-v5.10/Documentation/devicetree/bindings/interrupt-controller/
Darm,gic.yaml129 - const: gclk #for "arm,pl390"
/Linux-v5.10/drivers/w1/masters/
Dds1wm.c297 static int ds1wm_find_divisor(int gclk) in ds1wm_find_divisor() argument
302 if (gclk >= freq[i].freq) in ds1wm_find_divisor()
/Linux-v5.10/drivers/counter/
Dmicrochip-tcb-capture.c113 /* Set highest rate based on whether soc has gclk or not */ in mchp_tc_count_function_set()

12