Home
last modified time | relevance | path

Searched refs:refclk (Results 1 – 25 of 190) sorted by relevance

12345678

/linux/drivers/gpu/drm/i915/display/
H A Dintel_cdclk.c1314 u16 refclk; member
1320 { .refclk = 19200, .cdclk = 144000, .ratio = 60 },
1321 { .refclk = 19200, .cdclk = 288000, .ratio = 60 },
1322 { .refclk = 19200, .cdclk = 384000, .ratio = 60 },
1323 { .refclk = 19200, .cdclk = 576000, .ratio = 60 },
1324 { .refclk = 19200, .cdclk = 624000, .ratio = 65 },
1329 { .refclk = 19200, .cdclk = 79200, .ratio = 33 },
1330 { .refclk = 19200, .cdclk = 158400, .ratio = 33 },
1331 { .refclk = 19200, .cdclk = 316800, .ratio = 33 },
1336 { .refclk = 19200, .cdclk = 172800, .ratio = 18 },
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dpllgt215.c42 lM = (info->refclk + info->vco1.max_inputfreq) / info->vco1.max_inputfreq; in gt215_pll_calc()
44 hM = (info->refclk + info->vco1.min_inputfreq) / info->vco1.min_inputfreq; in gt215_pll_calc()
50 N = tmp / info->refclk; in gt215_pll_calc()
51 fN = tmp % info->refclk; in gt215_pll_calc()
54 if (fN >= info->refclk / 2) in gt215_pll_calc()
57 if (fN < info->refclk / 2) in gt215_pll_calc()
59 fN = tmp - (N * info->refclk); in gt215_pll_calc()
67 err = abs(freq - (info->refclk * N / M / *P)); in gt215_pll_calc()
75 *pfN = ((fN << 13) + info->refclk / 2) / info->refclk; in gt215_pll_calc()
86 return info->refclk * *pN / *pM / *P; in gt215_pll_calc()
/linux/arch/arm64/boot/dts/axiado/
H A Dax3000.dtsi100 refclk: clock-125000000 { label
131 clocks = <&refclk>;
144 clocks = <&refclk>;
157 clocks = <&refclk>;
170 clocks = <&refclk>;
183 clocks = <&refclk>;
196 clocks = <&refclk>;
209 clocks = <&refclk>;
222 clocks = <&refclk>;
236 clocks = <&refclk &clk_xin>;
[all …]
/linux/drivers/phy/ti/
H A Dphy-dm816x-usb.c46 struct clk *refclk; member
76 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init()
123 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_suspend()
134 error = clk_enable(phy->refclk); in dm816x_usb_phy_runtime_resume()
151 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_resume()
218 phy->refclk = devm_clk_get(phy->dev, "refclk"); in dm816x_usb_phy_probe()
219 if (IS_ERR(phy->refclk)) in dm816x_usb_phy_probe()
220 return PTR_ERR(phy->refclk); in dm816x_usb_phy_probe()
221 error = clk_prepare(phy->refclk); in dm816x_usb_phy_probe()
247 clk_unprepare(phy->refclk); in dm816x_usb_phy_probe()
[all …]
H A Dphy-ti-pipe3.c172 struct clk *refclk; member
608 phy->refclk = devm_clk_get(dev, "refclk"); in ti_pipe3_get_clk()
609 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk()
615 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk()
833 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe()
834 clk_prepare_enable(phy->refclk); in ti_pipe3_probe()
856 clk_disable_unprepare(phy->refclk); in ti_pipe3_remove()
866 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks()
867 ret = clk_prepare_enable(phy->refclk); in ti_pipe3_enable_clocks()
897 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks()
[all …]
/linux/drivers/phy/xilinx/
H A Dphy-zynqmp.c215 unsigned int refclk; member
406 clk = gtr_phy->dev->clk[gtr_phy->refclk]; in xpsgtr_find_sscs()
418 rate, gtr_phy->refclk); in xpsgtr_find_sscs()
439 if (gtr_phy->refclk == gtr_phy->lane) in xpsgtr_configure_pll()
444 L0_REF_CLK_SEL_MASK, 1 << gtr_phy->refclk); in xpsgtr_configure_pll()
666 if (clk_prepare_enable(gtr_dev->clk[gtr_phy->refclk])) in xpsgtr_phy_init()
721 clk_disable_unprepare(gtr_dev->clk[gtr_phy->refclk]); in xpsgtr_phy_exit()
825 unsigned int refclk; in xpsgtr_xlate() local
855 refclk = args->args[3]; in xpsgtr_xlate()
856 if (refclk >= ARRAY_SIZE(gtr_dev->clk)) { in xpsgtr_xlate()
[all …]
/linux/drivers/gpu/drm/gma500/
H A Dgma_display.h44 int target, int refclk,
49 void (*clock)(int refclk, struct gma_clock_t *clock);
50 const struct gma_limit_t *(*limit)(struct drm_crtc *crtc, int refclk);
83 extern const struct gma_limit_t *gma_limit(struct drm_crtc *crtc, int refclk);
88 struct drm_crtc *crtc, int target, int refclk,
H A Dcdv_intel_display.c26 int refclk, struct gma_clock_t *best_clock);
366 int refclk) in cdv_intel_limit() argument
374 if (refclk == 96000) in cdv_intel_limit()
380 if (refclk == 27000) in cdv_intel_limit()
385 if (refclk == 27000) in cdv_intel_limit()
394 static void cdv_intel_clock(int refclk, struct gma_clock_t *clock) in cdv_intel_clock() argument
398 clock->vco = (refclk * clock->m) / clock->n; in cdv_intel_clock()
404 int refclk, in cdv_intel_find_dp_pll() argument
412 switch (refclk) { in cdv_intel_find_dp_pll()
449 gma_crtc->clock_funcs->clock(refclk, &clock); in cdv_intel_find_dp_pll()
[all …]
H A Dpsb_intel_display.c58 int refclk) in psb_intel_limit() argument
69 static void psb_intel_clock(int refclk, struct gma_clock_t *clock) in psb_intel_clock() argument
73 clock->vco = refclk * clock->m / (clock->n + 2); in psb_intel_clock()
106 int refclk; in psb_intel_crtc_mode_set() local
145 refclk = 96000; in psb_intel_crtc_mode_set()
147 limit = gma_crtc->clock_funcs->limit(crtc, refclk); in psb_intel_crtc_mode_set()
149 ok = limit->find_pll(limit, crtc, adjusted_mode->clock, refclk, in psb_intel_crtc_mode_set()
H A Doaktrail_hdmi.c180 int refclk, struct oaktrail_hdmi_clock *best_clock) in oaktrail_hdmi_find_dpll() argument
192 nr_min = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_max)); in oaktrail_hdmi_find_dpll()
193 nr_max = DIV_ROUND_UP((refclk * 1000), (target * 10 * np_min)); in oaktrail_hdmi_find_dpll()
199 np = DIV_ROUND_UP((refclk * 1000), (target * 10 * nr_max)); in oaktrail_hdmi_find_dpll()
200 nr = DIV_ROUND_UP((refclk * 1000), (target * 10 * np)); in oaktrail_hdmi_find_dpll()
201 nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk); in oaktrail_hdmi_find_dpll()
284 int refclk; in oaktrail_crtc_hdmi_mode_set() local
308 refclk = 25000; in oaktrail_crtc_hdmi_mode_set()
309 oaktrail_hdmi_find_dpll(crtc, adjusted_mode->clock, refclk, &clock); in oaktrail_crtc_hdmi_mode_set()
/linux/Documentation/devicetree/bindings/usb/
H A Docteon-usb.txt24 - cavium,refclk-type: type of the USB reference clock. Allowed values are
27 - refclk-frequency: deprecated, use "clock-frequency".
29 - refclk-type: deprecated, use "cavium,refclk-type".
54 cavium,refclk-type = "crystal";
H A Ddwc3-cavium.txt18 refclk-frequency = <0x05f5e100>;
19 refclk-type-ss = "dlmc_ref_clk0";
20 refclk-type-hs = "dlmc_ref_clk0";
/linux/Documentation/devicetree/bindings/mips/cavium/
H A Ductl.txt16 - refclk-frequency: A single cell containing the reference clock
19 - refclk-type: A string describing the reference clock connection
30 refclk-frequency = <24000000>;
32 refclk-type = "crystal";
/linux/sound/soc/meson/
H A Daxg-spdifin.c55 struct clk *refclk; member
165 ret = clk_set_rate(priv->refclk, priv->conf->ref_rate); in axg_spdifin_sample_mode_config()
175 rate = clk_get_rate(priv->refclk); in axg_spdifin_sample_mode_config()
229 ret = clk_prepare_enable(priv->refclk); in axg_spdifin_dai_probe()
251 clk_disable_unprepare(priv->refclk); in axg_spdifin_dai_remove()
470 priv->refclk = devm_clk_get(dev, "refclk"); in axg_spdifin_probe()
471 if (IS_ERR(priv->refclk)) in axg_spdifin_probe()
472 return dev_err_probe(dev, PTR_ERR(priv->refclk), "failed to get mclk\n"); in axg_spdifin_probe()
/linux/arch/arm/boot/dts/synaptics/
H A Dberlin2cd.dtsi51 refclk: oscillator { label
389 clocks = <&refclk>;
390 clock-names = "refclk";
446 clocks = <&refclk>;
453 clocks = <&refclk>;
461 clocks = <&refclk>;
486 clocks = <&refclk>;
497 clocks = <&refclk>;
507 clocks = <&refclk>;
532 clocks = <&refclk>;
[all …]
H A Dberlin2.dtsi66 refclk: oscillator { label
384 clocks = <&refclk>;
385 clock-names = "refclk";
421 clocks = <&refclk>;
428 clocks = <&refclk>;
435 clocks = <&refclk>;
478 clocks = <&refclk>;
490 clocks = <&refclk>;
502 clocks = <&refclk>;
H A Dberlin2q.dtsi111 refclk: oscillator { label
421 clocks = <&refclk>;
422 clock-names = "refclk";
527 clocks = <&refclk>;
534 clocks = <&refclk>;
541 clocks = <&refclk>;
566 clocks = <&refclk>;
578 clocks = <&refclk>;
588 clocks = <&refclk>;
599 clocks = <&refclk>;
/linux/drivers/net/ethernet/ti/
H A Dcpts.c559 err = clk_enable(cpts->refclk); in cpts_register()
580 clk_disable(cpts->refclk); in cpts_register()
600 clk_disable(cpts->refclk); in cpts_unregister()
609 freq = clk_get_rate(cpts->refclk); in cpts_calc_mult_shift()
767 cpts->refclk = devm_get_clk_from_child(dev, node, "cpts"); in cpts_create()
768 if (IS_ERR(cpts->refclk)) in cpts_create()
770 cpts->refclk = devm_clk_get(dev, "cpts"); in cpts_create()
772 if (IS_ERR(cpts->refclk)) { in cpts_create()
774 PTR_ERR(cpts->refclk)); in cpts_create()
775 return ERR_CAST(cpts->refclk); in cpts_create()
[all …]
/linux/drivers/phy/
H A Dphy-pistachio-usb.c38 unsigned int refclk; member
68 p_phy->refclk << USB_PHY_STRAP_CONTROL_REFCLK_SHIFT); in pistachio_usb_phy_power_on()
71 if (p_phy->refclk == REFCLK_XO_CRYSTAL && rate != 12000000) { in pistachio_usb_phy_power_on()
161 &p_phy->refclk); in pistachio_usb_phy_probe()
/linux/arch/arm/boot/dts/ti/keystone/
H A Dkeystone-k2hk-evm.dts59 clock-output-names = "refclk-sys";
66 clock-output-names = "refclk-pass";
73 clock-output-names = "refclk-arm";
80 clock-output-names = "refclk-ddr3a";
87 clock-output-names = "refclk-ddr3b";
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dpll.c327 info->refclk = nvbios_rd32(bios, data + 31); in nvbios_pll_parse()
350 info->refclk = nvbios_rd32(bios, data + 28); in nvbios_pll_parse()
353 info->refclk = nvbios_rd16(bios, data + 9) * 1000; in nvbios_pll_parse()
368 info->refclk = nvbios_rd16(bios, data + 1) * 1000; in nvbios_pll_parse()
386 if (!info->refclk) { in nvbios_pll_parse()
387 info->refclk = device->crystal; in nvbios_pll_parse()
393 info->refclk = 200000; in nvbios_pll_parse()
395 info->refclk = 25000; in nvbios_pll_parse()
/linux/drivers/spi/
H A Dspi-zynqmp-gqspi.c193 struct clk *refclk; member
293 clk_rate = clk_get_rate(xqspi->refclk); in zynqmp_qspi_set_tapdelay()
402 clk_rate = clk_get_rate(xqspi->refclk); in zynqmp_qspi_init_hw()
567 clk_rate = clk_get_rate(xqspi->refclk); in zynqmp_qspi_config_op()
986 clk_disable_unprepare(xqspi->refclk); in zynqmp_runtime_suspend()
1011 ret = clk_prepare_enable(xqspi->refclk); in zynqmp_runtime_resume()
1252 xqspi->refclk = devm_clk_get(&pdev->dev, "ref_clk"); in zynqmp_qspi_probe()
1253 if (IS_ERR(xqspi->refclk)) in zynqmp_qspi_probe()
1254 return dev_err_probe(dev, PTR_ERR(xqspi->refclk), in zynqmp_qspi_probe()
1261 ret = clk_prepare_enable(xqspi->refclk); in zynqmp_qspi_probe()
[all …]
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Dpll.h20 int refclk; member
47 u32 refclk; member
/linux/arch/mips/boot/dts/cavium-octeon/
H A Ddlink_dsr-500n-1000n.dtsi47 refclk-frequency = <12000000>;
48 refclk-type = "crystal";
/linux/drivers/media/dvb-frontends/
H A Dstv6110x.h16 u32 refclk; member
42 int (*tuner_set_refclk) (struct dvb_frontend *fe, u32 refclk);

12345678