summaryrefslogtreecommitdiff
path: root/tcm/synaptics_touchcom_core_dev.h
diff options
context:
space:
mode:
authordavidycchen <davidycchen@google.com>2021-10-21 11:48:00 +0800
committerDavid Chen <davidycchen@google.com>2021-10-21 09:20:09 +0000
commit27d75c78db2a2c324f077618a3ecb2ff9be622be (patch)
treed8bd33aad0cc5d5aeedb5e230058896d91a9357a /tcm/synaptics_touchcom_core_dev.h
parent4a947d1ba4f75eb46381fa62e6d6e768c082c21f (diff)
downloadsynaptics_touch-27d75c78db2a2c324f077618a3ecb2ff9be622be.tar.gz
synaptics: update dirver verison to 0112
New driver provided by vendor with following difference: 1. Update firmware with different config id. 2. Input device re-creation after firmware update. Bug: 199104450 Test: Touch is functional. Signed-off-by: davidycchen <davidycchen@google.com> Change-Id: I91a82dd930c4fd9e202189f01332635913c959c1
Diffstat (limited to 'tcm/synaptics_touchcom_core_dev.h')
-rw-r--r--tcm/synaptics_touchcom_core_dev.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tcm/synaptics_touchcom_core_dev.h b/tcm/synaptics_touchcom_core_dev.h
index 0b8bcf4..4765713 100644
--- a/tcm/synaptics_touchcom_core_dev.h
+++ b/tcm/synaptics_touchcom_core_dev.h
@@ -44,7 +44,7 @@
#include "syna_tcm2_platform.h"
-#define SYNA_TCM_CORE_LIB_VERSION 0x0111
+#define SYNA_TCM_CORE_LIB_VERSION 0x0112
/**
@@ -596,7 +596,7 @@ struct tcm_message_data_blob {
unsigned char seq_toggle;
unsigned int default_resp_reading;
- /* completion event command processing */
+ /* completion event for command processing */
syna_pal_completion_t cmd_completion;
/* internal buffers
@@ -614,6 +614,13 @@ struct tcm_message_data_blob {
/* mutex for the read/write protection */
syna_pal_mutex_t rw_mutex;
+ /* flag for the enabling of predict reading
+ * predict reading aims to retrieve all data in one transfer;
+ * otherwise, standard reading reads 4-byte header and payload
+ * data separately
+ */
+ bool predict_reads;
+ unsigned int predict_length;
};
/**