Lines Matching full:adc_clk
216 struct clk *adc_clk; member
897 dev_dbg(&idev->dev, "adc_clk at: %d KHz, tssctim at: %d\n", in at91_ts_hw_init()
993 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local
1082 st->clk = devm_clk_get_enabled(&pdev->dev, "adc_clk"); in at91_adc_probe()
1087 st->adc_clk = devm_clk_get_enabled(&pdev->dev, "adc_op_clk"); in at91_adc_probe()
1088 if (IS_ERR(st->adc_clk)) in at91_adc_probe()
1089 return dev_err_probe(&pdev->dev, PTR_ERR(st->adc_clk), in at91_adc_probe()
1098 adc_clk = clk_get_rate(st->adc_clk); in at91_adc_probe()
1099 adc_clk_khz = adc_clk / 1000; in at91_adc_probe()
1101 dev_dbg(&pdev->dev, "Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n", in at91_adc_probe()
1102 mstrclk, adc_clk); in at91_adc_probe()
1104 prsc = (mstrclk / (2 * adc_clk)) - 1; in at91_adc_probe()