diff options
author | Wendly Li <wendlyli@google.com> | 2022-07-25 07:58:56 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-07-26 09:13:05 +0000 |
commit | d1a31164a45b2550d0b7e4514cbf9a82e829edfc (patch) | |
tree | cef2d504b61d0fd7f188ead2d7c8c1b0eeb5b233 /goodix_brl_hw.c | |
parent | c9ead8b17e5782936b78d0c7472192e4f9319a01 (diff) | |
download | goodix_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_brl_hw.c')
-rw-r--r-- | goodix_brl_hw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/goodix_brl_hw.c b/goodix_brl_hw.c index bd58ce1..5367f5e 100644 --- a/goodix_brl_hw.c +++ b/goodix_brl_hw.c @@ -46,6 +46,7 @@ enum brl_request_code { BRL_REQUEST_CODE_REF_ERR = 0x02, BRL_REQUEST_CODE_RESET = 0x03, BRL_REQUEST_CODE_CLOCK = 0x04, + BRL_REQUEST_CODE_UPDATE = 0x05 }; static int brl_select_spi_mode(struct goodix_ts_core *cd) @@ -1241,6 +1242,8 @@ static int brl_event_handler( ts_event->request_code = REQUEST_TYPE_CONFIG; else if (request->request_type == BRL_REQUEST_CODE_RESET) ts_event->request_code = REQUEST_TYPE_RESET; + else if (request->request_type == BRL_REQUEST_CODE_UPDATE) + ts_event->request_code = REQUEST_TYPE_UPDATE; else ts_debug("unsupported request code 0x%x", request->request_type); |