Lines Matching full:stmpe
22 #include <linux/mfd/stmpe.h>
45 #define STMPE_TS_NAME "stmpe-ts"
50 * @stmpe: pointer back to STMPE MFD container
71 struct stmpe *stmpe; member
82 static int __stmpe_reset_fifo(struct stmpe *stmpe) in __stmpe_reset_fifo() argument
86 ret = stmpe_set_bits(stmpe, STMPE_REG_FIFO_STA, in __stmpe_reset_fifo()
91 return stmpe_set_bits(stmpe, STMPE_REG_FIFO_STA, in __stmpe_reset_fifo()
103 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work()
114 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA); in stmpe_work()
119 __stmpe_reset_fifo(ts->stmpe); in stmpe_work()
144 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_handler()
147 stmpe_block_read(ts->stmpe, STMPE_REG_TSC_DATA_XYZ, 4, data_set); in stmpe_ts_handler()
160 __stmpe_reset_fifo(ts->stmpe); in stmpe_ts_handler()
163 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_handler()
176 struct stmpe *stmpe = ts->stmpe; in stmpe_init_hw() local
179 ret = stmpe_enable(stmpe, STMPE_BLOCK_TOUCHSCREEN | STMPE_BLOCK_ADC); in stmpe_init_hw()
185 ret = stmpe811_adc_common_init(stmpe); in stmpe_init_hw()
187 stmpe_disable(stmpe, STMPE_BLOCK_TOUCHSCREEN | STMPE_BLOCK_ADC); in stmpe_init_hw()
197 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_CFG, tsc_cfg_mask, tsc_cfg); in stmpe_init_hw()
203 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_FRACTION_Z, in stmpe_init_hw()
210 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_I_DRIVE, in stmpe_init_hw()
218 ret = stmpe_reg_write(stmpe, STMPE_REG_FIFO_TH, 1); in stmpe_init_hw()
224 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_CTRL, in stmpe_init_hw()
239 ret = __stmpe_reset_fifo(ts->stmpe); in stmpe_ts_open()
243 return stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_open()
253 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL, in stmpe_ts_close()
265 ts->stmpe->sample_time = val; in stmpe_ts_get_platform_info()
267 ts->stmpe->mod_12b = val; in stmpe_ts_get_platform_info()
269 ts->stmpe->ref_sel = val; in stmpe_ts_get_platform_info()
271 ts->stmpe->adc_freq = val; in stmpe_ts_get_platform_info()
287 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent); in stmpe_input_probe() local
306 ts->stmpe = stmpe; in stmpe_input_probe()
353 stmpe_disable(ts->stmpe, STMPE_BLOCK_TOUCHSCREEN); in stmpe_ts_remove()
368 { .compatible = "st,stmpe-ts", },