Add LCD Kernel patch for longsleep's kernel

This commit is contained in:
Martin Bergstrand 2016-11-02 12:50:32 -05:00
parent 736e1ef047
commit b4004df66b

View file

@ -0,0 +1,39 @@
From 832757c73ba9b69d0ee2d2753cca228f0d831386 Mon Sep 17 00:00:00 2001
From: Martin Bergstrand <martin@bergstrand.us>
Date: Mon, 24 Oct 2016 17:00:54 -0500
Subject: [PATCH] Use Correct I2C Touchscreen Driver
---
drivers/input/touchscreen/gt9xxf/gt9xxf.c | 5 +++++
drivers/input/touchscreen/gt9xxf/gt9xxf.h | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/gt9xxf/gt9xxf.c b/drivers/input/touchscreen/gt9xxf/gt9xxf.c
index 83f2358..95b13f4 100755
--- a/drivers/input/touchscreen/gt9xxf/gt9xxf.c
+++ b/drivers/input/touchscreen/gt9xxf/gt9xxf.c
@@ -1454,6 +1454,11 @@ static s32 gtp_init_panel(struct goodix_ts_data *ts)
GTP_INFO("gt9xx:index = %d\n",index);
}
+ if (!strcmp(config_info.name,"gt911_DB2")){
+ index = 4;
+ GTP_INFO("gt9xx:index = %d\n",index);
+
+ }
}
#endif
diff --git a/drivers/input/touchscreen/gt9xxf/gt9xxf.h b/drivers/input/touchscreen/gt9xxf/gt9xxf.h
index 3db7c68..dd2a729 100755
--- a/drivers/input/touchscreen/gt9xxf/gt9xxf.h
+++ b/drivers/input/touchscreen/gt9xxf/gt9xxf.h
@@ -156,7 +156,7 @@ extern void gtp_io_init(int ms);
// TODO: define your config for Sensor_ID == 4 here, if needed
#define CTP_CFG_GROUP5 {\
- }
+ 0x42,0x00,0x04,0x58,0x02,0x0A,0x0D,0x00,0x01,0x08,0x28,0x08,0x5A,0x46,0x03,0x05,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x87,0x28,0x0A,0x41,0x43,0xB5,0x06,0x00,0x00,0x00,0x42,0x02,0x11,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x32,0x5A,0x94,0xC5,0x02,0x08,0x00,0x00,0x04,0x98,0x35,0x00,0x8A,0x3B,0x00,0x7C,0x43,0x00,0x72,0x4B,0x00,0x67,0x55,0x00,0x67,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x12,0x10,0x0E,0x0C,0x0A,0x08,0x06,0x04,0x02,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x26,0x24,0x22,0x21,0x20,0x1F,0x1E,0x1D,0x0C,0x0A,0x08,0x06,0x04,0x02,0x00,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x01}
// TODO: define your config for Sensor_ID == 5 here, if needed
#define CTP_CFG_GROUP6 {\