mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
TP: fix tp bug cause by this commit:
commit 4c225bb953
Author: 郭毅 <gy@rock-chips.com>
Date: Mon May 12 17:11:01 2014 +0800
rk3288: tb: Compatible sdk use f402's LCD&TP
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user