mb/google/hatch/var/kohaku: ensure FPMCU is power cycled on reset
commitbb4b793f4a2a86cfbefbf9cd3b4f4b05b4183a0d
authorTarun Tuli <taruntuli@google.com>
Tue, 25 Oct 2022 18:26:22 +0000 (25 18:26 +0000)
committerFelix Held <felix-coreboot@felixheld.de>
Wed, 2 Nov 2022 21:38:16 +0000 (2 21:38 +0000)
treee5218bcbad989f395ce3ecef64c800d3561aee92
parent8924280eb1024401082ac3a7f84eaf2498963ce6
mb/google/hatch/var/kohaku: ensure FPMCU is power cycled on reset

Leakage from the SPI CS line onto the FPMCU VDD rail was preventing
the FPMCU from fully shutting down on AP reset.

Instead of simply turning off the power rail, now ensure the CS
line is not driven high until late in coreboot.

This ensures it is completely off for the requisite minimum of 200ms
(now measured at approx 1100ms).

BUG=b:245953688
TEST=Confirmed FPMCU is still functional on Kohaku.
Confirmed FpRebootPowerCycle unit test now passes
BRANCH=Hatch

Signed-off-by: Tarun Tuli <taruntuli@google.com>
Change-Id: I1e7e32f61c3ac1b3154d42821cc1dd4c5d3de303
Reviewed-on: https://review.coreboot.org/c/coreboot/+/68819
Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/mainboard/google/hatch/variants/kohaku/gpio.c
src/mainboard/google/hatch/variants/kohaku/ramstage.c