if(status & MEASURE_SIGNAL){
value = readl(tsc->tsc_regs + REG_TSC_MEASURE_VALUE);
x =(value >> 16)& 0x0fff;
y = value & 0x0fff;
x=0x0fff-x;
/*
* In detect mode, we can get the xnur gpio value,
* otherwise assume contact is stiull active.
*/
if(!tsc_wait_detect_mode(tsc)||
gpiod_get_value_cansleep(tsc->xnur_gpio)){
input_report_key(tsc->input, BTN_TOUCH, 1);
input_report_abs(tsc->input, ABS_X, y);
input_report_abs(tsc->input, ABS_Y, x)}
imx6ull 4.3寸电阻屏触摸调试x轴方向相反修改方法if (status & MEASURE_SIGNAL){value = readl(tsc->tsc_regs + REG_TSC_MEASURE_VALUE);x = (value >> 16) & 0x0fff;y = value & 0x0fff; x=0x0fff-x; /* * In detect mode, we can get the xnur gpio va