summaryrefslogtreecommitdiff
path: root/board/hammer/board.h
diff options
context:
space:
mode:
authorWei-Han Chen <stimim@google.com>2018-10-23 22:42:46 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-11-08 08:14:04 -0800
commitfccbafda7b10444502f83de8fe7022a59fd2d0a4 (patch)
tree5656bee4e7118875847e483ef05c56275c3127dc /board/hammer/board.h
parentc088357d819bdc36fabce85037c9085693e17fd0 (diff)
downloadchrome-ec-fccbafda7b10444502f83de8fe7022a59fd2d0a4.tar.gz
touchpad_st: update logical maximum of y value
To make X and Y have the same resolution (ratio between logical coordinate and physical coordinate), the logical maximum of y is changed to 1573. This change requires ST firmware v36.0 (0x24) or above. If this is used on older ST firmware, it will still work, but the Y movement will be scaled. BRANCH=nocturne BUG=b:118363768, b:119236031 TEST=make buildall -j64, test on whiskers Signed-off-by: Wei-Han Chen <stimim@chromium.org> Change-Id: Ic6c5db496c28a2f0febb8a4073d738cd9ba45087 Reviewed-on: https://chromium-review.googlesource.com/1297870 Commit-Ready: Wei-Han Chen <stimim@chromium.org> Tested-by: Wei-Han Chen <stimim@chromium.org> Reviewed-by: Tai-Hsu Lin <sheckylin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/hammer/board.h')
-rw-r--r--board/hammer/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h
index 3f0385daab..7cdaf66570 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -220,7 +220,7 @@
#define CONFIG_TOUCHPAD_VIRTUAL_SIZE (56*1024)
#elif defined(BOARD_WHISKERS)
#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_X 2160
-#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1080
+#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_Y 1573
#define CONFIG_USB_HID_TOUCHPAD_LOGICAL_MAX_PRESSURE 255
#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_X 1030 /* tenth of mm */
#define CONFIG_USB_HID_TOUCHPAD_PHYSICAL_MAX_Y 750 /* tenth of mm */