summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVincent Palatin <vpalatin@chromium.org>2018-05-15 16:26:31 +0200
committerchrome-bot <chrome-bot@chromium.org>2018-05-16 12:41:30 -0700
commitd9354c9cd980ce2d57b8b4ccdad921054579ae99 (patch)
tree691a4e955e74cd2308570450e849f19f898381b1 /include
parentd95964b670b7a5b53faba09b44b6ea89e1fdc66d (diff)
downloadchrome-ec-d9354c9cd980ce2d57b8b4ccdad921054579ae99.tar.gz
fpsensor: add capture type for reset pixel test
Add the FP_CAPTURE_RESET_TEST capture mode to be able to perform the reset pixel values test. Update ectool accordingly and also remove the deprecated 'fpcheckpixels' command. Signed-off-by: Vincent Palatin <vpalatin@chromium.org> BRANCH=poppy BUG=b:78597564 TEST=run 'ectool --name=cros_fp fpmode capture test_reset', then 'ectool --name=cros_fp fpframe > test.pnm' CQ-DEPEND=CL:*626747 Change-Id: I183f33b1cb9ba4db67219b8f7740d29dc0551f2d Reviewed-on: https://chromium-review.googlesource.com/1061074 Commit-Ready: Vincent Palatin <vpalatin@chromium.org> Tested-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/ec_commands.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h
index fb040606f6..ac844c1106 100644
--- a/include/ec_commands.h
+++ b/include/ec_commands.h
@@ -4804,6 +4804,8 @@ struct __ec_align2 ec_params_fp_sensor_config {
#define FP_CAPTURE_PATTERN1 3
/* Capture for Quality test with fixed contrast */
#define FP_CAPTURE_QUALITY_TEST 4
+/* Capture for pixel reset value test */
+#define FP_CAPTURE_RESET_TEST 5
/* Extracts the capture type from the sensor 'mode' word */
#define FP_CAPTURE_TYPE(mode) (((mode) >> FP_MODE_CAPTURE_TYPE_SHIFT) \
& FP_MODE_CAPTURE_TYPE_MASK)