Skip to content

Commit

Permalink
Upd als_ps | add gx556
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperion70 committed Feb 2, 2019
1 parent b8bd729 commit 3cbcb9e
Show file tree
Hide file tree
Showing 10 changed files with 8,142 additions and 3,103 deletions.
8 changes: 5 additions & 3 deletions arch/arm64/configs/N1_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ CONFIG_XFRM_SUB_POLICY=y
CONFIG_XFRM_MIGRATE=y
CONFIG_NET_KEY=y
CONFIG_IKCONFIG_PROC=y
CONFIG_IKCONFIG=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
Expand Down Expand Up @@ -562,9 +563,9 @@ CONFIG_MTK_MEMCFG=y
CONFIG_CUSTOM_KERNEL_IMGSENSOR="imx258_mipi_raw imx258_mipi_mono s5k3p3sx_mipi_raw"

CONFIG_MTK_FINGERPRINT_SUPPORT=y
CONFIG_GOODIX_FINGERPRINT=y
#CONFIG_GX556_FINGERPRINT=y
#CONFIG_MTK_HALL_SUPPORT=y
#CONFIG_GOODIX_FINGERPRINT=y
CONFIG_GX556_FINGERPRINT=y
CONFIG_MTK_HALL_SUPPORT=y

# CONFIG_TOUCHSCREEN_MTK_GT1151=y
CONFIG_TOUCHSCREEN_MTK_SYNAPTICS=y
Expand All @@ -579,4 +580,5 @@ CONFIG_DEBUG_KMEMLEAK=y
CONFIG_DEBUG_KMEMLEAK_EARLY_LOG_SIZE=3200
CONFIG_DEBUG_KMEMLEAK_DEFAULT_OFF=y

CONFIG_MTK_RCU_MONITOR=y
# [hyperion70 add end]
22 changes: 4 additions & 18 deletions drivers/input/fingerprint/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,17 @@ config MTK_FINGERPRINT_SUPPORT
fingerprint driver will support fingerprint function

if MTK_FINGERPRINT_SUPPORT
config MTK_FINGERPRINT_SELECT
string "sensor type"
default "GX556"

config GX556_FINGERPRINT
tristate "goodix gx556 Fingerprint"
default n

if MTK_FINGERPRINT_SELECT = "FPC1145"
config FPC_FINGERPRINT
bool "FPC Fingerprint"
default y
---help---
FPC fingerprint FPC's 102x/104x device.
endif

if MTK_FINGERPRINT_SELECT = "GX556" || MTK_FINGERPRINT_SELECT = "GF5216"
config GOODIX_FINGERPRINT
bool "Goodix Fingerprint"
default y
default n
---help---
Goodix Fingerprint chip GF316M/GX556/GF3118M/GF518M/GF5118M/GF516M/GF816M/GF3208/GF3206/GF3266/GF3288/GF5206/GF5216/GF5208 TEE driver

config GOODIX_SENSOR_TYPE
string "SENSOR_TYPE"
default "GF318M"
---help---
Must input sensor type, or default is GF316M GF318M GF3118M GX556 GF5118M GF516M GF816M GF3208 GF5216
endif
endif
endmenu
7 changes: 7 additions & 0 deletions drivers/input/fingerprint/gx556/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
config FINGERPRINT_GT556
bool "gf5216(goodix fingerprint sensor) for dewav"
default n
help
It support different type sensor
in this platform. If this option
is set, it will support fingerprint gf3208 silead sensor .
13 changes: 13 additions & 0 deletions drivers/input/fingerprint/gx556/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include $(srctree)/drivers/misc/mediatek/Makefile.custom
# Makefile for the fingerprint device.
ccflags-y += -I$(srctree)/drivers/spi/mediatek/$(MTK_PLATFORM)
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat
ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include
subdir-ccflags-y += -Werror
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat/$(MTK_PLATFORM)/include
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/include/mt-plat
subdir-ccflags-y += -I$(srctree)/drivers/spi/mediatek/$(MTK_PLATFORM)
subdir-ccflags-y += -I$(srctree)/drivers/misc/mediatek/base/power/mt6735/

obj-y += gf_spi.o platform.o
Loading

0 comments on commit 3cbcb9e

Please sign in to comment.