Home
last modified time | relevance | path

Searched refs:adc_cfg (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/input/touchscreen/
Dimx6ul_tsc.c108 u32 adc_cfg; in imx6ul_adc_init() local
113 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init()
114 adc_cfg &= ~(ADC_CONV_MODE_MASK | ADC_INPUT_CLK_MASK); in imx6ul_adc_init()
115 adc_cfg |= ADC_12BIT_MODE | ADC_IPG_CLK; in imx6ul_adc_init()
116 adc_cfg &= ~(ADC_CLK_DIV_MASK | ADC_SAMPLE_MODE_MASK); in imx6ul_adc_init()
117 adc_cfg |= ADC_CLK_DIV_8 | ADC_SHORT_SAMPLE_MODE; in imx6ul_adc_init()
119 adc_cfg &= ~ADC_AVGS_MASK; in imx6ul_adc_init()
120 adc_cfg |= (tsc->average_select) << ADC_AVGS_SHIFT; in imx6ul_adc_init()
122 adc_cfg &= ~ADC_HARDWARE_TRIGGER; in imx6ul_adc_init()
123 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); in imx6ul_adc_init()
[all …]
/Linux-v5.4/drivers/iio/adc/
Dimx7d_adc.c419 u32 adc_cfg; in imx7d_adc_power_down() local
421 adc_cfg = readl(info->regs + IMX7D_REG_ADC_ADC_CFG); in imx7d_adc_power_down()
422 adc_cfg |= IMX7D_REG_ADC_ADC_CFG_ADC_CLK_DOWN | in imx7d_adc_power_down()
424 adc_cfg &= ~IMX7D_REG_ADC_ADC_CFG_ADC_EN; in imx7d_adc_power_down()
425 writel(adc_cfg, info->regs + IMX7D_REG_ADC_ADC_CFG); in imx7d_adc_power_down()
Dmxs-lradc-adc.c669 const u32 adc_cfg = in mxs_lradc_adc_hw_init() local
674 writel(adc_cfg, adc->base + LRADC_DELAY(0)); in mxs_lradc_adc_hw_init()