diff options
author | Sivasankari <Sivasankari.muthusamy@st.com> | 2019-09-03 14:10:21 +0800 |
---|---|---|
committer | David Chen <davidycchen@google.com> | 2019-09-05 01:52:17 +0000 |
commit | bd21bc3b51cc08cb605e810489e55709842e9164 (patch) | |
tree | df211efdb31b843dd4c16fd153829b13f97b3fbc | |
parent | b297a90556fad5b6c2af9e1710fbe64732dbfcab (diff) | |
download | fts_touch_s5-bd21bc3b51cc08cb605e810489e55709842e9164.tar.gz |
input: touchscreen: stm: Driver version 5.2.16.11
Added new production test item for ITO data evaluation
Signed-off-by: Sivasankari <Sivasankari.muthusamy@st.com>
Change-Id: If3b1400c2a1bdf1349849ab5ff486acf9bfa4b59
-rw-r--r-- | fts.h | 4 | ||||
-rw-r--r-- | fts_lib/ftsTest.c | 42 | ||||
-rw-r--r-- | fts_lib/ftsTest.h | 2 |
3 files changed, 44 insertions, 4 deletions
@@ -52,9 +52,9 @@ */ /* **** CODE CONFIGURATION **** */ #define FTS_TS_DRV_NAME "fts" /* driver name */ -#define FTS_TS_DRV_VERSION "5.2.16.10" /* driver version string +#define FTS_TS_DRV_VERSION "5.2.16.11" /* driver version string * */ -#define FTS_TS_DRV_VER 0x0502100A /* driver version u32 format */ +#define FTS_TS_DRV_VER 0x0502100B /* driver version u32 format */ /* #define DEBUG */ /* /< define to print more logs in the kernel log * and better follow the code flow */ diff --git a/fts_lib/ftsTest.c b/fts_lib/ftsTest.c index 080bae5..b0a26ea 100644 --- a/fts_lib/ftsTest.c +++ b/fts_lib/ftsTest.c @@ -68,6 +68,7 @@ int initTestToDo(void) #ifndef COMPUTE_INIT_METHOD tests.MutualRawAdjITO = 1; + tests.MutualRawMapITO = 1; tests.MutualRaw = 0; tests.MutualRawMap = 1; @@ -165,6 +166,7 @@ int initTestToDo(void) tests.SelfSenseCxTotalAdjLP = 0; #else tests.MutualRawAdjITO = 1; + tests.MutualRawMapITO = 1; tests.MutualRaw = 1; /* in case of YOCTA please use Map */ tests.MutualRawMap = 0; @@ -962,7 +964,7 @@ int production_test_ito(const char *path_limits, TestToDo *todo, pr_info("ITO Command = OK!\n"); pr_info("MS RAW ITO ADJ TEST:\n"); - if (todo->MutualRawAdjITO == 1) { + if (todo->MutualRawAdjITO == 1 || todo->MutualRawMapITO == 1) { pr_info("Collecting MS Raw data...\n"); if (frame != NULL) { @@ -1068,8 +1070,44 @@ int production_test_ito(const char *path_limits, TestToDo *todo, kfree(adj); adj = NULL; + + pr_info("MS RAW ITO MIN MAX TEST:\n"); + if (todo->MutualRawMapITO == 1) { + res = parseProductionTestLimits(path_limits, + &limit_file, + MS_RAW_ITO_MIN_MAX, + &thresholds, &trows, + &tcolumns); + if (res < OK || (trows != 1 || tcolumns != 2)) { + pr_err("production_test_data: parseProduction" + "TestLimits MS_RAW_ITO_MIN_MAX failed... ERROR %08X\n", + ERROR_PROD_TEST_DATA); + res |= ERROR_PROD_TEST_DATA; + goto ERROR; + } + + + res = checkLimitsMinMax((*ptr_frame).node_data, + (*ptr_frame).header.force_node, + (*ptr_frame).header.sense_node, + thresholds[0], + thresholds[1]); + if (res != OK) { + pr_err("production_test_data: checkLimitsMinMax" + " MS RAW ITO failed... ERROR COUNT = %d\n", res); + pr_err("MS RAW ITO MIN MAX TEST:................." + "FAIL\n\n"); + res |= ERROR_PROD_TEST_DATA; + goto ERROR; + } else + pr_info("MS RAW ITO MIN MAX TEST:................OK\n"); + kfree(thresholds); + thresholds = NULL; + } else + pr_info("MS RAW ITO MIN MAX TEST:................." + "SKIPPED\n"); } else - pr_info("MS RAW ITO ADJ TEST:.................SKIPPED\n"); + pr_info("MS RAW ITO TEST:.................SKIPPED\n"); ERROR: if (thresholds != NULL) diff --git a/fts_lib/ftsTest.h b/fts_lib/ftsTest.h index a50bb3c..c17f646 100644 --- a/fts_lib/ftsTest.h +++ b/fts_lib/ftsTest.h @@ -97,6 +97,7 @@ #define MS_RAW_ADJV "MS_RAW_DATA_ADJ_VERTICAL" #define MS_RAW_ITO_ADJH "MS_RAW_ITO_DATA_ADJ_HORIZONTAL" #define MS_RAW_ITO_ADJV "MS_RAW_ITO_DATA_ADJ_VERTICAL" +#define MS_RAW_ITO_MIN_MAX "MS_RAW_ITO_MIN_MAX" #define MS_RAW_LP_MIN_MAX "MS_RAW_LOWPOWER_DATA_MIN_MAX" #define MS_RAW_LP_EACH_NODE_MIN "MS_RAW_LOWPOWER_DATA_EACH_MIN" #define MS_RAW_LP_EACH_NODE_MAX "MS_RAW_LOWPOWER_DATA_EACH_MAX" @@ -248,6 +249,7 @@ typedef struct { int MutualRawGapLP; /* /< MS Low Power Raw Gap(max-min) test */ int MutualRawAdjLP; /* /< MS Low Power Raw Adjacent test */ int MutualRawAdjITO; /* /< MS Raw Adjacent test during ITO test */ + int MutualRawMapITO; /* /< MS Raw ITO min/Max test */ int MutualCx1; /* /< MS Cx1 min/Max test */ int MutualCx2; /* /< MS Cx2 min/Max (for each node) test */ |