summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2017-03-09 14:12:10 +0100
committerchrome-bot <chrome-bot@chromium.org>2017-03-16 04:17:32 -0700
commit363407db47a7fdbe25a18853f57ceca6d7f9595d (patch)
treea706b80277a5a4f7f4d2d6a053265112ec2d20e7 /include
parentc5c5a57f907e52f71dbe083c8ba731abbc9ba5cf (diff)
downloadchrome-ec-363407db47a7fdbe25a18853f57ceca6d7f9595d.tar.gz
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 <vpalatin@chromium.org> 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 <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Tested-by: Todd Broch <tbroch@chromium.org> Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/ec_commands.h14
1 files changed, 14 insertions, 0 deletions
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
@@ -4040,6 +4040,20 @@ struct __ec_align2 ec_response_pd_chip_info {
#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
* special purpose features. These can be (re)used without updating this file.