Home
last modified time | relevance | path

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

/Linux-v5.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 …]
/Linux-v5.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()
328 imx->clk_per = devm_clk_get(&pdev->dev, "per"); in pwm_imx27_probe()
329 if (IS_ERR(imx->clk_per)) { in pwm_imx27_probe()
330 int ret = PTR_ERR(imx->clk_per); in pwm_imx27_probe()
/Linux-v5.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.c288 struct clk *clk_per; member
1637 imx_data->clk_per = devm_clk_get(&pdev->dev, "per"); in sdhci_esdhc_imx_probe()
1638 if (IS_ERR(imx_data->clk_per)) { in sdhci_esdhc_imx_probe()
1639 err = PTR_ERR(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1643 pltfm_host->clk = imx_data->clk_per; in sdhci_esdhc_imx_probe()
1645 err = clk_prepare_enable(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1742 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1763 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_remove()
1860 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_runtime_suspend()
1881 clk_set_rate(imx_data->clk_per, pltfm_host->clock); in sdhci_esdhc_runtime_resume()
[all …]
/Linux-v5.10/drivers/usb/chipidea/
Dci_hdrc_imx.c101 struct clk *clk_per; member
204 data->clk_per = devm_clk_get(dev, "per"); in imx_get_clks()
205 if (IS_ERR(data->clk_per)) { in imx_get_clks()
206 ret = PTR_ERR(data->clk_per); in imx_get_clks()
239 ret = clk_prepare_enable(data->clk_per); in imx_prepare_enable_clks()
266 clk_disable_unprepare(data->clk_per); in imx_disable_unprepare_clks()
/Linux-v5.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.c92 struct clk *clk_per; member
1673 spi_imx->clk_per = devm_clk_get(&pdev->dev, "per"); in spi_imx_probe()
1674 if (IS_ERR(spi_imx->clk_per)) { in spi_imx_probe()
1675 ret = PTR_ERR(spi_imx->clk_per); in spi_imx_probe()
1679 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_probe()
1693 spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per); in spi_imx_probe()
1734 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_probe()
1775 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_runtime_resume()
1781 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_resume()
1795 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_suspend()
/Linux-v5.10/drivers/i2c/busses/
Di2c-mpc.c72 struct clk *clk_per; member
704 i2c->clk_per = clk; in fsl_i2c_probe()
751 if (i2c->clk_per) in fsl_i2c_probe()
752 clk_disable_unprepare(i2c->clk_per); in fsl_i2c_probe()
768 if (i2c->clk_per) in fsl_i2c_remove()
769 clk_disable_unprepare(i2c->clk_per); in fsl_i2c_remove()
/Linux-v5.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()
/Linux-v5.10/Documentation/devicetree/bindings/i2c/
Di2c-axxia.txt27 clocks = <&clk_per>;
/Linux-v5.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()
1931 struct clk *clk_ipg = NULL, *clk_per = NULL; in flexcan_probe() local
1959 clk_per = devm_clk_get(&pdev->dev, "per"); in flexcan_probe()
1960 if (IS_ERR(clk_per)) { in flexcan_probe()
1962 return PTR_ERR(clk_per); in flexcan_probe()
1964 clock_freq = clk_get_rate(clk_per); in flexcan_probe()
2022 priv->clk_per = clk_per; in flexcan_probe()
/Linux-v5.10/include/linux/
Dfs_enet_pd.h147 struct clk *clk_per; /* 'per' clock for register access */ member
/Linux-v5.10/drivers/tty/serial/
Dimx.c209 struct clk *clk_per; member
1419 retval = clk_prepare_enable(sport->clk_per); in imx_uart_startup()
1424 clk_disable_unprepare(sport->clk_per); in imx_uart_startup()
1584 clk_disable_unprepare(sport->clk_per); in imx_uart_shutdown()
1860 retval = clk_prepare_enable(sport->clk_per); in imx_uart_poll_init()
2087 uartclk = clk_get_rate(sport->clk_per); in imx_uart_console_get_options()
2151 retval = clk_prepare_enable(sport->clk_per); in imx_uart_console_setup()
2336 sport->clk_per = devm_clk_get(&pdev->dev, "per"); in imx_uart_probe()
2337 if (IS_ERR(sport->clk_per)) { in imx_uart_probe()
2338 ret = PTR_ERR(sport->clk_per); in imx_uart_probe()
[all …]
/Linux-v5.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()
/Linux-v5.10/drivers/media/platform/coda/
Dcoda-common.c2651 ret = clk_prepare_enable(dev->clk_per); in coda_open()
2691 clk_disable_unprepare(dev->clk_per); in coda_open()
2730 clk_disable_unprepare(dev->clk_per); in coda_release()
2758 ret = clk_prepare_enable(dev->clk_per); in coda_hw_init()
2841 clk_disable_unprepare(dev->clk_per); in coda_hw_init()
2846 clk_disable_unprepare(dev->clk_per); in coda_hw_init()
3132 dev->clk_per = devm_clk_get(&pdev->dev, "per"); in coda_probe()
3133 if (IS_ERR(dev->clk_per)) { in coda_probe()
3135 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()