Lines Matching refs:lradc
18 #include <linux/mfd/mxs-lradc.h>
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;
135 struct mxs_lradc *lradc = adc->lradc;
155 if (lradc->soc == IMX28_LRADC)
388 struct mxs_lradc *lradc = adc->lradc;
392 if (!(reg & mxs_lradc_irq_mask(lradc)))
396 if (reg & lradc->buffer_vchans) {
405 writel(reg & mxs_lradc_irq_mask(lradc),
486 struct mxs_lradc *lradc = adc->lradc;
495 if (lradc->soc == IMX28_LRADC)
496 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET,
498 writel(lradc->buffer_vchans,
524 struct mxs_lradc *lradc = adc->lradc;
529 writel(lradc->buffer_vchans,
531 if (lradc->soc == IMX28_LRADC)
532 writel(lradc->buffer_vchans << LRADC_CTRL1_LRADC_IRQ_EN_OFFSET,
542 struct mxs_lradc *lradc = adc->lradc;
547 if (lradc->use_touchbutton)
549 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_4WIRE)
551 if (lradc->touchscreen_wire == MXS_LRADC_TOUCHSCREEN_5WIRE)
554 if (lradc->use_touchbutton)
556 if (lradc->touchscreen_wire)
691 struct mxs_lradc *lradc = dev_get_drvdata(dev->parent);
707 adc->lradc = lradc;
729 if (lradc->soc == IMX23_LRADC) {
768 adc->vref_mv = mxs_lradc_adc_vref_mv[lradc->soc];
825 .name = "mxs-lradc-adc",
835 MODULE_ALIAS("platform:mxs-lradc-adc");