summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuper Liu <supercjliu@google.com>2020-01-15 15:03:43 +0800
committerSuper Liu <supercjliu@google.com>2020-01-16 11:24:12 +0800
commit87f5b85a0163ebd6a6ade5311d6ef04986f27c7c (patch)
treee47974b3146eb717099eaa9997d2e13dbbd43211
parentda31d13b8fca975ee2e7b1f03b9cab75e1d233f0 (diff)
downloadsec_touch-87f5b85a0163ebd6a6ade5311d6ef04986f27c7c.tar.gz
sec_touch: add io delay for some commands
Bug: 145788304 Change-Id: I7fb2fc399d9a259813aa896ce11d7c9f0a253a7d Signed-off-by: Super Liu <supercjliu@google.com>
-rw-r--r--sec_ts.c8
-rw-r--r--sec_ts.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/sec_ts.c b/sec_ts.c
index 475799d..5228b42 100644
--- a/sec_ts.c
+++ b/sec_ts.c
@@ -880,6 +880,14 @@ int sec_ts_spi_delay(u8 reg)
switch (reg) {
case SEC_TS_READ_TOUCH_RAWDATA:
return 400;
+ case SEC_TS_CMD_HEATMAP_READ:
+ return 500;
+ case SEC_TS_READ_ALL_EVENT:
+ return 500;
+ case SEC_TS_READ_CSRAM_RTDP_DATA:
+ return 500;
+ case SEC_TS_CAAT_READ_STORED_DATA:
+ return 500;
case SEC_TS_CMD_FLASH_READ_DATA:
return 1800;
case SEC_TS_READ_FIRMWARE_INTEGRITY:
diff --git a/sec_ts.h b/sec_ts.h
index c0f75a6..b7625c1 100644
--- a/sec_ts.h
+++ b/sec_ts.h
@@ -272,6 +272,8 @@
#define SEC_TS_CMD_SELFTEST 0xAE
#define SEC_TS_READ_FORCE_RECAL_COUNT 0xB0
#define SEC_TS_READ_FORCE_SIG_MAX_VAL 0xB1
+#define SEC_TS_CAAT_READ_STORED_DATA 0xB7
+#define SEC_TS_READ_CSRAM_RTDP_DATA 0xC3
/* SEC_TS FLASH COMMAND */
#define SEC_TS_CMD_FLASH_READ_ADDR 0xD0