mb/google/zork: Power off fingerprint sensor on shutdown
commitd5c3d9ca82c89830f33ec62dcb15c50ca9ae2523
authorMartin Roth <martinroth@chromium.org>
Fri, 30 Oct 2020 22:43:31 +0000 (30 16:43 -0600)
committerPaul Fagerburg <pfagerburg@chromium.org>
Tue, 17 Nov 2020 16:54:16 +0000 (17 16:54 +0000)
tree67fe7b48d3febc183485a401f0af5d6424907430
parent6aaf7db7195659fd2484d60a457275c7eb4b14c7
mb/google/zork: Power off fingerprint sensor on shutdown

When the system shuts down, turn the fingerprint sensor off. This sets
the GPIOs correctly for the next boot.  The fingerprint sensor was
previously left on, and was just powering down when the rails went low.

On suspend, the fingerprint sensor stays awake and puts itself in a low
powerstate mode based on the SLP_Sx_L pin states.

BUG=b:171837716
TEST=Fingerprint sensor still works after S3, GPIO state on the boot
following a shutdown is low.
BRANCH=Zork

Signed-off-by: Martin Roth <martinroth@chromium.org>
Change-Id: I3837b58372d8f4a504535e76bd21c667d68f8995
Reviewed-on: https://review.coreboot.org/c/coreboot/+/47311
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/google/zork/variants/baseboard/gpio_baseboard_trembyle.c