Lines Matching refs:lradc
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()