Home
last modified time | relevance | path

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

/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()
471 imxtm->clk_per = of_clk_get_by_name(np, "osc_per"); in mxc_timer_init_dt()
[all …]
/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()
/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()
1183 clk_disable_unprepare(host->clk_per); in mxcmci_probe()
1204 clk_disable_unprepare(host->clk_per); in mxcmci_remove()
[all …]
Dsdhci-esdhc-imx.c288 struct clk *clk_per; member
1578 imx_data->clk_per = devm_clk_get(&pdev->dev, "per"); in sdhci_esdhc_imx_probe()
1579 if (IS_ERR(imx_data->clk_per)) { in sdhci_esdhc_imx_probe()
1580 err = PTR_ERR(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1584 pltfm_host->clk = imx_data->clk_per; in sdhci_esdhc_imx_probe()
1586 err = clk_prepare_enable(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1682 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_probe()
1704 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_remove()
1801 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_runtime_suspend()
1822 clk_set_rate(imx_data->clk_per, pltfm_host->clock); in sdhci_esdhc_runtime_resume()
[all …]
/drivers/usb/chipidea/
Dci_hdrc_imx.c107 struct clk *clk_per; member
216 data->clk_per = devm_clk_get(dev, "per"); in imx_get_clks()
217 if (IS_ERR(data->clk_per)) { in imx_get_clks()
218 ret = PTR_ERR(data->clk_per); in imx_get_clks()
251 ret = clk_prepare_enable(data->clk_per); in imx_prepare_enable_clks()
278 clk_disable_unprepare(data->clk_per); in imx_disable_unprepare_clks()
/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
1703 spi_imx->clk_per = devm_clk_get(&pdev->dev, "per"); in spi_imx_probe()
1704 if (IS_ERR(spi_imx->clk_per)) { in spi_imx_probe()
1705 ret = PTR_ERR(spi_imx->clk_per); in spi_imx_probe()
1709 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_probe()
1723 spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per); in spi_imx_probe()
1764 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_probe()
1803 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_runtime_resume()
1809 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_resume()
1823 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_suspend()
/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()
/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()
/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()
/drivers/tty/serial/
Dimx.c209 struct clk *clk_per; member
1420 retval = clk_prepare_enable(sport->clk_per); in imx_uart_startup()
1425 clk_disable_unprepare(sport->clk_per); in imx_uart_startup()
1585 clk_disable_unprepare(sport->clk_per); in imx_uart_shutdown()
1861 retval = clk_prepare_enable(sport->clk_per); in imx_uart_poll_init()
2088 uartclk = clk_get_rate(sport->clk_per); in imx_uart_console_get_options()
2152 retval = clk_prepare_enable(sport->clk_per); in imx_uart_console_setup()
2337 sport->clk_per = devm_clk_get(&pdev->dev, "per"); in imx_uart_probe()
2338 if (IS_ERR(sport->clk_per)) { in imx_uart_probe()
2339 ret = PTR_ERR(sport->clk_per); in imx_uart_probe()
[all …]
/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()
/drivers/media/platform/coda/
Dcoda-common.c2665 ret = clk_prepare_enable(dev->clk_per); in coda_open()
2705 clk_disable_unprepare(dev->clk_per); in coda_open()
2744 clk_disable_unprepare(dev->clk_per); in coda_release()
2772 ret = clk_prepare_enable(dev->clk_per); in coda_hw_init()
2855 clk_disable_unprepare(dev->clk_per); in coda_hw_init()
2860 clk_disable_unprepare(dev->clk_per); in coda_hw_init()
3146 dev->clk_per = devm_clk_get(&pdev->dev, "per"); in coda_probe()
3147 if (IS_ERR(dev->clk_per)) { in coda_probe()
3149 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()