/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
D | pllgt215.c | 42 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-v4.19/drivers/phy/ti/ |
D | phy-dm816x-usb.c | 56 struct clk *refclk; member 87 if (clk_get_rate(phy->refclk) != 24000000) in dm816x_usb_phy_init() 134 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_suspend() 145 error = clk_enable(phy->refclk); in dm816x_usb_phy_runtime_resume() 162 clk_disable(phy->refclk); in dm816x_usb_phy_runtime_resume() 240 phy->refclk = devm_clk_get(phy->dev, "refclk"); in dm816x_usb_phy_probe() 241 if (IS_ERR(phy->refclk)) in dm816x_usb_phy_probe() 242 return PTR_ERR(phy->refclk); in dm816x_usb_phy_probe() 243 error = clk_prepare(phy->refclk); in dm816x_usb_phy_probe() 270 clk_unprepare(phy->refclk); in dm816x_usb_phy_remove()
|
D | phy-ti-pipe3.c | 134 struct clk *refclk; member 448 phy->refclk = devm_clk_get(dev, "refclk"); in ti_pipe3_get_clk() 449 if (IS_ERR(phy->refclk)) { in ti_pipe3_get_clk() 455 return PTR_ERR(phy->refclk); in ti_pipe3_get_clk() 676 if (!IS_ERR(phy->refclk)) { in ti_pipe3_probe() 677 clk_prepare_enable(phy->refclk); in ti_pipe3_probe() 705 if (!IS_ERR(phy->refclk)) { in ti_pipe3_enable_clocks() 706 ret = clk_prepare_enable(phy->refclk); in ti_pipe3_enable_clocks() 736 if (!IS_ERR(phy->refclk)) in ti_pipe3_enable_clocks() 737 clk_disable_unprepare(phy->refclk); in ti_pipe3_enable_clocks() [all …]
|
/Linux-v4.19/drivers/gpu/drm/gma500/ |
D | gma_display.h | 52 int target, int refclk, 57 void (*clock)(int refclk, struct gma_clock_t *clock); 58 const struct gma_limit_t *(*limit)(struct drm_crtc *crtc, int refclk); 94 extern const struct gma_limit_t *gma_limit(struct drm_crtc *crtc, int refclk); 95 extern void gma_clock(int refclk, struct gma_clock_t *clock); 100 struct drm_crtc *crtc, int target, int refclk,
|
D | cdv_intel_display.c | 34 int refclk, struct gma_clock_t *best_clock); 374 int refclk) in cdv_intel_limit() argument 382 if (refclk == 96000) in cdv_intel_limit() 388 if (refclk == 27000) in cdv_intel_limit() 393 if (refclk == 27000) in cdv_intel_limit() 402 static void cdv_intel_clock(int refclk, struct gma_clock_t *clock) in cdv_intel_clock() argument 406 clock->vco = (refclk * clock->m) / clock->n; in cdv_intel_clock() 412 int refclk, in cdv_intel_find_dp_pll() argument 418 switch (refclk) { in cdv_intel_find_dp_pll() 455 gma_crtc->clock_funcs->clock(refclk, &clock); in cdv_intel_find_dp_pll() [all …]
|
D | oaktrail_crtc.c | 48 int refclk, struct gma_clock_t *best_clock); 52 int refclk, struct gma_clock_t *best_clock); 91 int refclk) in mrst_limit() argument 121 static void mrst_lvds_clock(int refclk, struct gma_clock_t *clock) in mrst_lvds_clock() argument 123 clock->dot = (refclk * clock->m) / (14 * clock->p1); in mrst_lvds_clock() 135 int refclk, struct gma_clock_t *best_clock) in mrst_sdvo_find_best_pll() argument 159 actual_freq = (refclk * clock.m) / in mrst_sdvo_find_best_pll() 192 int refclk, struct gma_clock_t *best_clock) in mrst_lvds_find_best_pll() argument 204 mrst_lvds_clock(refclk, &clock); in mrst_lvds_find_best_pll() 375 int refclk = 0; in oaktrail_crtc_mode_set() local [all …]
|
/Linux-v4.19/drivers/net/ethernet/arc/ |
D | emac_rockchip.c | 42 struct clk *refclk; member 155 priv->refclk = devm_clk_get(dev, "macref"); in emac_rockchip_probe() 156 if (IS_ERR(priv->refclk)) { in emac_rockchip_probe() 158 PTR_ERR(priv->refclk)); in emac_rockchip_probe() 159 err = PTR_ERR(priv->refclk); in emac_rockchip_probe() 163 err = clk_prepare_enable(priv->refclk); in emac_rockchip_probe() 203 err = clk_set_rate(priv->refclk, 50000000); in emac_rockchip_probe() 249 clk_disable_unprepare(priv->refclk); in emac_rockchip_probe() 263 clk_disable_unprepare(priv->refclk); in emac_rockchip_remove()
|
/Linux-v4.19/Documentation/devicetree/bindings/usb/ |
D | octeon-usb.txt | 24 - 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";
|
D | dwc3-cavium.txt | 18 refclk-frequency = <0x05f5e100>; 19 refclk-type-ss = "dlmc_ref_clk0"; 20 refclk-type-hs = "dlmc_ref_clk0";
|
D | usb3503.txt | 18 - refclk: Clock used for driving REFCLK signal (optional, if not provided 23 - refclk-frequency: Frequency of the REFCLK signal as defined by REF_SEL 38 clock-names = "refclk";
|
/Linux-v4.19/Documentation/devicetree/bindings/mips/cavium/ |
D | uctl.txt | 16 - 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-v4.19/arch/arm/boot/dts/ |
D | berlin2cd.dtsi | 51 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 …]
|
D | keystone-k2hk-evm.dts | 59 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";
|
D | berlin2.dtsi | 66 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>;
|
D | berlin2q.dtsi | 111 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-v4.19/drivers/spi/ |
D | spi-zynqmp-gqspi.c | 162 struct clk *refclk; member 467 clk_rate = clk_get_rate(xqspi->refclk); in zynqmp_qspi_setup_transfer() 939 ret = clk_enable(xqspi->refclk); in zynqmp_qspi_resume() 948 clk_disable(xqspi->refclk); in zynqmp_qspi_resume() 967 clk_disable(xqspi->refclk); in zynqmp_runtime_suspend() 994 ret = clk_enable(xqspi->refclk); in zynqmp_runtime_resume() 1055 xqspi->refclk = devm_clk_get(&pdev->dev, "ref_clk"); in zynqmp_qspi_probe() 1056 if (IS_ERR(xqspi->refclk)) { in zynqmp_qspi_probe() 1058 ret = PTR_ERR(xqspi->refclk); in zynqmp_qspi_probe() 1062 ret = clk_prepare_enable(xqspi->refclk); in zynqmp_qspi_probe() [all …]
|
/Linux-v4.19/Documentation/devicetree/bindings/clock/ |
D | marvell,berlin.txt | 18 "refclk" for the SoCs oscillator input on all SoCs, 29 clocks = <&refclk>; 30 clock-names = "refclk";
|
/Linux-v4.19/drivers/phy/ |
D | phy-pistachio-usb.c | 41 unsigned int refclk; member 71 p_phy->refclk << USB_PHY_STRAP_CONTROL_REFCLK_SHIFT); in pistachio_usb_phy_power_on() 74 if (p_phy->refclk == REFCLK_XO_CRYSTAL && rate != 12000000) { in pistachio_usb_phy_power_on() 164 &p_phy->refclk); in pistachio_usb_phy_probe()
|
/Linux-v4.19/drivers/net/ethernet/ti/ |
D | cpts.c | 450 clk_enable(cpts->refclk); in cpts_register() 469 clk_disable(cpts->refclk); in cpts_register() 488 clk_disable(cpts->refclk); in cpts_unregister() 497 freq = clk_get_rate(cpts->refclk); in cpts_calc_mult_shift() 569 cpts->refclk = devm_clk_get(dev, "cpts"); in cpts_create() 570 if (IS_ERR(cpts->refclk)) { in cpts_create() 572 return ERR_CAST(cpts->refclk); in cpts_create() 575 clk_prepare(cpts->refclk); in cpts_create() 596 if (WARN_ON(!cpts->refclk)) in cpts_release() 599 clk_unprepare(cpts->refclk); in cpts_release()
|
/Linux-v4.19/drivers/soc/xilinx/ |
D | xlnx_vcu.c | 296 u32 refclk, coreclk, mcuclk, inte, deci; in xvcu_set_vcu_pll_info() local 312 refclk = (inte * MHZ) + (deci * (MHZ / FRAC)); in xvcu_set_vcu_pll_info() 313 dev_dbg(xvcu->dev, "Ref clock from logicoreIP is %uHz\n", refclk); in xvcu_set_vcu_pll_info() 318 ret = clk_set_rate(xvcu->pll_ref, refclk); in xvcu_set_vcu_pll_info() 328 refclk = clk_get_rate(xvcu->pll_ref); in xvcu_set_vcu_pll_info() 346 fvco = cfg->fbdiv * refclk; in xvcu_set_vcu_pll_info() 379 dev_dbg(xvcu->dev, "Actual Ref clock freq is %uHz\n", refclk); in xvcu_set_vcu_pll_info()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | pll.c | 327 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-v4.19/Documentation/devicetree/bindings/serial/ |
D | brcm,bcm6345-uart.txt | 17 - clock-names: Should be "refclk". 27 clock-names = "refclk";
|
/Linux-v4.19/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
D | pll.h | 20 int refclk; member 47 u32 refclk; member
|
/Linux-v4.19/drivers/gpu/drm/bridge/ |
D | tc358767.c | 213 struct clk *refclk; member 407 static int tc_pxl_pll_en(struct tc_data *tc, u32 refclk, u32 pixelclock) in tc_pxl_pll_en() argument 420 refclk); in tc_pxl_pll_en() 428 if (refclk / ext_div[i_pre] < 1000000) in tc_pxl_pll_en() 437 do_div(tmp, refclk); in tc_pxl_pll_en() 444 clk = (refclk / ext_div[i_pre] / div) * mul; in tc_pxl_pll_en() 474 dev_dbg(tc->dev, "PLL: %d / %d / %d * %d / %d\n", refclk, in tc_pxl_pll_en() 478 if (refclk / ext_div[best_pre] / best_div * best_mul >= 300000000) in tc_pxl_pll_en() 544 rate = clk_get_rate(tc->refclk); in tc_aux_link_setup() 839 rate = clk_get_rate(tc->refclk); in tc_main_link_setup() [all …]
|
/Linux-v4.19/drivers/media/dvb-frontends/ |
D | stv6110x.h | 28 u32 refclk; member 51 int (*tuner_set_refclk) (struct dvb_frontend *fe, u32 refclk);
|