summaryrefslogtreecommitdiff
path: root/driver/touchpad_gt7288.h
diff options
context:
space:
mode:
authorHarry Cutts <hcutts@chromium.org>2019-09-18 17:57:20 -0700
committerCommit Bot <commit-bot@chromium.org>2019-09-21 07:20:01 +0000
commitb3e56d049645a6cc148ff0670b525e29b3b553bc (patch)
tree088c9e2005aca0a80222b16cd31e31aaf0da4105 /driver/touchpad_gt7288.h
parent91d4fec4606e2145d522274c786d46d12721cf9a (diff)
downloadchrome-ec-b3e56d049645a6cc148ff0670b525e29b3b553bc.tar.gz
touchpad_gt7288: support touch width and height
GT7288 firmware version 4 supports these dimensions. BRANCH=none BUG=none TEST=check output of `gt7288_rep` command, comparing palms and fingers. Change-Id: I9094d8f86f34e4f319a9743c246461853d0382cf Signed-off-by: Harry Cutts <hcutts@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1815403 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'driver/touchpad_gt7288.h')
-rw-r--r--driver/touchpad_gt7288.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/touchpad_gt7288.h b/driver/touchpad_gt7288.h
index 28a2e37d73..f3a8642fc3 100644
--- a/driver/touchpad_gt7288.h
+++ b/driver/touchpad_gt7288.h
@@ -38,6 +38,8 @@ int gt7288_get_version_info(struct gt7288_version_info *info);
* @id: a 4-bit ID that uniquely identifies the contact during its lifecycle.
* @x: the absolute X coordinate.
* @y: the absolute Y coordinate.
+ * @width: the width of the contact (with firmware version 0x0004 or greater).
+ * @height: the height of the contact (with firmware version 0x0004 or greater).
* @tip: whether the fingertip is touching the pad. (Currently always true.)
* @confidence: whether the controller considers the touch a finger (true) or
* palm (false).
@@ -46,6 +48,8 @@ struct gt7288_contact {
uint8_t id;
uint16_t x;
uint16_t y;
+ uint8_t width;
+ uint8_t height;
bool tip;
bool confidence;
};