Commit 6f9d485c authored by Gwendal Grignou's avatar Gwendal Grignou Committed by Lee Jones

mfd: cros_ec: Add API for Touchpad support

Add API to control touchpad presented by Embedded Controller.
Signed-off-by: default avatarGwendal Grignou <gwendal@chromium.org>
Acked-by: default avatarEnric Balletbo i Serra <enric.balletbo@collabora.com>
Acked-by: default avatarBenson Leung <bleung@chromium.org>
Reviewed-by: default avatarFabien Lahoudere <fabien.lahoudere@collabora.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent d90a4121
......@@ -5043,6 +5043,32 @@ struct ec_response_pd_chip_info_v1 {
};
} __ec_align2;
/*****************************************************************************/
/* Touchpad MCU commands: range 0x0500-0x05FF */
/* Perform touchpad self test */
#define EC_CMD_TP_SELF_TEST 0x0500
/* Get number of frame types, and the size of each type */
#define EC_CMD_TP_FRAME_INFO 0x0501
struct ec_response_tp_frame_info {
uint32_t n_frames;
uint32_t frame_sizes[0];
} __ec_align4;
/* Create a snapshot of current frame readings */
#define EC_CMD_TP_FRAME_SNAPSHOT 0x0502
/* Read the frame */
#define EC_CMD_TP_FRAME_GET 0x0503
struct ec_params_tp_frame_get {
uint32_t frame_index;
uint32_t offset;
uint32_t size;
} __ec_align4;
/*****************************************************************************/
/* EC-EC communication commands: range 0x0600-0x06FF */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment