summaryrefslogtreecommitdiff
path: root/goodix_ts_core.c
diff options
context:
space:
mode:
authorWendly Li <wendlyli@google.com>2022-07-25 07:58:56 +0000
committerWendly Li <wendlyli@google.com>2022-07-26 09:13:05 +0000
commitd1a31164a45b2550d0b7e4514cbf9a82e829edfc (patch)
treecef2d504b61d0fd7f188ead2d7c8c1b0eeb5b233 /goodix_ts_core.c
parentc9ead8b17e5782936b78d0c7472192e4f9319a01 (diff)
downloadgoodix_touch-d1a31164a45b2550d0b7e4514cbf9a82e829edfc.tar.gz
touch/goodix: Import v1.0.13 driver
Bug: 214118902 Test: Check fw updating works peoprly Change-Id: If1aca9955515a1d8ae71e302c14313c0eee97f66 Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.c')
-rw-r--r--goodix_ts_core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/goodix_ts_core.c b/goodix_ts_core.c
index 22eb14f..29bd2ea 100644
--- a/goodix_ts_core.c
+++ b/goodix_ts_core.c
@@ -1524,6 +1524,10 @@ static int goodix_ts_request_handle(
ret = goodix_send_ic_config(cd, CONFIG_TYPE_NORMAL);
else if (ts_event->request_code == REQUEST_TYPE_RESET)
ret = hw_ops->reset(cd, GOODIX_NORMAL_RESET_DELAY_MS);
+ else if (ts_event->request_code == REQUEST_TYPE_UPDATE)
+ ret = goodix_do_fw_update(
+ NULL, UPDATE_MODE_FORCE | UPDATE_MODE_BLOCK |
+ UPDATE_MODE_SRC_REQUEST);
else
ts_info("can not handle request type 0x%x",
ts_event->request_code);