diff options
| author | Gwendal Grignou <gwendal@chromium.org> | 2019-06-03 14:33:56 -0400 |
|---|---|---|
| committer | Lee Jones <lee.jones@linaro.org> | 2019-06-10 04:15:08 -0400 |
| commit | 6f9d485ca4c5d3ac223a1e49f604192be12e0676 (patch) | |
| tree | 919e257c3ed81ea871c2e61aeca8cb7487cd0a80 /include/linux/mfd | |
| parent | d90a4121bf98d959a01306599b370d8f883a0737 (diff) | |
mfd: cros_ec: Add API for Touchpad support
Add API to control touchpad presented by Embedded Controller.
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: Benson Leung <bleung@chromium.org>
Reviewed-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
| -rw-r--r-- | include/linux/mfd/cros_ec_commands.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/include/linux/mfd/cros_ec_commands.h b/include/linux/mfd/cros_ec_commands.h index 52fd9bfafc7f..1d0311df44d3 100644 --- a/include/linux/mfd/cros_ec_commands.h +++ b/include/linux/mfd/cros_ec_commands.h | |||
| @@ -5044,6 +5044,32 @@ struct ec_response_pd_chip_info_v1 { | |||
| 5044 | } __ec_align2; | 5044 | } __ec_align2; |
| 5045 | 5045 | ||
| 5046 | /*****************************************************************************/ | 5046 | /*****************************************************************************/ |
| 5047 | /* Touchpad MCU commands: range 0x0500-0x05FF */ | ||
| 5048 | |||
| 5049 | /* Perform touchpad self test */ | ||
| 5050 | #define EC_CMD_TP_SELF_TEST 0x0500 | ||
| 5051 | |||
| 5052 | /* Get number of frame types, and the size of each type */ | ||
| 5053 | #define EC_CMD_TP_FRAME_INFO 0x0501 | ||
| 5054 | |||
| 5055 | struct ec_response_tp_frame_info { | ||
| 5056 | uint32_t n_frames; | ||
| 5057 | uint32_t frame_sizes[0]; | ||
| 5058 | } __ec_align4; | ||
| 5059 | |||
| 5060 | /* Create a snapshot of current frame readings */ | ||
| 5061 | #define EC_CMD_TP_FRAME_SNAPSHOT 0x0502 | ||
| 5062 | |||
| 5063 | /* Read the frame */ | ||
| 5064 | #define EC_CMD_TP_FRAME_GET 0x0503 | ||
| 5065 | |||
| 5066 | struct ec_params_tp_frame_get { | ||
| 5067 | uint32_t frame_index; | ||
| 5068 | uint32_t offset; | ||
| 5069 | uint32_t size; | ||
| 5070 | } __ec_align4; | ||
| 5071 | |||
| 5072 | /*****************************************************************************/ | ||
| 5047 | /* EC-EC communication commands: range 0x0600-0x06FF */ | 5073 | /* EC-EC communication commands: range 0x0600-0x06FF */ |
| 5048 | 5074 | ||
| 5049 | #define EC_COMM_TEXT_MAX 8 | 5075 | #define EC_COMM_TEXT_MAX 8 |
