mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
add max x and y config for EETI driver
This commit is contained in:
@@ -611,7 +611,27 @@ config EETI_EGALAX
|
||||
|
||||
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"
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
#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
|
||||
@@ -399,8 +399,8 @@ static struct input_dev * allocate_Input_Dev(void)
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user