rhodec:Bringup touch TXD ILI7807S

Modify:
- Add the configuration for txd ili7807s.
- Change the ic name to ilitek_txd for CQA test.

Change-Id: I61ebc4ea91dbb0e016589ff3938a31f727514144
Reviewed-on: https://gerrit.mot.com/2176648
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yeqing Wang <wangyq13@motorola.com>
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
wingte49 2022-01-21 21:37:54 +08:00 • committed by bijiaming01
commit 87f429da74
5 changed files with 26 additions and 1 deletions

View file

@ -135,6 +135,14 @@ static unsigned char CTPM_FW_CSOT_7807S[] = {
0xFF,
};
#define TXD_7807S_INI_NAME_PATH "/sdcard/mp_txd_7807s.ini"
#define TXD_7807S_FW_FILP_PATH "/sdcard/ILITEK_FW_TXD_7807S"
#define TXD_7807S_INI_REQUEST_PATH "mp_txd_7807s.ini"
#define TXD_7807S_FW_REQUEST_PATH "ILITEK_FW_TXD_7807S"
static unsigned char CTPM_FW_TXD_7807S[] = {
0xFF,
};
#define TIANMA_9882N_INI_NAME_PATH "/sdcard/mp_tianma_9882n.ini"
#define TIANMA_9882N_FW_FILP_PATH "/sdcard/ILITEK_FW_TIANMA_9882N"
#define TIANMA_9882N_INI_REQUEST_PATH "mp_tianma_9882n.ini"

View file

@ -984,6 +984,15 @@ static void ili_update_tp_module_info(void)
ilits->md_fw_ili = CTPM_FW_CSOT_7807S;
ilits->md_fw_ili_size = sizeof(CTPM_FW_CSOT_7807S);
break;
case MODEL_TXD_7807S:
ilits->md_name = "TXD_7807S";
ilits->md_fw_filp_path = TXD_7807S_FW_FILP_PATH;
ilits->md_fw_rq_path = TXD_7807S_FW_REQUEST_PATH;
ilits->md_ini_path = TXD_7807S_INI_NAME_PATH;
ilits->md_ini_rq_path = TXD_7807S_INI_REQUEST_PATH;
ilits->md_fw_ili = CTPM_FW_TXD_7807S;
ilits->md_fw_ili_size = sizeof(CTPM_FW_TXD_7807S);
break;
case MODEL_AUO:
ilits->md_name = "AUO";
ilits->md_fw_filp_path = AUO_FW_FILP_PATH;

View file

@ -359,6 +359,8 @@ enum TP_MODEL {
MODEL_TXD_9882H,
MODEL_TXD_9882N,
MODEL_TXD_7806S,
MODEL_TXD_7807S,
MODEL_TXD_END, //For txd panel check
MODEL_TM,
MODEL_TM_9882N,
MODEL_TM_9882H,

View file

@ -110,6 +110,7 @@ static unsigned char g_user_buf[USER_STR_BUFF] = {0};
#define ILI_SPI_NAME "ilitek"
#define ILI_SPI_NAME_TM "ilitek_tm"
#define ILI_SPI_NAME_CSOT "ilitek_csot"
#define ILI_SPI_NAME_TXD "ilitek_txd"
static struct class *touchscreen_class;
static struct device *touchscreen_class_dev;
@ -2568,6 +2569,8 @@ int ilitek_sys_init(void)
touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME_TM);
else if((ilits->tp_module >= MODEL_CSOT) && (ilits->tp_module < MODEL_CSOT_END))
touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME_CSOT);
else if((ilits->tp_module >= MODEL_TXD) && (ilits->tp_module < MODEL_TXD_END))
touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME_TXD);
else
touchscreen_class_dev = device_create(touchscreen_class, NULL, devno, NULL, ILI_SPI_NAME);

View file

@ -474,7 +474,10 @@ static int ili_parse_tp_module()
if (strstr(active_panel_name, "ili7807s")) {
tp_module = MODEL_CSOT_7807S;
}
}
} else if (strstr(active_panel_name, "txd")) {
if (strstr(active_panel_name, "ili7807s")) {
tp_module = MODEL_TXD_7807S;
}
}
ILI_INFO("ili_parse_tp_module=%d\n", tp_module);
return tp_module;