Searched refs:adc_clk_khz (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/iio/adc/ |
H A D | at91_adc.c | 203 u32 (*calc_startup_ticks)(u32 startup_time, u32 adc_clk_khz); 768 return round_up((startup_time * adc_clk_khz / 1000) - 1, 8) / 8; in calc_startup_ticks_9260() 786 ticks = startup_time * adc_clk_khz / 1000; in calc_startup_ticks_9x5() 892 adc_clk_khz / 1000) - 1, 1); in at91_ts_hw_init() 901 tssctim = DIV_ROUND_UP(TOUCH_SCTIM_US * adc_clk_khz / 1000, 4); in at91_ts_hw_init() 903 adc_clk_khz, tssctim); in at91_ts_hw_init() 930 adc_clk_khz / 1000) - 1, 1); in at91_ts_hw_init() 998 unsigned int prsc, mstrclk, ticks, adc_clk, adc_clk_khz, shtim; in at91_adc_probe() local 1125 adc_clk_khz = adc_clk / 1000; in at91_adc_probe() 1145 shtim = round_up((st->sample_hold_time * adc_clk_khz / 1000) in at91_adc_probe() [all …]
|
H A D | at91-sama5d2_adc.c | 1555 unsigned adc_clk_khz) in at91_adc_startup_time() argument 1570 ticks_min = startup_time_min * adc_clk_khz / 1000; in at91_adc_startup_time()
|