Lines Matching full:lradc

3  * Freescale MXS LRADC ADC driver
18 #include <linux/mfd/mxs-lradc.h>
33 * is enabled, the LRADC takes LRADC_DELAY_TIMER_LOOP samples of data before
43 "mxs-lradc-channel0",
44 "mxs-lradc-channel1",
45 "mxs-lradc-channel2",
46 "mxs-lradc-channel3",
47 "mxs-lradc-channel4",
48 "mxs-lradc-channel5",
52 "mxs-lradc-thresh0",
53 "mxs-lradc-thresh1",
54 "mxs-lradc-channel0",
55 "mxs-lradc-channel1",
56 "mxs-lradc-channel2",
57 "mxs-lradc-channel3",
58 "mxs-lradc-channel4",
59 "mxs-lradc-channel5",
60 "mxs-lradc-button0",
61 "mxs-lradc-button1",
114 struct mxs_lradc *lradc; member
135 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_read_single() local
155 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_read_single()
388 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_handle_irq() local
392 if (!(reg & mxs_lradc_irq_mask(lradc))) in mxs_lradc_adc_handle_irq()
396 if (reg & lradc->buffer_vchans) { in mxs_lradc_adc_handle_irq()
405 writel(reg & mxs_lradc_irq_mask(lradc), in mxs_lradc_adc_handle_irq()
486 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_buffer_preenable() local
495 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_buffer_preenable()
496 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET, in mxs_lradc_adc_buffer_preenable()
498 writel(lradc->buffer_vchans, in mxs_lradc_adc_buffer_preenable()
524 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_buffer_postdisable() local
529 writel(lradc->buffer_vchans, in mxs_lradc_adc_buffer_postdisable()
531 if (lradc->soc == IMX28_LRADC) in mxs_lradc_adc_buffer_postdisable()
532 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET, in mxs_lradc_adc_buffer_postdisable()
542 struct mxs_lradc *lradc = adc->lradc; in mxs_lradc_adc_validate_scan_mask() local
547 if (lradc->use_touchbutton) in mxs_lradc_adc_validate_scan_mask()
549 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_4WIRE) in mxs_lradc_adc_validate_scan_mask()
551 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_5WIRE) in mxs_lradc_adc_validate_scan_mask()
554 if (lradc->use_touchbutton) in mxs_lradc_adc_validate_scan_mask()
556 if (lradc->touchscreen_wire) in mxs_lradc_adc_validate_scan_mask()
691 struct mxs_lradc *lradc = dev_get_drvdata(dev->parent); in mxs_lradc_adc_probe() local
707 adc->lradc = lradc; in mxs_lradc_adc_probe()
728 if (lradc->soc == IMX23_LRADC) { in mxs_lradc_adc_probe()
767 adc->vref_mv = mxs_lradc_adc_vref_mv[lradc->soc]; in mxs_lradc_adc_probe()
822 .name = "mxs-lradc-adc",
830 MODULE_DESCRIPTION("Freescale MXS LRADC driver general purpose ADC driver");
832 MODULE_ALIAS("platform:mxs-lradc-adc");