Lines Matching defs:stmpe
26 #include <linux/mfd/stmpe.h>
62 #define STMPE_TS_NAME "stmpe-ts"
66 struct stmpe *stmpe;
81 static int __stmpe_reset_fifo(struct stmpe *stmpe)
85 ret = stmpe_set_bits(stmpe, STMPE_REG_FIFO_STA,
90 return stmpe_set_bits(stmpe, STMPE_REG_FIFO_STA,
102 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA);
106 int_sta = stmpe_reg_read(ts->stmpe, STMPE_REG_INT_STA);
111 __stmpe_reset_fifo(ts->stmpe);
129 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL,
132 stmpe_block_read(ts->stmpe, STMPE_REG_TSC_DATA_XYZ, 4, data_set);
144 __stmpe_reset_fifo(ts->stmpe);
147 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL,
160 struct stmpe *stmpe = ts->stmpe;
163 ret = stmpe_enable(stmpe, STMPE_BLOCK_TOUCHSCREEN | STMPE_BLOCK_ADC);
173 ret = stmpe_set_bits(stmpe, STMPE_REG_ADC_CTRL1,
180 ret = stmpe_set_bits(stmpe, STMPE_REG_ADC_CTRL2,
191 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_CFG, tsc_cfg_mask, tsc_cfg);
197 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_FRACTION_Z,
204 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_I_DRIVE,
212 ret = stmpe_reg_write(stmpe, STMPE_REG_FIFO_TH, 1);
218 ret = stmpe_set_bits(stmpe, STMPE_REG_TSC_CTRL,
233 ret = __stmpe_reset_fifo(ts->stmpe);
237 return stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL,
247 stmpe_set_bits(ts->stmpe, STMPE_REG_TSC_CTRL,
253 struct stmpe *stmpe = dev_get_drvdata(pdev->dev.parent);
254 struct stmpe_platform_data *pdata = stmpe->pdata;
274 ts->stmpe = stmpe;
344 stmpe_disable(ts->stmpe, STMPE_BLOCK_TOUCHSCREEN);