aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/herobrine/chromeos.c
diff options
context:
space:
mode:
authorShelley Chen <shchen@google.com>2021-09-28 12:42:11 -0700
committerShelley Chen <shchen@google.com>2021-09-29 20:16:38 +0000
commitffebd4970ffb393ee04b1c35b513c40ed8a11f21 (patch)
tree7f64fc98a7c3973e0c82428a852c147c401f2ce1 /src/mainboard/google/herobrine/chromeos.c
parent9de5d8dd39164524791980fbbad39898238d865d (diff)
herobrine: Add fingerprint power sequencing
For Herobrine variants that include a finger print sensor, we will need to power sequence it. We are using the same FP sensor as trogdor, so we will follow the timings used for trogdor from CL:2695676. BUG=b:198474942 BRANCH=None TEST=./util/abuild/abuild -p none -t GOOGLE_HEROBRINE -x -a -c max -B Change-Id: Ica6eafc47cf1b95eeb8d94c6e0a8c88519665e3f Signed-off-by: Shelley Chen <shchen@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/58021 Reviewed-by: Alexandru Stan <amstan@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/herobrine/chromeos.c')
-rw-r--r--src/mainboard/google/herobrine/chromeos.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainboard/google/herobrine/chromeos.c b/src/mainboard/google/herobrine/chromeos.c
index 319f929d8b..9faf4baf5f 100644
--- a/src/mainboard/google/herobrine/chromeos.c
+++ b/src/mainboard/google/herobrine/chromeos.c
@@ -7,6 +7,12 @@
void setup_chromeos_gpios(void)
{
gpio_input_pullup(GPIO_SD_CD_L);
+
+ if (CONFIG(HEROBRINE_HAS_FINGERPRINT)) {
+ gpio_output(GPIO_FPMCU_BOOT0, 0);
+ gpio_output(GPIO_FP_RST_L, 0);
+ gpio_output(GPIO_EN_FP_RAILS, 0);
+ }
}
void fill_lb_gpios(struct lb_gpios *gpios)