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
|
||||
|
||||
/**********************************************************/
|
||||
|
||||
@@ -239,3 +239,9 @@ config LCD_SUPPORT_NT35510_MIPI
|
||||
help
|
||||
If you want to support nt35510_mipi panel for display driver, select it.
|
||||
|
||||
config LCD_REVERT_180_DEGREE
|
||||
bool "LCD revert 180 degree with TP"
|
||||
default n
|
||||
---help---
|
||||
If you want to revert lcd 180 degree with TP, select it.
|
||||
|
||||
|
||||
@@ -235,7 +235,11 @@ static struct LCM_setting_table jd9365_initialization_setting[] = {
|
||||
{0xC1,17,{0x53,0x80,0x32,0x32,0x77,0xE4,0xF7,0xF7,0xCC,0xCC,0x7F,0x7F,0x11,0x11,0x00,0x00,0x32}},//18
|
||||
{0xC7,12,{0x10,0x00,0x0A,0x00,0x00,0x00,0x00,0x00,0xED,0xC7,0x00,0xA5}},//13
|
||||
{0xC8,4,{0x10,0x40,0x1E,0x03}},//5
|
||||
#if defined(CONFIG_LCD_REVERT_180_DEGREE)
|
||||
{0xCC,1,{0x07}},//2
|
||||
#else
|
||||
{0xCC,1,{0x0b}},//2
|
||||
#endif
|
||||
{0xE0,34,{0x00,0x01,0x02,0x3D,0x3F,0x3F,0x2D,0x2F,0x04,0x09,0x0C,0x10,0x11,0x0F,0x12,0x0F,0x15,0x00,0x01,0x02,0x3D,0x3F,0x3F,0x2D,0x2F,0x04,0x09,0x0C,0x10,0x11,0x0F,0x12,0x0F,0x15}},//35
|
||||
{0xE1,7,{0x11,0x11,0x91,0x00,0x00,0x00,0x00}},//8
|
||||
{0xE3,14,{0x07,0x07,0x0B,0x0B,0x0B,0x0B,0x00,0x00,0x00,0x00,0xFF,0x04,0xC0,0x10}},//15
|
||||
|
||||
Reference in New Issue
Block a user