fix gt911 touchscreen driver for milkv 8inch panel

Signed-off-by: carbon <carbon@milkv.io>
This commit is contained in:
carbon
2024-06-29 15:24:54 +08:00
parent 5a65748923
commit 3bd12daea0

View File

@ -40,7 +40,9 @@
#ifdef CONFIG_OF #ifdef CONFIG_OF
#include <linux/of_gpio.h> #include <linux/of_gpio.h>
#include <linux/regulator/consumer.h> #include <linux/regulator/consumer.h>
#define GTP_CONFIG_OF
#endif #endif
#ifdef CONFIG_FB #ifdef CONFIG_FB
#include <linux/notifier.h> #include <linux/notifier.h>
#include <linux/fb.h> #include <linux/fb.h>
@ -50,9 +52,9 @@
#endif #endif
//***************************PART1:ON/OFF define******************************* //***************************PART1:ON/OFF define*******************************
#define GTP_CUSTOM_CFG 1 #define GTP_CUSTOM_CFG 0
#define GTP_CHANGE_X2Y 0 //swap x y #define GTP_CHANGE_X2Y 0 //swap x y
#define GTP_DRIVER_SEND_CFG 1 //driver send config #define GTP_DRIVER_SEND_CFG 0 //driver send config
#define GTP_HAVE_TOUCH_KEY 0 #define GTP_HAVE_TOUCH_KEY 0
#define GTP_POWER_CTRL_SLEEP 0 //power off when suspend #define GTP_POWER_CTRL_SLEEP 0 //power off when suspend
#define GTP_ICS_SLOT_REPORT 0 // slot protocol #define GTP_ICS_SLOT_REPORT 0 // slot protocol