Home
last modified time | relevance | path

Searched refs:adc_period (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/input/touchscreen/
H A Dfsl-imx25-tcq.c372 unsigned int adc_period; in mx25_tcq_init() local
380 adc_period = USEC_PER_SEC * ipg_div * 2 + 2; in mx25_tcq_init()
381 adc_period /= clk_get_rate(priv->clk) / 1000 + 1; in mx25_tcq_init()
382 debounce_cnt = DIV_ROUND_UP(priv->pen_debounce, adc_period * 8) - 1; in mx25_tcq_init()
383 settling_cnt = DIV_ROUND_UP(priv->settling_time, adc_period * 8) - 1; in mx25_tcq_init()
/openbmc/linux/drivers/iio/adc/
H A Dpalmas_gpadc.c995 int adc_period, conv; in palmas_adc_configure_events() local
1001 adc_period = adc->auto_conversion_period; in palmas_adc_configure_events()
1003 if (((1000 * (1 << i)) / 32) >= adc_period) in palmas_adc_configure_events()
1008 adc_period = i; in palmas_adc_configure_events()
1012 adc_period); in palmas_adc_configure_events()