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 <hujing3@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1869629
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wei Deng <dengwei1@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
hujing3 2021-02-03 15:04:04 +08:00 • committed by Jing Hu
commit b493e1d87e
2 changed files with 4 additions and 1 deletions

View file

@ -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
};

View file

@ -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);