summaryrefslogtreecommitdiff
path: root/driver/touchpad_st.h
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-10-08 11:21:00 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-10-15 23:28:42 -0700
commite89911e940dc94ebf3765e785716d4431a9d646e (patch)
tree1fa8a6f65865fff46e97d1b4544f99af112a6393 /driver/touchpad_st.h
parent582dfdbe15bbd9118fc2b53cf423544f16cc2d19 (diff)
downloadchrome-ec-e89911e940dc94ebf3765e785716d4431a9d646e.tar.gz
touchpad_st: embed FTB header in unpacked TP FW
To make it easier to decide if full panel initialization is required, we put the original FTB header in the beginning of unpacked TP FW. touchpad_update_write will clear CX data if CX version will be different. CQ-DEPEND=CL:*697971 BRANCH=nocturne BUG=b:117203130 TEST=manual on whiskers Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: I60351783b8c015fcb23431811c156bfca8d15b67 Reviewed-on: https://chromium-review.googlesource.com/1267876 Commit-Ready: Nicolas Boichat <drinkcat@chromium.org> Tested-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'driver/touchpad_st.h')
-rw-r--r--driver/touchpad_st.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/driver/touchpad_st.h b/driver/touchpad_st.h
index e8662a52fd..506cf49ae6 100644
--- a/driver/touchpad_st.h
+++ b/driver/touchpad_st.h
@@ -238,6 +238,20 @@ struct st_tp_event_t {
unsigned evt_left:5;
} __packed;
+struct st_tp_fw_header_t {
+ uint32_t signature;
+ uint32_t ftb_ver;
+ uint32_t chip_id;
+ uint32_t svn_ver;
+ uint32_t fw_ver;
+ uint32_t config_id;
+ uint32_t config_ver;
+ uint8_t reserved[8];
+ uint64_t release_info;
+ uint32_t sec_size[4];
+ uint32_t crc;
+} __packed;
+
enum ST_TP_MODE {
X_Y_MODE = 0,
HEAT_MAP_MODE,