input/focal: initialize input id to support fod event

focal:
Initialize input id, otherwise the fod event will be ignored by framework.

Change-Id: I17d0285dd67699fd5e3ab95190bd288289a02e43
Reviewed-on: https://gerrit.mot.com/2838511
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
Xiaojun Lv 2023-12-28 13:55:36 +08:00 • committed by Michael Bestas
commit e4a35b32a6
No known key found for this signature in database
3 changed files with 18 additions and 0 deletions

View file

@ -52,6 +52,10 @@ ifeq ($(TOUCHSCREEN_LAST_TIME),true)
KBUILD_OPTIONS += CONFIG_FTS_LAST_TIME=y
endif
ifeq ($(FTS_INPUT_ID),true)
KBUILD_OPTIONS += CONFIG_FTS_INPUT_ID=y
endif
else
ifneq ($(FOCALTECH_TOUCH_IC_NAME),)
KERNEL_CFLAGS += CONFIG_INPUT_FOCALTECH_V3_MMI_IC_NAME=$(FOCALTECH_TOUCH_IC_NAME)

View file

@ -72,3 +72,11 @@ config FTS_LAST_TIME
help
Say Y here to enable last time functionality on Focaltech V3 touch panel.
If unsure, say N.
config FTS_INPUT_ID
bool "Enable input ID"
depends on TOUCHSCREEN_FTS_V3
default n
help
Say Y here to enable input ID functionality on Focaltech V3 touch panel.
If unsure, say N.

View file

@ -1220,6 +1220,12 @@ static int fts_input_init(struct fts_ts_data *ts_data)
input_dev->id.bustype = BUS_SPI;
input_dev->dev.parent = ts_data->dev;
#ifdef CONFIG_FTS_INPUT_ID
input_dev->id.product = 0xDEAD;
input_dev->id.vendor = 0xBEEF;
input_dev->id.version = 10427;
#endif
input_set_drvdata(input_dev, ts_data);
__set_bit(EV_SYN, input_dev->evbit);