From 8f1f978a49324c58df6ae12f5c4b1273744b58fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=83=AD=E6=AF=85?= Date: Tue, 13 May 2014 09:20:47 +0800 Subject: [PATCH] =?utf8?q?TP:=20fix=20tp=20bug=20cause=20by=20this=20commi?= =?utf8?q?t:=20commit=204c225bb953611906f37a6117a6c920a9dd9877a2=20Author:?= =?utf8?q?=20=E9=83=AD=E6=AF=85=20=20Date:=20=20=20Mon?= =?utf8?q?=20May=2012=2017:11:01=202014=20+0800?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit rk3288: tb: Compatible sdk use f402's LCD&TP --- drivers/input/touchscreen/vtl_ts/chip.c | 2 +- drivers/input/touchscreen/vtl_ts/vtl_ts.c | 5 +++-- drivers/input/touchscreen/vtl_ts/vtl_ts.h | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/input/touchscreen/vtl_ts/chip.c b/drivers/input/touchscreen/vtl_ts/chip.c index ab73260fe435..c21f0678597f 100755 --- a/drivers/input/touchscreen/vtl_ts/chip.c +++ b/drivers/input/touchscreen/vtl_ts/chip.c @@ -26,7 +26,7 @@ static struct chip_cmd (*chip) = NULL; static unsigned char binary_data[] = { -#ifdef TB1_USE_F402 +#if(TB1_USE_F402) #include "f307&f317&f316_CT363S_01_V10_F7E9_140212.dat" #else #include "lx--js77_97_CT365_V01_E7DA_130419.dat" diff --git a/drivers/input/touchscreen/vtl_ts/vtl_ts.c b/drivers/input/touchscreen/vtl_ts/vtl_ts.c index 6d45cd93b169..6b9305e4223b 100755 --- a/drivers/input/touchscreen/vtl_ts/vtl_ts.c +++ b/drivers/input/touchscreen/vtl_ts/vtl_ts.c @@ -270,10 +270,11 @@ static void vtl_ts_report_xy_coord(struct ts_info *ts) y = ts->config_info.screen_max_y - y; #endif - #ifdef TB1_USE_F402 + #if(TB1_USE_F402) x = 2*x; y = 2*y; - #endif + #endif + //#if(DEBUG_ENABLE) //if((ts->debug)||(DEBUG_ENABLE)){ if(ts->debug){ diff --git a/drivers/input/touchscreen/vtl_ts/vtl_ts.h b/drivers/input/touchscreen/vtl_ts/vtl_ts.h index 4714e54c1c41..1959b55145a3 100755 --- a/drivers/input/touchscreen/vtl_ts/vtl_ts.h +++ b/drivers/input/touchscreen/vtl_ts/vtl_ts.h @@ -27,7 +27,7 @@ #define TS_I2C_SPEED 400000 //for rockchip -#ifdef TB1_USE_F402 +#if(TB1_USE_F402) #define XY_SWAP_ENABLE 1 #else #define XY_SWAP_ENABLE 0 @@ -35,7 +35,7 @@ #define X_REVERSE_ENABLE 0 -#ifdef TB1_USE_F402 +#if(TB1_USE_F402) #define Y_REVERSE_ENABLE 0 #else #define Y_REVERSE_ENABLE 1 -- 2.34.1