Revert "pixcir driver: fix a bug touchscreen cannot hold touching"
[firefly-linux-kernel-4.4.55.git] / drivers / input / touchscreen / xpt2046_ts.h
index 4ff65ba1eb69005ca6cd5c235466f05022d8753e..3c3b90f2bbf95c634177d217dfdceb0cec0d2e94 100755 (executable)
@@ -15,6 +15,9 @@
 
 #ifndef __DRIVERS_TOUCHSCREEN_XPT2046_TS_H
 #define __DRIVERS_TOUCHSCREEN_XPT2046_TS_H
+
+#define IOMUX_NAME_SIZE 20
+
 enum xpt2046_filter {
        XPT2046_FILTER_OK,
        XPT2046_FILTER_REPEAT,
@@ -44,6 +47,13 @@ struct xpt2046_platform_data {
        int     gpio_pendown;           /* the GPIO used to decide the pendown
                                         * state if get_pendown_state == NULL
                                         */
+       char    pendown_iomux_name[IOMUX_NAME_SIZE];    
+       int             pendown_iomux_mode;     
+       int     touch_ad_top;
+       int     touch_ad_bottom;
+       int     touch_ad_left;
+       int     touch_ad_right;
+       int             touch_virtualkey_length;
        int     (*get_pendown_state)(void);
        int     (*filter_init)  (struct xpt2046_platform_data *pdata,
                                 void **filter_data);