mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-10 09:31:51 +00:00
rose: add touchpad related host commands
Add touchpad related host commands:
1) EC_CMD_TP_SELF_TEST: run open short test.
2) EC_CMD_TP_FRAME_INFO: get number of frame and frame size.
3) EC_CMD_TP_FRAME_SNAPSHOT: make a snapshot of the frame.
4) EC_CMD_TP_FRAME_GET: get frame data.
BRANCH=none
BUG=b:62077098
TEST=`make BOARD=rose -j`
`ectool --name=cros_tp tpselftest` and
`ectool --name=cros_tp tpframeget` works
Change-Id: I43db82278e556b1e6f6301fe88233fe7c4a18a14
Signed-off-by: Wei-Ning Huang <wnhuang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/515282
Commit-Ready: Wei-Ning Huang <wnhuang@chromium.org>
Tested-by: Wei-Ning Huang <wnhuang@chromium.org>
Reviewed-by: Rong Chang <rongchang@chromium.org>
This commit is contained in:
committed by
chrome-bot
parent
859a33ff46
commit
5b1d2b878d
@@ -4267,6 +4267,32 @@ struct __ec_align4 ec_params_fp_frame {
|
||||
uint32_t size;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
/* 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_align4 ec_response_tp_frame_info {
|
||||
uint32_t n_frames;
|
||||
uint32_t frame_sizes[0];
|
||||
};
|
||||
|
||||
/* 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_align4 ec_params_tp_frame_get {
|
||||
uint32_t frame_index;
|
||||
uint32_t offset;
|
||||
uint32_t size;
|
||||
};
|
||||
|
||||
/*****************************************************************************/
|
||||
/*
|
||||
* Reserve a range of host commands for board-specific, experimental, or
|
||||
|
||||
Reference in New Issue
Block a user