/drivers/clocksource/ |
D | timer-imx-gpt.c | 66 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/ |
D | pwm-imx1.c | 30 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() 149 imx->clk_per = devm_clk_get(&pdev->dev, "per"); in pwm_imx1_probe() 150 if (IS_ERR(imx->clk_per)) in pwm_imx1_probe() 151 return dev_err_probe(&pdev->dev, PTR_ERR(imx->clk_per), in pwm_imx1_probe()
|
D | pwm-imx27.c | 84 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() 321 imx->clk_per = devm_clk_get(&pdev->dev, "per"); in pwm_imx27_probe() 322 if (IS_ERR(imx->clk_per)) in pwm_imx27_probe() 323 return dev_err_probe(&pdev->dev, PTR_ERR(imx->clk_per), in pwm_imx27_probe()
|
/drivers/mmc/host/ |
D | sdhci-esdhc-mcf.c | 28 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()
|
D | mxcmmc.c | 144 struct clk *clk_per; member 778 unsigned int clk_in = clk_get_rate(host->clk_per); in mxcmci_set_clk_rate() 1067 host->clk_per = devm_clk_get(&pdev->dev, "per"); in mxcmci_probe() 1068 if (IS_ERR(host->clk_per)) { in mxcmci_probe() 1069 ret = PTR_ERR(host->clk_per); in mxcmci_probe() 1073 ret = clk_prepare_enable(host->clk_per); in mxcmci_probe() 1091 mmc->f_min = clk_get_rate(host->clk_per) >> 16; in mxcmci_probe() 1092 mmc->f_max = clk_get_rate(host->clk_per) >> 1; in mxcmci_probe() 1159 clk_disable_unprepare(host->clk_per); in mxcmci_probe() 1180 clk_disable_unprepare(host->clk_per); in mxcmci_remove() [all …]
|
D | sdhci-esdhc-imx.c | 325 struct clk *clk_per; member 1616 imx_data->clk_per = devm_clk_get(&pdev->dev, "per"); in sdhci_esdhc_imx_probe() 1617 if (IS_ERR(imx_data->clk_per)) { in sdhci_esdhc_imx_probe() 1618 err = PTR_ERR(imx_data->clk_per); in sdhci_esdhc_imx_probe() 1622 pltfm_host->clk = imx_data->clk_per; in sdhci_esdhc_imx_probe() 1624 err = clk_prepare_enable(imx_data->clk_per); in sdhci_esdhc_imx_probe() 1726 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_probe() 1748 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_imx_remove() 1845 clk_disable_unprepare(imx_data->clk_per); in sdhci_esdhc_runtime_suspend() 1866 clk_set_rate(imx_data->clk_per, pltfm_host->clock); in sdhci_esdhc_runtime_resume() [all …]
|
/drivers/usb/chipidea/ |
D | ci_hdrc_imx.c | 107 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/ |
D | spi-fsl-lpspi.c | 99 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()
|
D | spi-imx.c | 96 struct clk *clk_per; member 1708 spi_imx->clk_per = devm_clk_get(&pdev->dev, "per"); in spi_imx_probe() 1709 if (IS_ERR(spi_imx->clk_per)) { in spi_imx_probe() 1710 ret = PTR_ERR(spi_imx->clk_per); in spi_imx_probe() 1714 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_probe() 1728 spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per); in spi_imx_probe() 1769 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_probe() 1808 ret = clk_prepare_enable(spi_imx->clk_per); in spi_imx_runtime_resume() 1814 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_resume() 1828 clk_disable_unprepare(spi_imx->clk_per); in spi_imx_runtime_suspend()
|
/drivers/video/fbdev/ |
D | imxfb.c | 147 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/ |
D | flexcan.c | 373 struct clk *clk_per; member 685 if (priv->clk_per) { in flexcan_clks_enable() 686 err = clk_prepare_enable(priv->clk_per); in flexcan_clks_enable() 696 clk_disable_unprepare(priv->clk_per); in flexcan_clks_disable() 2131 struct clk *clk_ipg = NULL, *clk_per = NULL; in flexcan_probe() local 2166 clk_per = devm_clk_get(&pdev->dev, "per"); in flexcan_probe() 2167 if (IS_ERR(clk_per)) { in flexcan_probe() 2169 return PTR_ERR(clk_per); in flexcan_probe() 2171 clock_freq = clk_get_rate(clk_per); in flexcan_probe() 2246 priv->clk_per = clk_per; in flexcan_probe()
|
/drivers/i2c/busses/ |
D | i2c-mpc.c | 92 struct clk *clk_per; member 828 i2c->clk_per = clk; in fsl_i2c_probe() 876 clk_disable_unprepare(i2c->clk_per); in fsl_i2c_probe() 887 clk_disable_unprepare(i2c->clk_per); in fsl_i2c_remove()
|
/drivers/tty/serial/ |
D | imx.c | 208 struct clk *clk_per; member 1410 retval = clk_prepare_enable(sport->clk_per); in imx_uart_startup() 1415 clk_disable_unprepare(sport->clk_per); in imx_uart_startup() 1588 clk_disable_unprepare(sport->clk_per); in imx_uart_shutdown() 1864 retval = clk_prepare_enable(sport->clk_per); in imx_uart_poll_init() 2091 uartclk = clk_get_rate(sport->clk_per); in imx_uart_console_get_options() 2155 retval = clk_prepare_enable(sport->clk_per); in imx_uart_console_setup() 2309 sport->clk_per = devm_clk_get(&pdev->dev, "per"); in imx_uart_probe() 2310 if (IS_ERR(sport->clk_per)) { in imx_uart_probe() 2311 ret = PTR_ERR(sport->clk_per); in imx_uart_probe() [all …]
|
/drivers/net/ethernet/freescale/fs_enet/ |
D | fs_enet-main.c | 973 fpi->clk_per = clk; in fs_enet_probe() 1046 clk_disable_unprepare(fpi->clk_per); in fs_enet_probe() 1067 clk_disable_unprepare(fep->fpi->clk_per); in fs_enet_remove()
|
/drivers/media/platform/coda/ |
D | coda-common.c | 2683 ret = clk_prepare_enable(dev->clk_per); in coda_open() 2723 clk_disable_unprepare(dev->clk_per); in coda_open() 2763 clk_disable_unprepare(dev->clk_per); in coda_release() 2791 ret = clk_prepare_enable(dev->clk_per); in coda_hw_init() 2874 clk_disable_unprepare(dev->clk_per); in coda_hw_init() 2879 clk_disable_unprepare(dev->clk_per); in coda_hw_init() 3145 dev->clk_per = devm_clk_get(&pdev->dev, "per"); in coda_probe() 3146 if (IS_ERR(dev->clk_per)) { in coda_probe() 3148 return PTR_ERR(dev->clk_per); in coda_probe()
|
D | coda.h | 87 struct clk *clk_per; member
|
D | coda-bit.c | 943 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()
|