diff options
author | Super Liu <supercjliu@google.com> | 2020-01-15 15:03:43 +0800 |
---|---|---|
committer | Super Liu <supercjliu@google.com> | 2020-01-16 11:24:12 +0800 |
commit | 87f5b85a0163ebd6a6ade5311d6ef04986f27c7c (patch) | |
tree | e47974b3146eb717099eaa9997d2e13dbbd43211 | |
parent | da31d13b8fca975ee2e7b1f03b9cab75e1d233f0 (diff) | |
download | sec_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.c | 8 | ||||
-rw-r--r-- | sec_ts.h | 2 |
2 files changed, 10 insertions, 0 deletions
@@ -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: @@ -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 |