Skip to content

Commit

Permalink
Added N1_defconfig and some stuff for N1
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperion70 committed Jan 27, 2019
1 parent cc6d534 commit 5e6ed67
Show file tree
Hide file tree
Showing 38 changed files with 28,000 additions and 35 deletions.
4,860 changes: 4,860 additions & 0 deletions arch/arm64/boot/dts/mediatek/N1.dts

Large diffs are not rendered by default.

579 changes: 579 additions & 0 deletions arch/arm64/configs/N1_defconfig

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions drivers/input/touchscreen/mediatek/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,20 @@ config TOUCHSCREEN_MTK_FT8716
module will be called.
source "drivers/input/touchscreen/mediatek/FT8716/Kconfig"

source "drivers/input/touchscreen/mediatek/gn_nt36xxx/Kconfig"

config TOUCHSCREEN_MTK_SYNAPTICS
tristate "synaptics_dsx"
depends on I2C
help
Say Y here if you have a synaptics_dsx
connected to your system.

If unsure, say N.

To compile this driver as a module, choose M here: the
module will be called synaptics_dsx.

source "drivers/input/touchscreen/mediatek/synaptics_dsx/Kconfig"

endif
5 changes: 3 additions & 2 deletions drivers/input/touchscreen/mediatek/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
subdir-ccflags-y += -Werror
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/
ccflags-y += -I$(srctree)/drivers/input/touchscreen/mediatek
# In case the platform does NOT support this type of sensors
obj-y += mtk_tpd.o
Expand All @@ -12,5 +13,5 @@ obj-y += tpd_misc.o
obj-y += tpd_setting.o

obj-$(CONFIG_TOUCHSCREEN_MTK_GT1151) += GT1151/

obj-$(CONFIG_TOUCHSCREEN_MTK_FT8716) += FT8716/
obj-$(CONFIG_TOUCHSCREEN_MTK_SYNAPTICS) += synaptics_dsx/
obj-$(CONFIG_TOUCHSCREEN_MTK_NT36xxx) += gn_nt36xxx/
20 changes: 20 additions & 0 deletions drivers/input/touchscreen/mediatek/gn_nt36xxx/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Touchscreen driver configuration
#
if TOUCHSCREEN_MTK_NT36xxx

choice
default TOUCHSCREEN_NT36xxx_1080_1920
prompt "Novatek NT36xxx Panels"

config TOUCHSCREEN_NT36xxx_1080_1920
bool "NT36xxx_1080_1920"
depends on I2C
help
Say Y here if you have a Novatek NT36xxx Panel
to the host processor over I2C

If unsure, say N.
endchoice

endif
8 changes: 8 additions & 0 deletions drivers/input/touchscreen/mediatek/gn_nt36xxx/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# include $(srctree)/drivers/misc/mediatek/Makefile.custom

# Linux driver folder
ccflags-y += -I$(srctree)/drivers/input/touchscreen/mediatek/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include/
#obj-$(CONFIG_TOUCHSCREEN_NT36xxx_1080_1920) += nt36xxx.o nt36xxx_ext_proc.o nt36xxx_fw_update.o nt36xxx_mp_ctrlram.o
obj-y += nt36xxx.o nt36xxx_ext_proc.o nt36xxx_fw_update.o nt36xxx_mp_ctrlram.o gn_tpd_feature.o
Loading

0 comments on commit 5e6ed67

Please sign in to comment.