summaryrefslogtreecommitdiff
path: root/board/host/gpio.inc
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2019-07-26 09:32:11 -0700
committerCommit Bot <commit-bot@chromium.org>2019-10-25 17:58:19 +0000
commit7eded13a72691fdce4d66f59c5b119969afa35c0 (patch)
tree5786465fa15045ca1524de72a9947bf78d6c5a89 /board/host/gpio.inc
parent5866ec2921784004f66f9a0407f97c1659d674fb (diff)
downloadchrome-ec-7eded13a72691fdce4d66f59c5b119969afa35c0.tar.gz
fuzz_host_cmd: Add fpsensor task + fp host cmds
This CL enables the fpsensor task and adds the following remaining fingerprint host commands to the fuzzer: * EC_CMD_FP_PASSTHRU * EC_CMD_FP_INFO * EC_CMD_FP_FRAME * EC_CMD_FP_STATS * EC_CMD_FP_TEMPLATE BRANCH=none BUG=b:116065496 TEST=make buildall -j TEST=make run-host_command_fuzz TEST=# Pull in TEST_COVERAGE fix git fetch "https://chromium.googlesource.com/chromiumos/platform/ec" \ refs/changes/86/1725186/1 && git cherry-pick FETCH_HEAD make host-host_command_fuzz TEST_COVERAGE=1 timeout 5m ./build/host/host_command_fuzz/host_command_fuzz.exe llvm-profdata merge -sparse default.profraw -o default.profdata llvm-cov show build/host/host_command_fuzz/host_command_fuzz.exe \ --instr-profile=default.profdata --format=html --output-dir=cov # Inspect cov/.../common/fpsensor/fpsensor_state.c.html to verify Change-Id: Icad9493ba41cd4daa61a30246d01afd1dbe16c56 Signed-off-by: Craig Hesling <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1682945 Reviewed-by: Tom Hughes <tomhughes@chromium.org> Commit-Queue: Sean Abraham <seanabraham@chromium.org>
Diffstat (limited to 'board/host/gpio.inc')
-rw-r--r--board/host/gpio.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/host/gpio.inc b/board/host/gpio.inc
index d80e172448..324721068b 100644
--- a/board/host/gpio.inc
+++ b/board/host/gpio.inc
@@ -14,6 +14,8 @@ GPIO_INT(AC_PRESENT, PIN(0, 2), GPIO_INT_BOTH, extpower_interrupt)
GPIO_INT(VOLUME_DOWN_L, PIN(0, 3), GPIO_INT_BOTH, button_interrupt)
GPIO_INT(VOLUME_UP_L, PIN(0, 4), GPIO_INT_BOTH, button_interrupt)
GPIO_INT(CHARGE_DONE, PIN(0, 5), GPIO_INT_BOTH, inductive_charging_interrupt)
+/* Fingerprint */
+GPIO_INT(FPS_INT, PIN(0, 14), GPIO_INT_RISING, fps_event)
GPIO(EC_INT_L, PIN(0, 6), 0)
GPIO(WP, PIN(0, 7), 0)
@@ -24,3 +26,6 @@ GPIO(ENABLE_BACKLIGHT, PIN(0, 10), 0)
/* Inductive charging */
GPIO(CHARGE_EN, PIN(0, 11), 0)
GPIO(BASE_CHG_VDD_EN, PIN(0, 12), 0)
+
+/* Fingerprint */
+GPIO(SPI1_NSS, PIN(0, 13), GPIO_OUT_HIGH)