summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-06-12 11:47:20 -0700
committerCommit Bot <commit-bot@chromium.org>2020-08-06 19:49:15 +0000
commit69bab88511023f0742aa2794698b3cab7f816eb6 (patch)
tree1168e999fc5352991aaa41d291b553e97dc7b7d6 /include
parent821d9748590b7fc4bde0ecb40037677b44d4186b (diff)
downloadchrome-ec-69bab88511023f0742aa2794698b3cab7f816eb6.tar.gz
driver/fingerprint: Add a common sensor maintenance function
Add a new console command "fpmaintenance" for testing. BRANCH=none BUG=b:76037094 TEST=With dragonclaw v0.2 connected to Segger J-Trace and servo micro: ./util/flash_jlink.py On FP console: > fpmaintenance Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I7125f8783d3dd7e815612d20742c9d949d00ba71 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2323709 Reviewed-by: Yicheng Li <yichengli@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/fpsensor.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/fpsensor.h b/include/fpsensor.h
index ce8abaf870..2c5baa2679 100644
--- a/include/fpsensor.h
+++ b/include/fpsensor.h
@@ -154,4 +154,15 @@ int fp_enrollment_finish(void *templ);
*/
int fp_finger_enroll(uint8_t *image, int *completion);
+/**
+ * Runs a test for defective pixels.
+ *
+ * Should be triggered periodically by the client. The maintenance command can
+ * take several hundred milliseconds to run.
+ *
+ * @return EC_ERROR_HW_INTERNAL on error (such as finger on sensor)
+ * @return EC_SUCCESS on success
+ */
+int fp_maintenance(void);
+
#endif /* __CROS_EC_FPSENSOR_H */