From 363407db47a7fdbe25a18853f57ceca6d7f9595d Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Thu, 9 Mar 2017 14:12:10 +0100 Subject: eve_fp: minimalistic fingerprint sensor passthrough Simple hack to provide a pass-through relaying the fingerprint sensor commands coming from the host. Signed-off-by: Vincent Palatin BRANCH=none BUG=b:35648259 TEST=on Eve, read sensor HWID from the kernel. Change-Id: I04e7641fe4067f8378e0b798c529aded0f708b47 Reviewed-on: https://chromium-review.googlesource.com/452500 Commit-Ready: Vincent Palatin Tested-by: Vincent Palatin Tested-by: Todd Broch Reviewed-by: Todd Broch --- include/ec_commands.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include') diff --git a/include/ec_commands.h b/include/ec_commands.h index ca91290fcb..6d641b5657 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -4039,6 +4039,20 @@ struct __ec_align2 ec_response_pd_chip_info { #define EC_CMD_CR51_BASE 0x0300 #define EC_CMD_CR51_LAST 0x03FF +/*****************************************************************************/ +/* Fingerprint MCU commands: range 0x0400-0x040x */ + +/* Fingerprint SPI sensor passthru command */ +#define EC_CMD_FP_PASSTHRU 0x0400 + +#define EC_FP_FLAG_NOT_COMPLETE 0x1 + +struct __ec_align2 ec_params_fp_passthru { + uint16_t len; /* Number of bytes to write then read */ + uint16_t flags; /* EC_FP_FLAG_xxx */ + uint8_t data[]; /* Data to send */ +}; + /*****************************************************************************/ /* * Reserve a range of host commands for board-specific, experimental, or -- cgit v1.2.1