To compile this driver as a module, choose M here: the
module will be called eeti_egalax_ts.
+
+ config EETI_EGALAX_MAX_X
+ int "EETI_EGALAX_MAX_X"
+ depends on EETI_EGALAX
+ default 2047
+ help
+ RK29 EETI_EGALAX touch max X size
+ config EETI_EGALAX_MAX_Y
+ int "EETI_EGALAX_MAX_Y"
+ depends on EETI_EGALAX
+ default 2047
+ help
+ RK29 EETI_EGALAX touch max Y size
+
+ config EETI_EGALAX_DEBUG
+ bool "EETI_EGALAX debug"
+ depends on EETI_EGALAX
+ default n
+ help
+ RK29 EETI_EGALAX touch debug
config TOUCHSCREEN_IT7260
tristate "IT7260 based touchscreens: IT7260 Interface"
#include <mach/board.h>
//#define DEBUG
-#ifdef DEBUG
+#ifdef CONFIG_EETI_EGALAX_DEBUG
#define TS_DEBUG(fmt,args...) printk( KERN_DEBUG "[egalax_i2c]: " fmt, ## args)
#define DBG() printk("[%s]:%d => \n",__FUNCTION__,__LINE__)
#else
set_bit(EV_ABS, pInputDev->evbit);
- input_set_abs_params(pInputDev, ABS_MT_POSITION_X, 0, 1080, 0, 0);
- input_set_abs_params(pInputDev, ABS_MT_POSITION_Y, 0, 800, 0, 0);
+ input_set_abs_params(pInputDev, ABS_MT_POSITION_X, 0, CONFIG_EETI_EGALAX_MAX_X, 0, 0);
+ input_set_abs_params(pInputDev, ABS_MT_POSITION_Y, 0, CONFIG_EETI_EGALAX_MAX_Y, 0, 0);
input_set_abs_params(pInputDev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
input_set_abs_params(pInputDev, ABS_MT_WIDTH_MAJOR, 0, 255, 0, 0);
input_set_abs_params(pInputDev, ABS_MT_TRACKING_ID, 0, 10, 0, 0);