summaryrefslogtreecommitdiff
path: root/driver/fingerprint/fpc
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2020-01-02 15:36:04 -0800
committerCommit Bot <commit-bot@chromium.org>2020-01-08 00:47:29 +0000
commit0b838e162b35c6115de2cc049df699a65f9ee019 (patch)
tree84d4e83e193f1c884695f12673f3b0f9028ac19a /driver/fingerprint/fpc
parentceaa05993490943b19cdf61bcd195cf016d31827 (diff)
downloadchrome-ec-0b838e162b35c6115de2cc049df699a65f9ee019.tar.gz
bloonchipper: Add transport and sensor detection
bloonchipper (aka hatch_fp aka dragonclaw) has a voltage divider that can be used to select the sensor and the transport type. Supported designs: * Dragonclaw rev 0.2 (green with Google logo): go/dragonclaw-schematic-rev-0.2 * Hatch reference v3.0: go/hatch-schematic-rev-3.0 The selection lines are connected to ADC inputs, so a future change will use the ADC to allow more than two transports or sensors. BRANCH=none BUG=b:147113851 TEST=flash dragonclaw rev 0.2 and view console output Change-Id: If2e4b150d34cfe41477be528c70e1645043d4d82 Signed-off-by: Tom Hughes <tomhughes@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1986322 Reviewed-by: Craig Hesling <hesling@chromium.org>
Diffstat (limited to 'driver/fingerprint/fpc')
-rw-r--r--driver/fingerprint/fpc/bep/fpc_private.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/driver/fingerprint/fpc/bep/fpc_private.c b/driver/fingerprint/fpc/bep/fpc_private.c
index 9bcd4f65ff..61bad9f101 100644
--- a/driver/fingerprint/fpc/bep/fpc_private.c
+++ b/driver/fingerprint/fpc/bep/fpc_private.c
@@ -8,6 +8,7 @@
#include "fpc_bio_algorithm.h"
#include "fpsensor.h"
+#include "gpio.h"
#include "spi.h"
#include "system.h"
#include "util.h"
@@ -142,6 +143,12 @@ int fp_sensor_init(void)
{
int rc;
+ /* The dragonclaw development board needs this enabled to enable the
+ * AND gate (U10) to CS. Production boards could disable this to save
+ * power since it's only needed for initial detection on those boards.
+ */
+ gpio_set_level(GPIO_DIVIDER_HIGHSIDE, 1);
+
/* Print the binary libfpbep.a library version */
CPRINTS("FPC libfpbep.a %s", fp_sensor_get_version());