diff --git a/drivers/input/touchscreen/focaltech_0flash_mmi/Kbuild b/drivers/input/touchscreen/focaltech_0flash_mmi/Kbuild index 0b9d70e99260..494acf539817 100644 --- a/drivers/input/touchscreen/focaltech_0flash_mmi/Kbuild +++ b/drivers/input/touchscreen/focaltech_0flash_mmi/Kbuild @@ -41,3 +41,4 @@ ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI_ENABLE_DOUBLE_TAP) += -D ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI_ENABLE_PALM) += -DFOCALTECH_PALM_SENSOR_EN ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI_PANEL_NOTIFICATIONS) += -DFOCALTECH_CONFIG_PANEL_NOTIFICATIONS ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI_PEN_NOTIFIER) += -DFOCALTECH_PEN_NOTIFIER +ccflags-$(CONFIG_INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI_DRM_PANEL) += -DFOCALTECH_DRM_PANEL diff --git a/drivers/input/touchscreen/focaltech_0flash_mmi/Kconfig b/drivers/input/touchscreen/focaltech_0flash_mmi/Kconfig index 685474f85543..f496f3bb075c 100755 --- a/drivers/input/touchscreen/focaltech_0flash_mmi/Kconfig +++ b/drivers/input/touchscreen/focaltech_0flash_mmi/Kconfig @@ -73,3 +73,11 @@ config INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI_PEN_NOTIFIER help Say Y here to enable support for Pen functionality on Focaltech touch panel. If unsure, say N. + +config INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI_DRM_PANEL + bool "Moto Focaltech DRM Panel Detection" + depends on INPUT_TOUCHSCREEN_FOCALTECH_0FLASH_MMI + default n + help + Say Y here if you want to have DRM Panel Detection support on Focaltech touch panel. + If unsure, say N. diff --git a/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_config.h b/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_config.h index e3e7a73469e2..04b3ecf55f84 100755 --- a/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_config.h +++ b/drivers/input/touchscreen/focaltech_0flash_mmi/focaltech_config.h @@ -203,7 +203,7 @@ * FTS CONFIG_DRM_PANEL check & protection * default: disable */ -#if defined(CONFIG_DRM_PANEL) && defined(CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME_FT8006S_AA) +#if defined(FOCALTECH_DRM_PANEL) #define FTS_CONFIG_DRM_PANEL 1 #else #define FTS_CONFIG_DRM_PANEL 0