Searched refs:adc_cfg (Results 1 - 2 of 2) sorted by relevance

/linux-4.4.14/drivers/input/touchscreen/
H A Dimx6ul_tsc.c102 int adc_cfg; imx6ul_adc_init() local
107 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); imx6ul_adc_init()
108 adc_cfg |= ADC_12BIT_MODE | ADC_IPG_CLK; imx6ul_adc_init()
109 adc_cfg |= ADC_CLK_DIV_8 | ADC_SHORT_SAMPLE_MODE; imx6ul_adc_init()
110 adc_cfg &= ~ADC_HARDWARE_TRIGGER; imx6ul_adc_init()
111 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); imx6ul_adc_init()
137 adc_cfg = readl(tsc->adc_regs + REG_ADC_CFG); imx6ul_adc_init()
138 adc_cfg |= ADC_HARDWARE_TRIGGER; imx6ul_adc_init()
139 writel(adc_cfg, tsc->adc_regs + REG_ADC_CFG); imx6ul_adc_init()
213 int adc_cfg; imx6ul_tsc_disable() local
221 adc_cfg = readl(tsc->adc_regs + REG_ADC_HC0); imx6ul_tsc_disable()
222 adc_cfg |= ADC_CONV_DISABLE; imx6ul_tsc_disable()
223 writel(adc_cfg, tsc->adc_regs + REG_ADC_HC0); imx6ul_tsc_disable()
/linux-4.4.14/drivers/staging/iio/adc/
H A Dmxs-lradc.c1477 const u32 adc_cfg = mxs_lradc_hw_init() local
1487 mxs_lradc_reg_wrt(lradc, adc_cfg, LRADC_DELAY(0)); mxs_lradc_hw_init()

Completed in 305 milliseconds