Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-imx-gpt.c66 struct clk *clk_per; member
154 unsigned int c = clk_get_rate(imxtm->clk_per); in mxc_clocksource_init()
285 clockevents_config_and_register(ced, clk_get_rate(imxtm->clk_per), in mxc_clockevent_init()
306 if (clk_get_rate(imxtm->clk_per) == V2_TIMER_RATE_OSC_DIV8) in imx31_gpt_setup_tctl()
319 if (clk_get_rate(imxtm->clk_per) == V2_TIMER_RATE_OSC_DIV8) { in imx6dl_gpt_setup_tctl()
396 if (IS_ERR(imxtm->clk_per)) { in _mxc_timer_init()
398 return PTR_ERR(imxtm->clk_per); in _mxc_timer_init()
404 clk_prepare_enable(imxtm->clk_per); in _mxc_timer_init()
430 imxtm->clk_per = clk_get_sys("imx-gpt.0", "per"); in mxc_timer_init()
467 imxtm->clk_per = of_clk_get_by_name(np, "osc_per"); in mxc_timer_init_dt()
[all …]
/kernel/linux/linux-5.10/drivers/pwm/
Dpwm-imx1.c30 struct clk *clk_per; member
46 ret = clk_prepare_enable(imx->clk_per); in pwm_imx1_clk_prepare_enable()
59 clk_disable_unprepare(imx->clk_per); in pwm_imx1_clk_disable_unprepare()
154 imx->clk_per = devm_clk_get(&pdev->dev, "per"); in pwm_imx1_probe()
155 if (IS_ERR(imx->clk_per)) { in pwm_imx1_probe()
156 int ret = PTR_ERR(imx->clk_per); in pwm_imx1_probe()
Dpwm-imx27.c84 struct clk *clk_per; member
106 ret = clk_prepare_enable(imx->clk_per); in pwm_imx27_clk_prepare_enable()
117 clk_disable_unprepare(imx->clk_per); in pwm_imx27_clk_disable_unprepare()
152 pwm_clk = clk_get_rate(imx->clk_per); in pwm_imx27_get_state()
228 clkrate = clk_get_rate(imx->clk_per); in pwm_imx27_apply()
329 imx->clk_per = devm_clk_get(&pdev->dev, "per"); in pwm_imx27_probe()
330 if (IS_ERR(imx->clk_per)) { in pwm_imx27_probe()
331 int ret = PTR_ERR(imx->clk_per); in pwm_imx27_probe()
/kernel/linux/linux-5.10/drivers/mmc/host/
Dsdhci-esdhc-mcf.c28 struct clk *clk_per; member
438 mcf_data->clk_per = devm_clk_get(&pdev->dev, "per"); in sdhci_esdhc_mcf_probe()
439 if (IS_ERR(mcf_data->clk_per)) { in sdhci_esdhc_mcf_probe()
440 err = PTR_ERR(mcf_data->clk_per); in sdhci_esdhc_mcf_probe()
444 pltfm_host->clk = mcf_data->clk_per; in sdhci_esdhc_mcf_probe()
446 err = clk_prepare_enable(mcf_data->clk_per); in sdhci_esdhc_mcf_probe()
485 clk_disable_unprepare(mcf_data->clk_per); in sdhci_esdhc_mcf_probe()
502 clk_disable_unprepare(mcf_data->clk_per); in sdhci_esdhc_mcf_remove()
Dmxcmmc.c144 struct clk *clk_per; member
794 unsigned int clk_in = clk_get_rate(host->clk_per); in mxcmci_set_clk_rate()
1091 host->clk_per = devm_clk_get(&pdev->dev, "per"); in mxcmci_probe()
1092 if (IS_ERR(host->clk_per)) { in mxcmci_probe()
1093 ret = PTR_ERR(host->clk_per); in mxcmci_probe()
1097 ret = clk_prepare_enable(host->clk_per); in mxcmci_probe()
1115 mmc->f_min = clk_get_rate(host->clk_per) >> 16; in mxcmci_probe()
1116 mmc->f_max = clk_get_rate(host->clk_per) >> 1; in mxcmci_probe()
1181 clk_disable_unprepare(host->clk_per); in mxcmci_probe()
1202 clk_disable_unprepare(host->clk_per); in mxcmci_remove()
[all …]
Dsdhci-esdhc-imx.c286 struct clk *clk_per; member
1651 imx_data->clk_per = devm_clk_get(&pdev->dev, "per"); in sdhci_esdhc_imx_probe()
1652 if (IS_ERR(imx_data->clk_per)) { in sdhci_esdhc_imx_probe()
1653 err = PTR_ERR(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1657 pltfm_host->clk = imx_data->clk_per; in sdhci_esdhc_imx_probe()
1659 err = clk_prepare_enable(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1756 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1778 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_remove()
1875 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_runtime_suspend()
1896 clk_set_rate(imx_data->clk_per, pltfm_host->clock); in sdhci_esdhc_runtime_resume()
[all …]
/kernel/linux/linux-5.10/drivers/usb/chipidea/
Dci_hdrc_imx.c102 struct clk *clk_per; member
209 data->clk_per = devm_clk_get(dev, "per"); in imx_get_clks()
210 if (IS_ERR(data->clk_per)) { in imx_get_clks()
211 ret = PTR_ERR(data->clk_per); in imx_get_clks()
244 ret = clk_prepare_enable(data->clk_per); in imx_prepare_enable_clks()
271 clk_disable_unprepare(data->clk_per); in imx_disable_unprepare_clks()
/kernel/linux/linux-5.10/drivers/spi/
Dspi-fsl-lpspi.c99 struct clk *clk_per; member
303 perclk_rate = clk_get_rate(fsl_lpspi->clk_per); in fsl_lpspi_set_bitrate()
778 ret = clk_prepare_enable(fsl_lpspi->clk_per); in fsl_lpspi_runtime_resume()
784 clk_disable_unprepare(fsl_lpspi->clk_per); in fsl_lpspi_runtime_resume()
798 clk_disable_unprepare(fsl_lpspi->clk_per); in fsl_lpspi_runtime_suspend()
879 fsl_lpspi->clk_per = devm_clk_get(&pdev->dev, "per"); in fsl_lpspi_probe()
880 if (IS_ERR(fsl_lpspi->clk_per)) { in fsl_lpspi_probe()
881 ret = PTR_ERR(fsl_lpspi->clk_per); in fsl_lpspi_probe()
Dspi-imx.c91 struct clk *clk_per; member
1693 spi_imx->clk_per = devm_clk_get(&pdev->dev, "per"); in spi_imx_probe()
1694 if (IS_ERR(spi_imx->clk_per)) { in spi_imx_probe()
1695 ret = PTR_ERR(spi_imx->clk_per); in spi_imx_probe()
1699 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_probe()
1713 spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per); in spi_imx_probe()
1754 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_probe()
1796 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_runtime_resume()
1802 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_resume()
1816 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_suspend()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-mpc.c74 struct clk *clk_per; member
799 i2c->clk_per = clk; in fsl_i2c_probe()
849 if (i2c->clk_per) in fsl_i2c_probe()
850 clk_disable_unprepare(i2c->clk_per); in fsl_i2c_probe()
866 if (i2c->clk_per) in fsl_i2c_remove()
867 clk_disable_unprepare(i2c->clk_per); in fsl_i2c_remove()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Dimxfb.c147 struct clk *clk_per; member
386 lcd_clk = clk_get_rate(fbi->clk_per); in imxfb_check_var()
518 ret = clk_prepare_enable(fbi->clk_per); in imxfb_enable_controller()
542 clk_disable_unprepare(fbi->clk_per); in imxfb_disable_controller()
978 fbi->clk_per = devm_clk_get(&pdev->dev, "per"); in imxfb_probe()
979 if (IS_ERR(fbi->clk_per)) { in imxfb_probe()
980 ret = PTR_ERR(fbi->clk_per); in imxfb_probe()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/
Di2c-axxia.txt27 clocks = <&clk_per>;
/kernel/linux/linux-5.10/include/linux/
Dfs_enet_pd.h147 struct clk *clk_per; /* 'per' clock for register access */ member
/kernel/linux/linux-5.10/drivers/net/can/
Dflexcan.c356 struct clk *clk_per; member
605 err = clk_prepare_enable(priv->clk_per); in flexcan_clks_enable()
614 clk_disable_unprepare(priv->clk_per); in flexcan_clks_disable()
1943 struct clk *clk_ipg = NULL, *clk_per = NULL; in flexcan_probe() local
1971 clk_per = devm_clk_get(&pdev->dev, "per"); in flexcan_probe()
1972 if (IS_ERR(clk_per)) { in flexcan_probe()
1974 return PTR_ERR(clk_per); in flexcan_probe()
1976 clock_freq = clk_get_rate(clk_per); in flexcan_probe()
2034 priv->clk_per = clk_per; in flexcan_probe()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dimx.c209 struct clk *clk_per; member
1422 retval = clk_prepare_enable(sport->clk_per); in imx_uart_startup()
1427 clk_disable_unprepare(sport->clk_per); in imx_uart_startup()
1587 clk_disable_unprepare(sport->clk_per); in imx_uart_shutdown()
1863 retval = clk_prepare_enable(sport->clk_per); in imx_uart_poll_init()
2090 uartclk = clk_get_rate(sport->clk_per); in imx_uart_console_get_options()
2154 retval = clk_prepare_enable(sport->clk_per); in imx_uart_console_setup()
2339 sport->clk_per = devm_clk_get(&pdev->dev, "per"); in imx_uart_probe()
2340 if (IS_ERR(sport->clk_per)) { in imx_uart_probe()
2341 ret = PTR_ERR(sport->clk_per); in imx_uart_probe()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c974 fpi->clk_per = clk; in fs_enet_probe()
1049 clk_disable_unprepare(fpi->clk_per); in fs_enet_probe()
1070 clk_disable_unprepare(fep->fpi->clk_per); in fs_enet_remove()
/kernel/linux/linux-5.10/drivers/media/platform/coda/
Dcoda-common.c2653 ret = clk_prepare_enable(dev->clk_per); in coda_open()
2693 clk_disable_unprepare(dev->clk_per); in coda_open()
2732 clk_disable_unprepare(dev->clk_per); in coda_release()
2760 ret = clk_prepare_enable(dev->clk_per); in coda_hw_init()
2843 clk_disable_unprepare(dev->clk_per); in coda_hw_init()
2848 clk_disable_unprepare(dev->clk_per); in coda_hw_init()
3134 dev->clk_per = devm_clk_get(&pdev->dev, "per"); in coda_probe()
3135 if (IS_ERR(dev->clk_per)) { in coda_probe()
3137 return PTR_ERR(dev->clk_per); in coda_probe()
Dcoda.h79 struct clk *clk_per; member
Dcoda-bit.c943 ret = clk_prepare_enable(dev->clk_per); in coda_check_firmware()
975 clk_disable_unprepare(dev->clk_per); in coda_check_firmware()
1003 clk_disable_unprepare(dev->clk_per); in coda_check_firmware()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0022_linux_drivers_i2c.patch1148 + struct clk *clk_per;
1231 + clk_rate = clk_get_rate(lpi2c_imx->clk_per);
1233 + dev_dbg(&lpi2c_imx->adapter.dev, "clk_per rate is 0\n");
1682 + lpi2c_imx->clk_per = devm_clk_get(&pdev->dev, "per");
1683 + if (IS_ERR(lpi2c_imx->clk_per)) {
1686 + return PTR_ERR(lpi2c_imx->clk_per);
1768 + clk_disable_unprepare(lpi2c_imx->clk_per);
1778 + ret = clk_prepare_enable(lpi2c_imx->clk_per);
1787 + clk_disable_unprepare(lpi2c_imx->clk_per);
D0031_linux_drivers_perf_phy_pinctrl_ptp_pwm.patch2873 struct clk *clk_per;
2893 ret = clk_prepare_enable(imx->clk_per);
2913 clk_disable_unprepare(imx->clk_per);
D0034_linux_drivers_usb_vfio_wdt_tty_uio.patch2643 retval = clk_prepare_enable(sport->clk_per);
2661 + sport->port.uartclk = clk_get_rate(sport->clk_per);
2663 + ret = clk_set_rate(sport->clk_per, IMX_MODULE_MAX_CLK_RATE);
2669 sport->port.uartclk = clk_get_rate(sport->clk_per);
D0027_linux_drivers_media.patch3120 + jpeg->clk_per = devm_clk_get(dev, "per");
3121 + if (IS_ERR(jpeg->clk_per)) {
3216 + ret = clk_prepare_enable(jpeg->clk_per);
3233 + clk_disable_unprepare(jpeg->clk_per);
3406 + struct clk *clk_per;
D0030_linux_drivers_pci_misc_nvmem_of_mtd_mmc.patch10063 + clk_disable_unprepare(imx_data->clk_per);
10087 + clk_prepare_enable(imx_data->clk_per);
10117 - clk_disable_unprepare(imx_data->clk_per);
10122 + clk_disable_unprepare(imx_data->clk_per);
10148 - err = clk_prepare_enable(imx_data->clk_per);
10158 + err = clk_prepare_enable(imx_data->clk_per);
10177 - clk_disable_unprepare(imx_data->clk_per);
10179 + clk_disable_unprepare(imx_data->clk_per);
D0033_linux_drivers_soc_scsi_spi_tee_thermal.patch3399 perclk_rate = clk_get_rate(fsl_lpspi->clk_per);