1.add option "CONFIG_LCD_REVERT_180_DEGREE" which can revert screen
2.Only 1 touch point by limited TP driver
This commit is contained in:
@@ -775,7 +775,7 @@ static void cst3xx_touch_report(struct work_struct *work)
|
||||
buf[1] = 0x00;
|
||||
ret = cst3xx_i2c_read_register(hyn_ts_data->client, buf, 7);
|
||||
if(ret < 0) {
|
||||
HYN_ERROR(" iic read touch point data failed.\n");
|
||||
pr_emerg(" iic read touch point data failed.\n");
|
||||
goto OUT_PROCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -82,12 +82,17 @@
|
||||
|
||||
#define HYN_X_DISPLAY_DEFAULT 600
|
||||
#define HYN_Y_DISPLAY_DEFAULT 1024
|
||||
#if defined(CONFIG_LCD_REVERT_180_DEGREE)
|
||||
#define HYN_X_REVERT 1 // 180 degree
|
||||
#define HYN_Y_REVERT 1 // 180 degree
|
||||
#else
|
||||
#define HYN_X_REVERT 0
|
||||
#define HYN_Y_REVERT 0
|
||||
#endif
|
||||
#define HYN_XY_EXCHANGE 0
|
||||
|
||||
#define HYN_MAX_KEYS 3
|
||||
#define HYN_MAX_POINTS 5
|
||||
#define HYN_MAX_POINTS 1
|
||||
#define HYN_MAX_SELFCAP_ID 2
|
||||
|
||||
/**********************************************************/
|
||||
|
||||
Reference in New Issue
Block a user