diff options
author | Wendly Li <wendlyli@google.com> | 2022-06-20 05:30:14 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-06-21 07:02:48 +0000 |
commit | e8af885da60c9ab545ab41589db3400a5351a4b3 (patch) | |
tree | f8f7f8b4e1a45c03a323b19fa74fbe3ee616fd3c /goodix_ts_core.h | |
parent | 967c1a070556b92b166401a10b07d2ac965e8dcd (diff) | |
download | goodix_touch-e8af885da60c9ab545ab41589db3400a5351a4b3.tar.gz |
goodix: Import v1.0.12 driver
Bug: 214118830
Bug: 214118809
Bug: 214118815
Bug: 214118947
Bug: 235776127
Test: Check fw palm and grip works fine and can be switched
Test: Check the resolution of pressure is correct
Test: Check noise reporting works
Test: Check get_package_id works
Change-Id: I8e30f09806adb65aaaad2c042c8752d42e4bb23b
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r-- | goodix_ts_core.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h index 63ecad7..e005cf8 100644 --- a/goodix_ts_core.h +++ b/goodix_ts_core.h @@ -53,7 +53,7 @@ #define GOODIX_CORE_DRIVER_NAME "goodix_ts" #define GOODIX_PEN_DRIVER_NAME "goodix_ts,pen" -#define GOODIX_DRIVER_VERSION "v1.0.11" +#define GOODIX_DRIVER_VERSION "v1.0.12" #define GOODIX_MAX_TOUCH 10 #define GOODIX_PEN_MAX_PRESSURE 4096 #define GOODIX_MAX_PEN_KEY 2 @@ -359,6 +359,7 @@ struct goodix_status_data { u8 soft_reset : 1; u8 palm_change : 1; u8 noise_lv_change : 1; + u8 grip_change : 1; u8 water_sta; u8 before_factorA; u8 after_factorA; @@ -366,7 +367,8 @@ struct goodix_status_data { u8 soft_reset_type; u8 palm_sta; u8 noise_lv; - u8 res[11]; + u8 grip_type; + u8 res[10]; u8 checksum; }; #pragma pack() @@ -628,6 +630,7 @@ struct goodix_ts_core { struct goodix_ts_hw_ops *hw_ops; struct input_dev *input_dev; struct input_dev *pen_dev; + struct mutex cmd_lock; /* TODO counld we remove this from core data? */ struct goodix_ts_event ts_event; |