mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
DLKM: touch: Support CQA test for ft8756
Since the firmware size of ft8756 will exceed 64K, so the CQA test jar and ini need to be changed, at the same time have to change touch driver to match this change.Now we need to increase size when calling download firmware function. Change-Id: Icea129ab53663006ebedce0af1ff0ba5b8a03f1d Signed-off-by: wengjun1 <wengjun1@motorola.com> Reviewed-on: https://gerrit.mot.com/1391750 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yang Yang <yangy19@motorola.com> Reviewed-by: Jialei Hao <haojl2@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3a242c673c
commit
713f4fb686
2 changed files with 9 additions and 0 deletions
|
|
@ -235,13 +235,21 @@ int fts_enter_test_environment(bool test_state)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME_FT8756
|
||||
if (!upg->fw || (upg->fw_length <= FTS_MAX_LEN_APP_FT8756)) {
|
||||
#else
|
||||
if (!upg->fw || (upg->fw_length <= FTS_MAX_LEN_APP)) {
|
||||
#endif
|
||||
FTS_INFO("not multi-app");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (test_state) {
|
||||
#ifdef CONFIG_INPUT_FOCALTECH_0FLASH_MMI_IC_NAME_FT8756
|
||||
ret = fts_fw_download(upg->fw + FTS_MAX_LEN_APP_FT8756, upg->fw_length, true);
|
||||
#else
|
||||
ret = fts_fw_download(upg->fw + FTS_MAX_LEN_APP, upg->fw_length, true);
|
||||
#endif
|
||||
} else {
|
||||
ret = fts_fw_download(upg->fw, upg->fw_length, true);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@
|
|||
#define FTS_MAX_LEN_ECC_CALC 0xFFFE /* must be even */
|
||||
#define FTS_MIN_LEN 0x120
|
||||
#define FTS_MAX_LEN_FILE (128 * 1024)
|
||||
#define FTS_MAX_LEN_APP_FT8756 (88 * 1024)
|
||||
#define FTS_MAX_LEN_APP (64 * 1024)
|
||||
#define FTS_MAX_LEN_APP_PARAMS (32 * 1024)
|
||||
#define FTS_MAX_LEN_SECTOR (4 * 1024)
|
||||
|
|
|
|||
Loading…
Reference in a new issue