summaryrefslogtreecommitdiff
path: root/ft3658/focaltech_core.h
diff options
context:
space:
mode:
authorMason Wang <masonwang@google.com>2022-03-03 16:26:23 +0800
committerMason Wang <masonwang@google.com>2022-03-03 16:26:23 +0800
commit63fb0f34aa67daaa26e876e0d334056ec2612212 (patch)
tree98e5f1a3993a56c546f53434831c3d9414137d65 /ft3658/focaltech_core.h
parenta02b593b08089634ba69d3a31de3d1e44118ef67 (diff)
downloadfocaltech_touch-63fb0f34aa67daaa26e876e0d334056ec2612212.tar.gz
touch/focaltech: support v4l2 heatmap
Bug: 199105079 Test: install v4l-heatmap-viewer.apk to check the result. Signed-off-by: Mason Wang <masonwang@google.com> Change-Id: I3a846f480ad8f59daeada2fd5e96e7e148c128d2
Diffstat (limited to 'ft3658/focaltech_core.h')
-rw-r--r--ft3658/focaltech_core.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/ft3658/focaltech_core.h b/ft3658/focaltech_core.h
index 556bdf7..28d8ece 100644
--- a/ft3658/focaltech_core.h
+++ b/ft3658/focaltech_core.h
@@ -63,6 +63,9 @@
#include <linux/dma-mapping.h>
#include <linux/pm_qos.h>
#include "focaltech_common.h"
+#if IS_ENABLED(CONFIG_TOUCHSCREEN_HEATMAP)
+#include <heatmap.h>
+#endif
/*****************************************************************************
* Private constant and macro definitions using #define
@@ -143,6 +146,8 @@ struct fts_ts_platform_data {
u32 x_min;
u32 y_min;
u32 max_touch_number;
+ u32 tx_ch_num;
+ u32 rx_ch_num;
};
struct ts_event {
@@ -220,9 +225,15 @@ struct fts_ts_data {
int key_state;
int touch_point;
int point_num;
- ktime_t timestamp; /* Time that the event was first received from the
+ ktime_t isr_timestamp; /* Time that the event was first received from the
* touch IC, acquired during hard interrupt, in
* CLOCK_MONOTONIC */
+ ktime_t coords_timestamp;
+#if IS_ENABLED(CONFIG_TOUCHSCREEN_HEATMAP)
+ u16 *heatmap_buff;
+ bool v4l2_mutual_strength_data_ready;
+ struct v4l2_heatmap v4l2;
+#endif
struct proc_dir_entry *proc_touch_entry;
struct regulator *avdd;
struct regulator *dvdd;