Browse Source

touch: pineapple: enable touch drivers for pineapple

Add touch config files and enable for pineapple platform

Change-Id: Ibad6ce0e661a5d2c0e8794573e18abbf1fe2b88f
Signed-off-by: Simranjeet Thind <[email protected]>
Simranjeet Thind 2 years ago
parent
commit
3127a1879a
4 changed files with 22 additions and 0 deletions
  1. 5 0
      Kbuild
  2. 4 0
      Makefile.am
  3. 5 0
      config/gki_pineappletouch.conf
  4. 8 0
      config/gki_pineappletouchconf.h

+ 5 - 0
Kbuild

@@ -16,6 +16,11 @@ endif
 	LINUX_INC += -include $(TOUCH_ROOT)/config/gki_khajetouchconf.h
 #endif
 
+#ifeq ($(CONFIG_ARCH_PINEAPPLE), y)
+	include $(TOUCH_ROOT)/config/gki_pineappletouch.conf
+	LINUX_INC += -include $(TOUCH_ROOT)/config/gki_pineappletouchconf.h
+#endif
+
 LINUX_INC +=	-Iinclude/linux \
 		-Iinclude/linux/drm \
 		-Iinclude/linux/gunyah \

+ 4 - 0
Makefile.am

@@ -6,6 +6,10 @@ ifeq ($(TARGET_SUPPORT),genericarmv8)
 	KBUILD_OPTIONS += CONFIG_ARCH_WAIPIO=y
 endif
 
+ifeq ($(TARGET_SUPPORT),genericarmv8)
+	KBUILD_OPTIONS += CONFIG_ARCH_PINEAPPLE=y
+endif
+
 all:
 	$(MAKE) -C $(KERNEL_SRC) M=$(M) modules $(KBUILD_OPTIONS)
 

+ 5 - 0
config/gki_pineappletouch.conf

@@ -0,0 +1,5 @@
+export CONFIG_TOUCHSCREEN_NT36XXX_I2C=y
+export CONFIG_TOUCHSCREEN_GOODIX_BRL=y
+export CONFIG_TOUCHSCREEN_ATMEL_MXT=y
+export CONFIG_TOUCHSCREEN_DUMMY=y
+export CONFIG_MSM_TOUCH=m

+ 8 - 0
config/gki_pineappletouchconf.h

@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
+ */
+
+#define CONFIG_TOUCHSCREEN_NT36XXX_I2C 1
+#define CONFIG_TOUCHSCREEN_GOODIX_BRL 1
+#define CONFIG_TOUCHSCREEN_ATMEL_MXT 1