Browse Source

touch: blair: enable goodix touch driver for blair

Add goodix touch config files and enable for blair platform.

Change-Id: I4ba4407459f469dc551083d75aa610d13ef39f51
Signed-off-by: Jyothi bommidi <[email protected]>
Jyothi bommidi 1 year ago
parent
commit
720eb08518
5 changed files with 17 additions and 2 deletions
  1. 11 0
      Android.mk
  2. 1 0
      config/gki_blairtouch.conf
  3. 1 0
      config/gki_blairtouchconf.h
  4. 2 1
      touch_driver_board.mk
  5. 2 1
      touch_driver_product.mk

+ 11 - 0
Android.mk

@@ -202,6 +202,17 @@ else ifeq ($(TARGET_BOARD_PLATFORM), blair)
        include $(DLKM_DIR)/Build_external_kernelmodule.mk
        ###########################################################
 
+       ###########################################################
+       include $(CLEAR_VARS)
+       LOCAL_SRC_FILES   := $(wildcard $(LOCAL_PATH)/**/*) $(wildcard $(LOCAL_PATH)/*)
+       LOCAL_MODULE              := goodix_ts.ko
+       LOCAL_MODULE_KBUILD_NAME  := goodix_ts.ko
+       LOCAL_MODULE_TAGS         := optional
+       #LOCAL_MODULE_DEBUG_ENABLE := true
+       LOCAL_MODULE_PATH         := $(KERNEL_MODULES_OUT)
+       include $(DLKM_DIR)/Build_external_kernelmodule.mk
+       ###########################################################
+
 else ifeq ($(TARGET_BOARD_PLATFORM), crow)
 
        ###########################################################

+ 1 - 0
config/gki_blairtouch.conf

@@ -5,5 +5,6 @@ export CONFIG_TOUCHSCREEN_SYNAPTICS_TCM=y
 export CONFIG_TOUCHSCREEN_SYNAPTICS_TCM_I2C=y
 export CONFIG_TOUCHSCREEN_SYNAPTICS_TCM_CORE=y
 export CONFIG_TOUCHSCREEN_SYNAPTICS_TCM_TOUCH=y
+export CONFIG_TOUCHSCREEN_GOODIX_BRL=y
 export CONFIG_TOUCHSCREEN_FTS_DIRECTORY="focaltech_touch"
 export CONFIG_FTS_TRUSTED_TOUCH=n

+ 1 - 0
config/gki_blairtouchconf.h

@@ -9,4 +9,5 @@
 #define CONFIG_TOUCHSCREEN_SYNAPTICS_TCM_I2C 1
 #define CONFIG_TOUCHSCREEN_SYNAPTICS_TCM_CORE 1
 #define CONFIG_TOUCHSCREEN_SYNAPTICS_TCM_TOUCH 1
+#define CONFIG_TOUCHSCREEN_GOODIX_BRL 1
 #define CONFIG_TOUCHSCREEN_FTS_DIRECTORY "focaltech_touch"

+ 2 - 1
touch_driver_board.mk

@@ -26,7 +26,8 @@ ifeq ($(TOUCH_DLKM_ENABLE),  true)
                         else ifeq ($(TARGET_BOARD_PLATFORM), blair)
                                 BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko \
                                         $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
-                                        $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
+                                        $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko \
+                                        $(KERNEL_MODULES_OUT)/goodix_ts.ko
                         else ifeq ($(TARGET_BOARD_PLATFORM), crow)
                                 BOARD_VENDOR_KERNEL_MODULES += $(KERNEL_MODULES_OUT)/goodix_ts.ko
                         else ifeq ($(TARGET_BOARD_PLATFORM), bengal)

+ 2 - 1
touch_driver_product.mk

@@ -24,7 +24,8 @@ ifeq ($(TOUCH_DLKM_ENABLE),  true)
         else ifeq ($(TARGET_BOARD_PLATFORM), blair)
                 PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/focaltech_fts.ko \
                         $(KERNEL_MODULES_OUT)/nt36xxx-i2c.ko \
-                        $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko
+                        $(KERNEL_MODULES_OUT)/synaptics_tcm_ts.ko \
+                        $(KERNEL_MODULES_OUT)/goodix_ts.ko
         else ifeq ($(TARGET_BOARD_PLATFORM), crow)
                 PRODUCT_PACKAGES += $(KERNEL_MODULES_OUT)/goodix_ts.ko
         else ifeq ($(TARGET_BOARD_PLATFORM), bengal)