diff options
author | Wei-Han Chen <stimim@google.com> | 2018-08-02 12:30:37 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-06 17:17:54 -0700 |
commit | 1880685fedff8d297eb7e8d4298518a3dc6671a8 (patch) | |
tree | 5c58da5b50906b211c0f5897645f02dc2649e13f /driver/touchpad_st.h | |
parent | da774a619ded549665c64a8a4b4e4ed86c64033b (diff) | |
download | chrome-ec-1880685fedff8d297eb7e8d4298518a3dc6671a8.tar.gz |
touchpad_st: support 1 byte pixels
The latest release from ST is changed to 1 byte per pixel in heat map
mode.
BRANCH=none
BUG=b:70482333
TEST=test on whiskers
Signed-off-by: Wei-Han Chen <stimim@chromium.org>
Change-Id: I499bbea2636a65b06dacd81b358a7444bd8ac6c2
Reviewed-on: https://chromium-review.googlesource.com/1160426
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
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, 5 insertions, 2 deletions
diff --git a/driver/touchpad_st.h b/driver/touchpad_st.h index 456ea4e435..cae8d5f0f2 100644 --- a/driver/touchpad_st.h +++ b/driver/touchpad_st.h @@ -48,9 +48,9 @@ #define ST_TOUCH_HEADER_SIZE 32 -#define BYTES_PER_PIXEL 2 +#define BYTES_PER_PIXEL 1 /* Number of bits per pixel, this value is decided by experiments. */ -#define BITS_PER_PIXEL (11) +#define BITS_PER_PIXEL 8 #define ST_TOUCH_FRAME_SIZE (ST_TOUCH_ROWS * ST_TOUCH_COLS * \ BYTES_PER_PIXEL) @@ -248,5 +248,8 @@ enum ST_TP_MODE { #define ST_TP_HEAT_MAP_THRESHOLD 10 +/* A minimum version that supports heatmap mode. */ +#define ST_TP_MIN_HEATMAP_VERSION 11 + #endif /* __CROS_EC_TOUCHPAD_ST_H */ |