diff options
author | Wendly Li <wendlyli@google.com> | 2022-01-05 10:12:33 +0000 |
---|---|---|
committer | Wendly Li <wendlyli@google.com> | 2022-01-21 03:53:39 +0000 |
commit | 7f5a7a686052ab8f617844edcc613b38a90079dc (patch) | |
tree | b1006b7b17177598fd55a2b340be330ed6ef769c /goodix_ts_core.h | |
parent | a98db72b2549ace0277afd2812121e33f3728a0e (diff) | |
download | goodix_touch-7f5a7a686052ab8f617844edcc613b38a90079dc.tar.gz |
Fix pinctrl is not active
- Support switching pinctrl state
- Switch pinctrl state to active when the device is power on
- Switch pinctrl state when touch resume or suspend
Bug: 214018056
Bug: 214118475
Test: Check getevent works properly
Change-Id: I00f9d4724bd07a5c83aaf313ab891429c48426f9
Signed-off-by: Wendly Li <wendlyli@google.com>
Diffstat (limited to 'goodix_ts_core.h')
-rw-r--r-- | goodix_ts_core.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/goodix_ts_core.h b/goodix_ts_core.h index 9269acd..d1a29e9 100644 --- a/goodix_ts_core.h +++ b/goodix_ts_core.h @@ -125,6 +125,11 @@ enum CHECKSUM_MODE { CHECKSUM_MODE_U16_LE, }; +enum PINCTRL_MODE { + PINCTRL_MODE_ACTIVE, + PINCTRL_MODE_SUSPEND, +}; + #define MAX_SCAN_FREQ_NUM 8 #define MAX_SCAN_RATE_NUM 8 #define MAX_FREQ_NUM_STYLUS 8 @@ -293,6 +298,10 @@ struct goodix_ts_board_data { int iovdd_gpio; unsigned int irq_flags; + struct pinctrl *pinctrl; + struct pinctrl_state *state_active; + struct pinctrl_state *state_suspend; + unsigned int swap_axis; unsigned int panel_max_x; unsigned int panel_max_y; |