From b493e1d87e73789463d64b88d93e0d8e7d483774 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 3 Feb 2021 15:04:04 +0800 Subject: [PATCH] ili9882_mmi: CQA test node update for tianma panel Capri: support multiple panels which need different test ini config Config different touch node for all tianma panels NO_PROP_NEEDED Change-Id: I024f53c3b07691c09e073c22829464897d40b763 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/1869629 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- drivers/input/touchscreen/ili9882_mmi/ili9882.h | 3 +++ drivers/input/touchscreen/ili9882_mmi/ili9882_node.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/ili9882_mmi/ili9882.h b/drivers/input/touchscreen/ili9882_mmi/ili9882.h index 8988fe81c3bc..4bdf9aedfcff 100755 --- a/drivers/input/touchscreen/ili9882_mmi/ili9882.h +++ b/drivers/input/touchscreen/ili9882_mmi/ili9882.h @@ -334,6 +334,8 @@ enum NODE_MODE_SWITCH { DEBUG_LITE_AREA }; +//make sure define mode in sequence per panel vendor +//some panel need check vendor with model enum TP_MODEL { MODEL_DEF = 0, MODEL_CSOT, @@ -349,6 +351,7 @@ enum TP_MODEL { MODEL_TM_9882N, MODEL_TM_9882H, MODEL_TIANMA_9882N, + MODEL_TM_END, //For tianma panel check MODEL_HLT }; diff --git a/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c b/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c index 7bacc0466550..19859b288df9 100755 --- a/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c +++ b/drivers/input/touchscreen/ili9882_mmi/ili9882_node.c @@ -2545,7 +2545,7 @@ int ilitek_sys_init(void) ILI_ERR("Failed to create touchscreen class!\n"); return ret; } - if(MODEL_TM == ilits->tp_module) + if((ilits->tp_module >= MODEL_TM) && (ilits->tp_module < MODEL_TM_END)) touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME_TM); else touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME);