input: touchscreen: ti_am335x_tsc: Remove udelay in interrupt handler
TSC interrupt handler had udelay to avoid reporting of false pen-up interrupt to user space. This patch implements workaround suggesting in Advisory 1.0.31 of silicon errata for am335x, thus eliminating udelay and touchscreen lag. This also improves performance of touchscreen and eliminates sudden jump of cursor at touch release. IDLECONFIG and CHARGECONFIG registers are to be configured with same values in order to eliminate false pen-up events. This workaround may result in false pen-down to be detected, hence considerable charge step delay needs to be added. TSC steps are disabled at the end of every sampling cycle and EOS bit is set. Once the EOS bit is set, the TSC steps need to be re-enabled to begin next sampling cycle. In one shot mode, sequencer automatically disables all enabled steps at the end of each cycle. (both ADC steps and TSC steps) Hence these steps need not be saved in reg_se_cache for clearing these steps at a later stage. Signed-off-by:Brad Griffis <bgriffis@ti.com> [vigneshr@ti.com: Ported patch from v3.12 to v3.14] Signed-off-by:
Vignesh R <vigneshr@ti.com> Signed-off-by:
Sekhar Nori <nsekhar@ti.com>
Loading
Please sign in to comment