diff options
author | Wei-Han Chen <stimim@google.com> | 2018-03-12 20:15:34 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-03-26 23:33:33 -0700 |
commit | d8225540d9acbb26e29df6b5555090bc5b48579e (patch) | |
tree | cf08252feabac2a2e36e3d670195019e4f6d37b4 /include | |
parent | 6a7fb0d39bf84d7199f0a3f1f9a32cd85dc1113e (diff) | |
download | chrome-ec-d8225540d9acbb26e29df6b5555090bc5b48579e.tar.gz |
ec: add driver/touchpad_st.c
Initial commit for ST touchpad.
This CL will support X/Y mode function.
BRANCH=none
BUG=b:70482333
TEST=make BOARD=whiskers
TEST=manually test touchpad function on whiskers
Signed-off-by: Wei-Han Chen <stimim@chromium.org>
Change-Id: I1669286ca764fbbd4a691171193415dd4999673f
Reviewed-on: https://chromium-review.googlesource.com/958894
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/update_fw.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/update_fw.h b/include/update_fw.h index e454f129bd..b013b77a75 100644 --- a/include/update_fw.h +++ b/include/update_fw.h @@ -211,11 +211,18 @@ struct touchpad_info { uint8_t allowed_fw_hash[32]; /* Vendor specific data. */ - struct { - uint16_t id; - uint16_t fw_version; - uint16_t fw_checksum; - } elan; + union { + struct { + uint16_t id; + uint16_t fw_version; + uint16_t fw_checksum; + } elan __packed; + struct { + uint16_t id; + uint16_t fw_version; + uint16_t fw_checksum; + } st __packed; + } __packed; } __packed; /* |