diff options
author | Wei-Han Chen <stimim@google.com> | 2018-10-08 19:32:08 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-15 23:28:42 -0700 |
commit | a72aa9ec4f6e331a236ad8541881fcbe98139216 (patch) | |
tree | 26e04fa6d264a161c5b15385738b795386b3d499 /driver/touchpad_st.h | |
parent | e89911e940dc94ebf3765e785716d4431a9d646e (diff) | |
download | chrome-ec-a72aa9ec4f6e331a236ad8541881fcbe98139216.tar.gz |
touchpad_st: preserve panel config section during update
We accidentially override panel config section, and this makes us have
to do "panel initialization" everytime after tp firmware is updated.
BRANCH=nocturne
BUG=b:117203130
TEST=manual on whiskers
Signed-off-by: Wei-Han Chen <stimim@chromium.org>
Change-Id: I10ce62297403f3e1dcadae62573255b00f82247d
Reviewed-on: https://chromium-review.googlesource.com/1270415
Commit-Ready: Nicolas Boichat <drinkcat@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'driver/touchpad_st.h')
-rw-r--r-- | driver/touchpad_st.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/driver/touchpad_st.h b/driver/touchpad_st.h index 506cf49ae6..6ae612be11 100644 --- a/driver/touchpad_st.h +++ b/driver/touchpad_st.h @@ -59,9 +59,10 @@ #define ST_TP_MEM_ID_SYSTEM_INFO 0x01 -#define ST_TP_FLASH_OFFSET_CODE (0x0000 << 2) -#define ST_TP_FLASH_OFFSET_CONFIG (0x7C00 << 2) -#define ST_TP_FLASH_OFFSET_CX (0x7000 << 2) +#define ST_TP_FLASH_OFFSET_CODE (0x0000 << 2) +#define ST_TP_FLASH_OFFSET_PANEL_CFG (0x6800 << 2) +#define ST_TP_FLASH_OFFSET_CX (0x7000 << 2) +#define ST_TP_FLASH_OFFSET_CONFIG (0x7C00 << 2) struct st_tp_host_data_header_t { |