Searched refs:tscadc (Results 1 – 1 of 1) sorted by relevance
29 void am335x_tsc_se_set_cache(struct ti_tscadc_dev *tscadc, u32 val) in am335x_tsc_se_set_cache() argument33 spin_lock_irqsave(&tscadc->reg_lock, flags); in am335x_tsc_se_set_cache()34 tscadc->reg_se_cache |= val; in am335x_tsc_se_set_cache()35 if (tscadc->adc_waiting) in am335x_tsc_se_set_cache()36 wake_up(&tscadc->reg_se_wait); in am335x_tsc_se_set_cache()37 else if (!tscadc->adc_in_use) in am335x_tsc_se_set_cache()38 regmap_write(tscadc->regmap, REG_SE, tscadc->reg_se_cache); in am335x_tsc_se_set_cache()40 spin_unlock_irqrestore(&tscadc->reg_lock, flags); in am335x_tsc_se_set_cache()44 static void am335x_tscadc_need_adc(struct ti_tscadc_dev *tscadc) in am335x_tscadc_need_adc() argument49 regmap_read(tscadc->regmap, REG_ADCFSM, ®); in am335x_tscadc_need_adc()[all …]