diff options
author | Nicolas Boichat <drinkcat@chromium.org> | 2018-01-18 08:13:51 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-21 22:20:48 -0800 |
commit | d9f4ce13f2a49a260db7bb6d42234439184e9e55 (patch) | |
tree | 3c3d3d936bf7309cdf72a83de84fbcb004df9650 /include/touchpad.h | |
parent | 667a35bb9c0ffd61d4c7d8a2897a8f7c313a9202 (diff) | |
download | chrome-ec-d9f4ce13f2a49a260db7bb6d42234439184e9e55.tar.gz |
touchpad_elan: Add retry logic if the touchpad does not respond
After 3 tries, the touchpad is reset by power-cycling it.
BRANCH=none
BUG=b:71688150
TEST=Short SDA/SCL lines, press on touchpad, see that touchpad tasks
retries transaction, and then resets the touchpad power.
TEST=Do ESD discharge, and see that touchpad always recovers.
Change-Id: If0b5eb936d4d2feb3d34a7ec8748869a1b915c34
Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/872131
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/touchpad.h')
-rw-r--r-- | include/touchpad.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/touchpad.h b/include/touchpad.h index ce0ee5cc3e..4e746d8dc1 100644 --- a/include/touchpad.h +++ b/include/touchpad.h @@ -8,4 +8,7 @@ void touchpad_interrupt(enum gpio_signal signal); +/* Reset the touchpad, mainly used to recover it from malfunction. */ +void board_touchpad_reset(void); + #endif |