Lines Matching refs:adc_clk
195 struct clk *adc_clk; member
1142 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local
1216 st->adc_clk = devm_clk_get(&pdev->dev, "adc_op_clk"); in at91_adc_probe()
1217 if (IS_ERR(st->adc_clk)) { in at91_adc_probe()
1219 ret = PTR_ERR(st->adc_clk); in at91_adc_probe()
1223 ret = clk_prepare_enable(st->adc_clk); in at91_adc_probe()
1236 adc_clk = clk_get_rate(st->adc_clk); in at91_adc_probe()
1237 adc_clk_khz = adc_clk / 1000; in at91_adc_probe()
1240 mstrclk, adc_clk); in at91_adc_probe()
1242 prsc = (mstrclk / (2 * adc_clk)) - 1; in at91_adc_probe()
1323 clk_disable_unprepare(st->adc_clk); in at91_adc_probe()
1343 clk_disable_unprepare(st->adc_clk); in at91_adc_remove()