Home
last modified time | relevance | path

Searched refs:adc_clk (Results 1 – 10 of 10) sorted by relevance

/drivers/iio/adc/
Dmt6577_auxadc.c44 struct clk *adc_clk; member
219 ret = clk_prepare_enable(adc_dev->adc_clk); in mt6577_auxadc_resume()
239 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_suspend()
268 adc_dev->adc_clk = devm_clk_get(&pdev->dev, "main"); in mt6577_auxadc_probe()
269 if (IS_ERR(adc_dev->adc_clk)) { in mt6577_auxadc_probe()
271 return PTR_ERR(adc_dev->adc_clk); in mt6577_auxadc_probe()
274 ret = clk_prepare_enable(adc_dev->adc_clk); in mt6577_auxadc_probe()
280 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in mt6577_auxadc_probe()
309 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_probe()
323 clk_disable_unprepare(adc_dev->adc_clk); in mt6577_auxadc_remove()
Dcc10001_adc.c57 struct clk *adc_clk; member
347 adc_dev->adc_clk = devm_clk_get(&pdev->dev, "adc"); in cc10001_adc_probe()
348 if (IS_ERR(adc_dev->adc_clk)) { in cc10001_adc_probe()
350 ret = PTR_ERR(adc_dev->adc_clk); in cc10001_adc_probe()
354 ret = clk_prepare_enable(adc_dev->adc_clk); in cc10001_adc_probe()
360 adc_clk_rate = clk_get_rate(adc_dev->adc_clk); in cc10001_adc_probe()
401 clk_disable_unprepare(adc_dev->adc_clk); in cc10001_adc_probe()
415 clk_disable_unprepare(adc_dev->adc_clk); in cc10001_adc_remove()
Dnpcm_adc.c24 struct clk *adc_clk; member
211 info->adc_clk = devm_clk_get(&pdev->dev, NULL); in npcm_adc_probe()
212 if (IS_ERR(info->adc_clk)) { in npcm_adc_probe()
214 return PTR_ERR(info->adc_clk); in npcm_adc_probe()
221 info->adc_sample_hz = clk_get_rate(info->adc_clk) / ((div + 1) * 2); in npcm_adc_probe()
295 clk_disable_unprepare(info->adc_clk); in npcm_adc_probe()
312 clk_disable_unprepare(info->adc_clk); in npcm_adc_remove()
Dbcm_iproc_adc.c110 struct clk *adc_clk; member
534 adc_priv->adc_clk = devm_clk_get(&pdev->dev, "tsc_clk"); in iproc_adc_probe()
535 if (IS_ERR(adc_priv->adc_clk)) { in iproc_adc_probe()
538 ret = PTR_ERR(adc_priv->adc_clk); in iproc_adc_probe()
562 ret = clk_prepare_enable(adc_priv->adc_clk); in iproc_adc_probe()
592 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_probe()
604 clk_disable_unprepare(adc_priv->adc_clk); in iproc_adc_remove()
Dmeson_saradc.c274 struct clk *adc_clk; member
693 priv->adc_clk = devm_clk_register(&indio_dev->dev, &priv->clk_gate.hw); in meson_sar_adc_clk_init()
694 if (WARN_ON(IS_ERR(priv->adc_clk))) in meson_sar_adc_clk_init()
695 return PTR_ERR(priv->adc_clk); in meson_sar_adc_clk_init()
897 ret = clk_set_rate(priv->adc_clk, priv->param->clock_rate); in meson_sar_adc_init()
957 ret = clk_prepare_enable(priv->adc_clk); in meson_sar_adc_hw_enable()
989 clk_disable_unprepare(priv->adc_clk); in meson_sar_adc_hw_disable()
1244 priv->adc_clk = devm_clk_get(&pdev->dev, "adc_clk"); in meson_sar_adc_probe()
1245 if (IS_ERR(priv->adc_clk)) { in meson_sar_adc_probe()
1246 if (PTR_ERR(priv->adc_clk) == -ENOENT) { in meson_sar_adc_probe()
[all …]
Dat91_adc.c216 struct clk *adc_clk; member
999 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local
1105 st->adc_clk = devm_clk_get(&pdev->dev, "adc_op_clk"); in at91_adc_probe()
1106 if (IS_ERR(st->adc_clk)) { in at91_adc_probe()
1108 ret = PTR_ERR(st->adc_clk); in at91_adc_probe()
1112 ret = clk_prepare_enable(st->adc_clk); in at91_adc_probe()
1125 adc_clk = clk_get_rate(st->adc_clk); in at91_adc_probe()
1126 adc_clk_khz = adc_clk / 1000; in at91_adc_probe()
1129 mstrclk, adc_clk); in at91_adc_probe()
1131 prsc = (mstrclk / (2 * adc_clk)) - 1; in at91_adc_probe()
[all …]
Dti-ads131e08.c94 struct clk *adc_clk; member
804 clk_disable_unprepare(st->adc_clk); in ads131e08_clk_disable()
899 st->adc_clk = devm_clk_get(&spi->dev, "adc-clk"); in ads131e08_probe()
900 if (IS_ERR(st->adc_clk)) in ads131e08_probe()
901 return dev_err_probe(&spi->dev, PTR_ERR(st->adc_clk), in ads131e08_probe()
904 ret = clk_prepare_enable(st->adc_clk); in ads131e08_probe()
914 adc_clk_hz = clk_get_rate(st->adc_clk); in ads131e08_probe()
/drivers/input/touchscreen/
Dimx6ul_tsc.c88 struct clk *adc_clk; member
321 err = clk_prepare_enable(tsc->adc_clk); in imx6ul_tsc_start()
346 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_start()
355 clk_disable_unprepare(tsc->adc_clk); in imx6ul_tsc_stop()
436 tsc->adc_clk = devm_clk_get(&pdev->dev, "adc"); in imx6ul_tsc_probe()
437 if (IS_ERR(tsc->adc_clk)) { in imx6ul_tsc_probe()
438 err = PTR_ERR(tsc->adc_clk); in imx6ul_tsc_probe()
/drivers/media/dvb-frontends/
Dstv0367.c46 u32 adc_clk; member
2320 cab_state->adc_clk = stv0367cab_get_adc_freq(fe, state->config->xtal); in stv0367cab_init()
2417 stv0367cab_set_derot_freq(state, cab_state->adc_clk, in stv0367cab_algo()
2487 tmp = stv0367cab_get_derot_freq(state, cab_state->adc_clk); in stv0367cab_algo()
2508 if (ifkhz > cab_state->adc_clk / 1000) { in stv0367cab_algo()
2511 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo()
2512 - cab_state->adc_clk / 1000 + ifkhz; in stv0367cab_algo()
2516 - stv0367cab_get_derot_freq(state, cab_state->adc_clk) in stv0367cab_algo()
2523 cab_state->adc_clk) - in stv0367cab_algo()
2524 cab_state->adc_clk / 4000; in stv0367cab_algo()
[all …]
Dsi2165.c49 u32 adc_clk; member
244 state->adc_clk = state->fvco_hz / (divm * 4u); in si2165_init_pll()
264 return state->adc_clk; in si2165_get_fe_clk()