Lines Matching refs:adc_clk
194 struct clk *adc_clk; member
1151 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local
1223 st->adc_clk = devm_clk_get(&pdev->dev, "adc_op_clk"); in at91_adc_probe()
1224 if (IS_ERR(st->adc_clk)) { in at91_adc_probe()
1226 ret = PTR_ERR(st->adc_clk); in at91_adc_probe()
1230 ret = clk_prepare_enable(st->adc_clk); in at91_adc_probe()
1243 adc_clk = clk_get_rate(st->adc_clk); in at91_adc_probe()
1244 adc_clk_khz = adc_clk / 1000; in at91_adc_probe()
1247 mstrclk, adc_clk); in at91_adc_probe()
1249 prsc = (mstrclk / (2 * adc_clk)) - 1; in at91_adc_probe()
1330 clk_disable_unprepare(st->adc_clk); in at91_adc_probe()
1350 clk_disable_unprepare(st->adc_clk); in at91_adc_remove()